wangyao5 / openmobster

Automatically exported from code.google.com/p/openmobster
0 stars 0 forks source link

server network error #182

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Phone network instability, particularly in the case of using a GPRS network, 
the low
When the phone networking, due to network instability, immediately disconnect 
the network, the service side of the interaction process is not completed, the 
server controls a large number of the above error message
2.
3.

What is the expected output? What do you see instead?
===================================================
10:46:01,062 ERROR [ServerHandler] 
org.openmobster.core.dataService.server.ServerHandler@c46848
java.lang.IllegalStateException: CometSession cannot be activated. Socket is 
closed!!
        at org.openmobster.core.dataService.comet.CometSession.activate(CometSession.java:87)
        at org.openmobster.core.dataService.comet.CometSessionManager.activate(CometSessionManager.java:219)
        at org.openmobster.core.dataService.server.CommandController.execute(CommandController.java:79)
        at org.openmobster.core.dataService.server.ServerHandler.messageReceived(ServerHandler.java:106)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
        at org.openmobster.core.dataService.server.AuthenticationFilter.messageReceived(AuthenticationFilter.java:81)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
        at org.openmobster.core.dataService.server.TransactionFilter.messageReceived(TransactionFilter.java:37)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
        at org.openmobster.core.dataService.server.RequestConstructionFilter.messageReceived(RequestConstructionFilter.java:47)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
        at org.openmobster.core.dataService.server.PayloadFilter.messageReceived(PayloadFilter.java:52)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
        at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)
        at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
        at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769)
        at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761)
        at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703)
        at java.lang.Thread.run(Thread.java:662)
======================================================

What version of the product are you using? On what operating system?

=============================
2.4M2
============================

Please provide any additional information below.

Original issue reported on code.google.com by wilson.t...@gmail.com on 10 Sep 2013 at 3:08

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Wilson,

I looked at the code again for any issues and there are no issues with this 
stack trace. In fact, this error needs to be thrown up the stack so that this 
socket session can be cleaned up. However, I did notice that all the Network 
errors are being logged twice. Once in the ServerHandler and another in the 
ErrorHandler. This doubles up the logs which can be of significant size 
considering your scale.

Taking that into account, I am attaching a new dataService-2.4-M2.jar file with 
reduced logging. I hope this helps you cut down on some logging. 

All you need to do is copy the attached jar file to the deploy/openmobster.last 
directory. For safety, backup the existing dataService-2.4-M2.jar file 
somewhere else before you overwrite it. 

I hope this new jar file helps you. Also, I am assuming your dataService debug 
level is turned off (ships like this by default). If not, you can cut down on 
logging tremendously by turning off the debug level logging in the dataService.

Anyways, Good Luck

Original comment by openmobs...@gmail.com on 25 Sep 2013 at 3:21

Attachments:

GoogleCodeExporter commented 9 years ago
I will filter this particular exception from the logs in the next 
release...Just this exception will be removed since there are no functional 
side effects with this error

Original comment by openmobs...@gmail.com on 25 Sep 2013 at 3:48

GoogleCodeExporter commented 9 years ago

Original comment by openmobs...@gmail.com on 25 Sep 2013 at 3:49

GoogleCodeExporter commented 9 years ago

Original comment by openmobs...@gmail.com on 24 Dec 2013 at 5:11