JeffLeFoll / gwteventservice

An event-based client-server communication framework.
http://code.google.com/p/gwteventservice
Other
3 stars 3 forks source link

Error in GWT event service while rebooting the system. #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I face following issue when I use.

RemoteEventServiceServlet's addEvent() method.

This happens perticularly when i try to reboot my system.

Please provide any additional information below.

 de.novanic.eventservice.service.exception.NoSessionAvailab
        at de.novanic.eventservice.service.connection.id.SessionConnectionIdGenerator.getConnectionId(SessionConnectionIdGenerator.java:64)                                 
        at de.novanic.eventservice.service.EventExecutorServiceFactory.getEventExecutorService(EventExecutorServiceFactory.java:97)                                         
        at de.novanic.eventservice.service.RemoteEventServiceServlet.getEventExecutorService(RemoteEventServiceServlet.java:111)                                            
        at de.novanic.eventservice.service.RemoteEventServiceServlet.addEvent(RemoteEventServiceServlet.java:64)    

Original issue reported on code.google.com by kalyanik...@gmail.com on 21 Jan 2015 at 9:40

GoogleCodeExporter commented 8 years ago
Following is the exact ERROR I GET

2015-01-21 09:53:52.282 GMT+00:00 [http-apr-80-exec-2] ERROR 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] 185 Exception 
while dispatching incoming RPC 
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public 
abstract java.util.List 
de.novanic.eventservice.client.event.service.EventService.listen()' threw
        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) ~[gwt-servlet.jar:na]                                                                  
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) ~[gwt-servlet.jar:na]                                                                   
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) ~[gwt-servlet.jar:na]                                             
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) ~[gwt-servlet.jar:na]                                             
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) ~[gwt-servlet.jar:na]                                   
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [servlet-api.jar:na]                                                                                
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [servlet-api.jar:na]                                                                                
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) [catalina.jar:7.0.19]                                          
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.19]                                                  
        at com.ericsson.wifi.web.filter.CacheControlFilter.doFilter(CacheControlFilter.java:45) [CacheControlFilter.class:na]                                               
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.19]                                          
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.19]                                                  
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [catalina.jar:7.0.19]                                                        
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [catalina.jar:7.0.19]                                                        
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) [catalina.jar:7.0.19]                                                     
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) [catalina.jar:7.0.19]                                                              
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [catalina.jar:7.0.19]                                                              
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.19]                                                          
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) [catalina.jar:7.0.19]                                                                
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:257) [tomcat-coyote.jar:7.0.19]                                                      
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) [tomcat-coyote.jar:7.0.19]                                       
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1764) [tomcat-coyote.jar:7.0.19]                                                     
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_17]                                                                                  
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_17]                                                                                 
        at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]                                                                                                               
Caused by: 
de.novanic.eventservice.service.exception.NoSessionAvailableException: There is 
no session available! Maybe no session was generated explicitly by the 
connection
        at de.novanic.eventservice.service.connection.id.SessionConnectionIdGenerator.getConnectionId(SessionConnectionIdGenerator.java:64) ~[eventservice-1.2.1.jar:na]    
        at de.novanic.eventservice.service.EventServiceImpl.getClientId(EventServiceImpl.java:356) ~[eventservice-1.2.1.jar:na]                                             
        at de.novanic.eventservice.service.EventServiceImpl.getClientId(EventServiceImpl.java:347) ~[eventservice-1.2.1.jar:na]                                             
        at de.novanic.eventservice.service.EventServiceImpl.listen(EventServiceImpl.java:232) ~[eventservice-1.2.1.jar:na]                                                  
        at sun.reflect.GeneratedMethodAccessor469.invoke(Unknown Source) ~[na:na]                                                                                           
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_17]                                                                                   
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_17]                                                                                                   
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ~[gwt-servlet.jar:na]                                                                   
        ... 23 common frames omitted 
2015-01-21 09:53:52.291 GMT+00:00 [http-apr-80-exec-6] ERROR 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] 185 Exception 
while dispatching incoming RPC 
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public 
abstract void 
de.novanic.eventservice.client.event.service.EventService.unlisten(de.novanic.ev
ent
        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) ~[gwt-servlet.jar:na]                                                                  
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) ~[gwt-servlet.jar:na]                                                                   
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) ~[gwt-servlet.jar:na]                                             
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) ~[gwt-servlet.jar:na]                                             
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) ~[gwt-servlet.jar:na]                                   
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [servlet-api.jar:na]                                                                                
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [servlet-api.jar:na]                                                                                
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) [catalina.jar:7.0.19]                                          
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.19]                                                  
        at com.ericsson.wifi.web.filter.CacheControlFilter.doFilter(CacheControlFilter.java:45) [CacheControlFilter.class:na]                                               
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.19]                                          
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.19]                                                  
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [catalina.jar:7.0.19]                                                        
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [catalina.jar:7.0.19]                                                        
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) [catalina.jar:7.0.19]                                                     
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) [catalina.jar:7.0.19]                                                              
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [catalina.jar:7.0.19]                                                              
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.19]                                                          
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) [catalina.jar:7.0.19]                                                                
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:257) [tomcat-coyote.jar:7.0.19]                                                      
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) [tomcat-coyote.jar:7.0.19]                                       
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1764) [tomcat-coyote.jar:7.0.19]                                                     
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_17]                                                                                  
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_17]                                                                                 
        at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]                                                                                                               
