Thread: [Apollo] Logout problem

Results 1 to 8 of 8
  1. #1 [Apollo] Logout problem 
    Registered Member DarkSlayerz's Avatar
    Join Date
    Nov 2008
    Posts
    928
    Thanks given
    88
    Thanks received
    44
    Rep Power
    46
    Hi guys, i have a problem when i try to log out on a fresh downloaded Apollo Server (https://github.com/Major-/Apollo).

    Im using an 317 Refactored client, wich i didnt make edits to aswell. (http://www.rune-server.org/runescape...red-317-a.html)

    The error i get is:

    Code:
    aug 18, 2013 9:13:42 PM org.apollo.Server <init>
    INFO: Starting Apollo...
    aug 18, 2013 9:13:42 PM org.apollo.ServiceManager init
    INFO: Registering services...
    aug 18, 2013 9:13:42 PM org.apollo.Server init
    INFO: Initialized release #317.
    aug 18, 2013 9:13:44 PM org.apollo.ServiceManager startAll
    INFO: Starting services...
    aug 18, 2013 9:13:44 PM org.apollo.game.model.World init
    INFO: Loading item definitions...
    aug 18, 2013 9:13:44 PM org.apollo.game.model.World init
    INFO: Done (loaded 6541 item definitions).
    aug 18, 2013 9:13:44 PM org.apollo.game.model.World init
    INFO: Loading equipment definitions...
    aug 18, 2013 9:13:44 PM org.apollo.game.model.World init
    INFO: Done (loaded 1731 equipment definitions).
    aug 18, 2013 9:13:44 PM org.apollo.Server bind
    INFO: Binding service listener to address: 0.0.0.0/0.0.0.0:43594...
    aug 18, 2013 9:13:44 PM org.apollo.Server bind
    INFO: Binding HTTP listener to address: 0.0.0.0/0.0.0.0:80...
    aug 18, 2013 9:13:44 PM org.apollo.Server bind
    INFO: Binding JAGGRAB listener to address: 0.0.0.0/0.0.0.0:43595...
    aug 18, 2013 9:13:44 PM org.apollo.Server bind
    INFO: Ready for connections.
    aug 18, 2013 9:13:51 PM org.apollo.net.ApolloHandler channelConnected
    INFO: Channel connected: [id: 0x2a2d3814, /127.0.0.1:50715 => /127.0.0.1:80]
    aug 18, 2013 9:13:51 PM org.apollo.net.ApolloHandler channelDisconnected
    INFO: Channel disconnected: [id: 0x2a2d3814, /127.0.0.1:50715 :> /127.0.0.1:80]
    aug 18, 2013 9:14:13 PM org.apollo.net.ApolloHandler channelConnected
    INFO: Channel connected: [id: 0xa0da381e, /127.0.0.1:50744 => /127.0.0.1:80]
    aug 18, 2013 9:14:13 PM org.apollo.net.ApolloHandler channelDisconnected
    INFO: Channel disconnected: [id: 0xa0da381e, /127.0.0.1:50744 :> /127.0.0.1:80]
    aug 18, 2013 9:14:19 PM org.apollo.net.ApolloHandler channelConnected
    INFO: Channel connected: [id: 0xcdeea909, /127.0.0.1:50752 => /127.0.0.1:43594]
    aug 18, 2013 9:14:19 PM org.apollo.game.model.World register
    INFO: Registered player: org.apollo.game.model.Player [username=test, privilegeLevel=STANDARD] [online=1]
    aug 18, 2013 9:14:38 PM org.apollo.net.ApolloHandler channelDisconnected
    INFO: Channel disconnected: [id: 0xcdeea909, /127.0.0.1:50752 :> /127.0.0.1:43594]
    aug 18, 2013 9:14:38 PM org.apollo.net.ApolloHandler exceptionCaught
    WARNING: Exception occured for channel: [id: 0xcdeea909, /127.0.0.1:50752 :> /127.0.0.1:43594], closing...
    java.nio.channels.ClosedChannelException
    	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:778)
    	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:722)
    	at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:111)
    	at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:66)
    	at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:55)
    	at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:55)
    	at org.jboss.netty.channel.Channels.close(Channels.java:820)
    	at org.jboss.netty.channel.AbstractChannel.close(AbstractChannel.java:197)
    	at org.jboss.netty.channel.ChannelFutureListener$1.operationComplete(ChannelFutureListener.java:41)
    	at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:428)
    	at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:414)
    	at org.jboss.netty.channel.DefaultChannelFuture.setSuccess(DefaultChannelFuture.java:363)
    	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.write0(AbstractNioWorker.java:586)
    	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.writeFromTaskLoop(AbstractNioWorker.java:524)
    	at org.jboss.netty.channel.socket.nio.AbstractNioChannel$WriteTask.run(AbstractNioChannel.java:342)
    	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processWriteTaskQueue(AbstractNioWorker.java:442)
    	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:331)
    	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at java.lang.Thread.run(Thread.java:722)
    BTW, im using netbeans to run my server
    Reply With Quote  
     

  2. #2  
    Registered Member DarkSlayerz's Avatar
    Join Date
    Nov 2008
    Posts
    928
    Thanks given
    88
    Thanks received
    44
    Rep Power
    46
    bump
    Reply With Quote  
     

  3. #3  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    it's just saying the channel closed

    you can ignore it, alternatively you can catch it and choose not to print the stack trace
    Reply With Quote  
     

  4. #4  
    Registered Member DarkSlayerz's Avatar
    Join Date
    Nov 2008
    Posts
    928
    Thanks given
    88
    Thanks received
    44
    Rep Power
    46
    But its an error right? becuase i dont really see it on other servers

    ...and i cant really find it in my server aswell

    edit 3:

    Code:
    	public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
    		Channel channel = ctx.getChannel();
    		logger.info("Channel disconnected: " + channel);
    		serverContext.getChannelGroup().remove(channel);
    		Object attachment = ctx.getAttachment();
    still not getting it. lol
    Reply With Quote  
     

  5. #5  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    Quote Originally Posted by DarkSlayerz View Post
    But its an error right? becuase i dont really see it on other servers
    most servers just ignore exceptions thrown by the networking

    the way i'd presume you'd 'fix' the 'error'

    is to close the channel before the client can (server sided)
    Reply With Quote  
     

  6. #6  
    Registered Member DarkSlayerz's Avatar
    Join Date
    Nov 2008
    Posts
    928
    Thanks given
    88
    Thanks received
    44
    Rep Power
    46
    Quote Originally Posted by Harlan View Post
    most servers just ignore exceptions thrown by the networking

    the way i'd presume you'd 'fix' the 'error'

    is to close the channel before the client can (server sided)
    Could you maybe give me a little bit more information?

    Because im really a noob in apollo servers
    Reply With Quote  
     

  7. #7  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    Quote Originally Posted by DarkSlayerz View Post
    Could you maybe give me a little bit more information?

    Because im really a noob in apollo servers
    im not familiar myself

    i'd say after you send the logout packet then just do session.close()
    Reply With Quote  
     

  8. #8  
    Registered Member DarkSlayerz's Avatar
    Join Date
    Nov 2008
    Posts
    928
    Thanks given
    88
    Thanks received
    44
    Rep Power
    46
    Quote Originally Posted by Harlan View Post
    im not familiar myself

    i'd say after you send the logout packet then just do session.close()
    Code:
    	public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e)/* throws Exception*/ {
    		Channel channel = ctx.getChannel();
    		logger.log(Level.INFO, "Channel disconnected: ", channel);
    		serverContext.getChannelGroup().remove(channel);
    		Object attachment = ctx.getAttachment();
    		/*if (attachment != null) {
    			((Session) attachment).destroy();
    		}*/
    	}
    Or i can do it like that?

    But not sure if thats the right way

    EDIT: nope lol, still getting it
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. A logout problem
    By Ho H0 Ho in forum Help
    Replies: 0
    Last Post: 06-17-2010, 07:38 AM
  2. Logout problem
    By smoooth in forum Help
    Replies: 13
    Last Post: 04-05-2010, 09:28 PM
  3. remove TCP logout problem
    By rmb7 in forum Help
    Replies: 0
    Last Post: 12-01-2009, 12:05 AM
  4. z508 logout problem
    By Demon in forum Help
    Replies: 34
    Last Post: 10-01-2009, 01:27 AM
  5. logout problem
    By krisg08 in forum Help
    Replies: 4
    Last Post: 09-15-2009, 10:20 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •