We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
Comments
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)