OgarProject / Ogar2-Server

An open source Agar.io server implementation, written in Java.
GNU General Public License v3.0
46 stars 30 forks source link

Receiving IllegalStateException on connect #6

Open dyyd opened 9 years ago

dyyd commented 9 years ago

Built both Oger2 and Oger2-API. Started the server with the command given in the README. (Used sudo since it wanted I believe port access or similar) When connecting to the server from agar.io the server raises an "java.lang.IllegalStateException: Connection is not in CONNECTED state!" error.

Fuller stacktrace: INFO: [id: 0x260ac275, /0:0:0:0:0:0:0:0:443] RECEIVED: [id: 0xcb056aa1, /127.0.0.1:43030 => /127.0.0.1:443] 20-Sep-2015 20:35:20.382 [SEVERE] Encountered exception in pipeline for client at /127.0.0.1:43030; disconnecting client. java.lang.IllegalStateException: Connection is not in CONNECTED state! at com.google.common.base.Preconditions.checkState(Preconditions.java:173) at com.ogarproject.ogar.server.net.PlayerConnection.checkConnected(PlayerConnection.java:205) at com.ogarproject.ogar.server.net.PlayerConnection.handle(PlayerConnection.java:119) at com.ogarproject.ogar.server.net.PlayerConnection.handle(PlayerConnection.java:78) at com.ogarproject.ogar.server.net.ClientHandler.channelRead0(ClientHandler.java:52) at com.ogarproject.ogar.server.net.ClientHandler.channelRead0(ClientHandler.java:27) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) at com.ogarproject.ogar.server.net.WebSocketHandler.channelRead0(WebSocketHandler.java:78) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) at java.lang.Thread.run(Thread.java:745)