Caused by: 
de.novanic.eventservice.service.exception.NoSessionAvailableException: There is 
no session available! Maybe no session was generated explicitly by the 
connection
        at de.novanic.eventservice.service.connection.id.SessionConnectionIdGenerator.getConnectionId(SessionConnectionIdGenerator.java:64) ~[eventservice-1.2.1.jar:na]    
        at de.novanic.eventservice.service.EventServiceImpl.getClientId(EventServiceImpl.java:356) ~[eventservice-1.2.1.jar:na]                                             
        at de.novanic.eventservice.service.EventServiceImpl.getClientId(EventServiceImpl.java:347) ~[eventservice-1.2.1.jar:na]                                             
        at de.novanic.eventservice.service.EventServiceImpl.unlisten(EventServiceImpl.java:268) ~[eventservice-1.2.1.jar:na]                                                
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_17]                                                                                       
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_17]                                                                                       
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_17]                                                                                   
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_17]                                                                                                   
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ~[gwt-servlet.jar:na]                                                                   
        ... 23 common frames omitted            
2015-01-21 09:53:52.295 GMT+00:00 [http-apr-80-exec-1] ERROR 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] 185 Exception 
while dispatching incoming RPC 
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public 
abstract void 
de.novanic.eventservice.client.event.service.EventService.unlisten(java.util.Set
)' 
        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) ~[gwt-servlet.jar:na]                                                                  
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) ~[gwt-servlet.jar:na]                                                                   
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) ~[gwt-servlet.jar:na]                                             
        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) ~[gwt-servlet.jar:na]                                             
        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) ~[gwt-servlet.jar:na]                                   
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) [servlet-api.jar:na]                                                                                
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) [servlet-api.jar:na]                                                                                
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) [catalina.jar:7.0.19]                                          
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.19]                                                  
        at com.ericsson.wifi.web.filter.CacheControlFilter.doFilter(CacheControlFilter.java:45) [CacheControlFilter.class:na]                                               
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.19]                                          
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.19]                                                  
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) [catalina.jar:7.0.19]                                                        
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [catalina.jar:7.0.19]                                                        
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) [catalina.jar:7.0.19]                                                     
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) [catalina.jar:7.0.19]                                                              
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) [catalina.jar:7.0.19]                                                              
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.19]                                                          
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) [catalina.jar:7.0.19]                                                                
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:257) [tomcat-coyote.jar:7.0.19]                                                      
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) [tomcat-coyote.jar:7.0.19]                                       
        at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1722) [tomcat-coyote.jar:7.0.19]                                          
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_17]                                                                                  
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_17]                                                                                 
        at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]                                                                                                               
Caused by: 
de.novanic.eventservice.service.exception.NoSessionAvailableException: There is 
no session available! Maybe no session was generated explicitly by the 
connection
        at de.novanic.eventservice.service.connection.id.SessionConnectionIdGenerator.getConnectionId(SessionConnectionIdGenerator.java:64) ~[eventservice-1.2.1.jar:na]    
        at de.novanic.eventservice.service.EventServiceImpl.getClientId(EventServiceImpl.java:356) ~[eventservice-1.2.1.jar:na]                                             
        at de.novanic.eventservice.service.EventServiceImpl.getClientId(EventServiceImpl.java:347) ~[eventservice-1.2.1.jar:na]                                             
        at de.novanic.eventservice.service.EventServiceImpl.unlisten(EventServiceImpl.java:268) ~[eventservice-1.2.1.jar:na]                                                
        at de.novanic.eventservice.service.EventServiceImpl.unlisten(EventServiceImpl.java:280) ~[eventservice-1.2.1.jar:na]                                                
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_17]                                                                                       
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_17]                                                                                       
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_17]                                                                                   
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_17]                                                                                                   
        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ~[gwt-servlet.jar:na]                                                                   
        ... 23 common frames omitted                                              

Original comment by kalyanik...@gmail.com on 21 Jan 2015 at 10:10

sajjadafridi commented 6 years ago

I faced the following error, how should can i solve?

SEVERE: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String edu.iastate.airl.semtus.client.SemtusService.handleInput(java.lang.String,java.lang.String) throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:648) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:670) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at edu.iastate.airl.semtus.server.SemtusServiceImpl.handleInput(SemtusServiceImpl.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562) ... 26 more

JeffLeFoll commented 6 years ago

it seems you have a null value somewhere in :

Caused by: java.lang.NullPointerException
at edu.iastate.airl.semtus.server.SemtusServiceImpl.handleInput(SemtusServiceImpl.java:60