Processing not working with Netty IO

edited February 2015 in Programming Questions

Hi, I am using Netty IO for a project but processing is giving me problems.

The following code is giving me a found one to many { without a } to match error?

public final class ChatServer {

    static final int PORT = 8000;

    public ChatServer() throws Exception {

        EventLoopGroup bossGroup = new NioEventLoopGroup();
        EventLoopGroup workerGroup = new NioEventLoopGroup();
        try {
            ServerBootstrap b = new ServerBootstrap();
            b.group(bossGroup, workerGroup)
             .channel(NioServerSocketChannel.class)
             .handler(new LoggingHandler(LogLevel.INFO))
             .childHandler(new ChatServerInitializer());

            b.bind(PORT).sync().channel().closeFuture().sync();
        } finally {
            bossGroup.shutdownGracefully();
            workerGroup.shutdownGracefully();
        }
    }
}

I don´t understand why, because Eclipse doesn't show that error ...

Best Regards Alex

Tagged:

Comments

  • The following code is giving me a found one to many { without a } to match error?

    those kinds of errors may not be reported where they occur. check all the code before it. (even that in other tabs if you have other tabs)

Sign In or Register to comment.