Serious OnConnect Issue

All Union Platform questions, comments, feature requests, and bug reports.

Serious OnConnect Issue

Postby jream » Wed 06 Mar 2013 08:49

Im having a problem getting a server work with the onConnect.

Code: Select all
$ ./startserver.sh
Server started.. OK.


On the front-end, It keeps re-calling the onConnect listener as if it keeps being retriggered, I have no idea why. Everything on the front end is blinking because it's reloading the rooms.
This is with one (1) browser open. We cannot figure out the reason behind it.

Is this bug still an issue? http://factory.user1.net/issues/show/562
Last edited by jream on Fri 08 Mar 2013 14:31, edited 1 time in total.
jream
 
Posts: 19
Joined: Thu 16 Aug 2012 15:33

Re: Front End Keeps Relistening

Postby jream » Fri 08 Mar 2013 14:18

Here is my log:
Code: Select all
2013-03-08 19:14:02,623 WARN  - Snapshot request from client [757] specified a room that wasn't found []
2013-03-08 19:14:03,754 WARN  - Snapshot request from client [758] specified a room that wasn't found []
2013-03-08 19:14:04,759 WARN  - Snapshot request from client [759] specified a room that wasn't found []
2013-03-08 19:14:05,854 WARN  - Snapshot request from client [760] specified a room that wasn't found []
2013-03-08 19:14:06,888 WARN  - Snapshot request from client [761] specified a room that wasn't found []
2013-03-08 19:14:08,028 WARN  - Snapshot request from client [762] specified a room that wasn't found []
2013-03-08 19:14:08,974 WARN  - Snapshot request from client [763] specified a room that wasn't found []
2013-03-08 19:14:10,172 WARN  - Snapshot request from client [764] specified a room that wasn't found []

2013-03-08 19:14:10,613 WARN  - Exception occurred in NIOHandler for gateway [PrimaryGateway] session [799].
org.apache.mina.filter.codec.ProtocolDecoderException: java.lang.IllegalArgumentException (Hexdump: 7E AD 7B F0 08 91 2E CE 34 E0 45 85 3D 91 54 BD 36 91 37 CE 34 EC 45 C7 30 9A 24 83 61 C3 1C 9C$
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:251)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
        at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:697)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1111)
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException
        at java.nio.Buffer.position(Unknown Source)
        at org.apache.mina.core.buffer.AbstractIoBuffer.position(AbstractIoBuffer.java:369)
        at net.user1.union.core.connection.a.b.g.f(SourceFile:402)
        at net.user1.union.core.connection.a.b.g.decode(SourceFile:91)
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:241)
        ... 15 more


Does anyone know what this error is about?
jream
 
Posts: 19
Joined: Thu 16 Aug 2012 15:33

Re: Front End Keeps Relistening

Postby jream » Fri 08 Mar 2013 14:30

It keeps firing the onConnect listener so the rooms keep flashing (reloading).
Why is this always firing?

I can't understand why the server keeps trying to reconnect when its techinically connected. Here is my htop:
See all the Java happening?
Image
jream
 
Posts: 19
Joined: Thu 16 Aug 2012 15:33

Re: Serious OnConnect Issue

Postby jream » Mon 11 Mar 2013 08:33

I believe we are going to go with the UnionCloud.io as your test server has solved every issue and been reliable while we ran things on it.
jream
 
Posts: 19
Joined: Thu 16 Aug 2012 15:33


Return to Union Platform

Online

Users browsing this forum: No registered users and 8 guests