Re: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to 'com.google.gwt.user.clien
Try using jdk, jre directly 1.8. Some of my issues disapeared after I switch from java13 to java8. On Monday, March 23, 2020 at 2:05:43 PM UTC-3, Ashi Dev wrote: > > Exception while dispatching incoming RPC call > com.google.gwt.user.client.rpc.SerializationException: Type > 'com.google.gson.internal.LinkedTreeMap' was not assignable to > 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom > field serializer.For security purposes, this type will not be serialized.: > instance = {} > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:696) > > ~[gwt-servlet.jar:na] > > Using GWT 2.8.2, Java 11, compliance level 1.8, gson.jar version 2.8.6 > On linux. > > However, on windows same set up works with gson jar 2.2.2 but not with > 2.8.6. > > Can you help? > > This email is sent on behalf of Northgate Public Services (UK) Limited and > its associated companies including Rave Technologies (India) Pvt Limited > (together "Northgate Public Services") and is strictly confidential and > intended solely for the addressee(s). > If you are not the intended recipient of this email you must: (i) not > disclose, copy or distribute its contents to any other person nor use its > contents in any way or you may be acting unlawfully; (ii) contact > Northgate Public Services immediately on +44(0)1442 768445 quoting the > name of the sender and the addressee then delete it from your system. > Northgate Public Services has taken reasonable precautions to ensure that > no viruses are contained in this email, but does not accept any > responsibility once this email has been transmitted. You should scan > attachments (if any) for viruses. > > Northgate Public Services (UK) Limited, registered in England and Wales > under number 00968498 with a registered address of Peoplebuilding 2, > Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 > 4NW. Rave Technologies (India) Pvt Limited, registered in India under > number U31900MH1998PTC117068 with a registered address of PLOT CS 445, 3 > rd Floor, A-wing Madhu Corporate Park Ltd, Pandurang Budhkar Marg, Mumbai > -400013 > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/953c8c85-7ff7-40c0-b359-cece3b36b232%40googlegroups.com.
Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to 'com.google.gwt.user.client.rp
Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: instance = {} at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:696) ~[gwt-servlet.jar:na] Using GWT 2.8.2, Java 11, compliance level 1.8, gson.jar version 2.8.6 On linux. However, on windows same set up works with gson jar 2.2.2 but not with 2.8.6. Can you help? -- This email is sent on behalf of Northgate Public Services (UK) Limited and its associated companies including Rave Technologies (India) Pvt Limited (together "Northgate Public Services") and is strictly confidential and intended solely for the addressee(s). If you are not the intended recipient of this email you must: (i) not disclose, copy or distribute its contents to any other person nor use its contents in any way or you may be acting unlawfully; (ii) contact Northgate Public Services immediately on +44(0)1442 768445 quoting the name of the sender and the addressee then delete it from your system. Northgate Public Services has taken reasonable precautions to ensure that no viruses are contained in this email, but does not accept any responsibility once this email has been transmitted. You should scan attachments (if any) for viruses. Northgate Public Services (UK) Limited, registered in England and Wales under number 00968498 with a registered address of Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 4NW. Rave Technologies (India) Pvt Limited, registered in India under number U31900MH1998PTC117068 with a registered address of PLOT CS 445, 3 rd Floor, A-wing Madhu Corporate Park Ltd, Pandurang Budhkar Marg, Mumbai -400013 -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/08de8dc5-f69b-4e46-94b2-6a1f4ebe9739%40googlegroups.com.
Logout then login error (Exception while dispatching incoming RPC call: javax.servlet.ServletException: Content-Type was '(null)'. Expected 'text/x-gwt-rpc'.)
I am logging out of application the logging in again.I get this error The user can not login and the error: *The call failed on the server; see server log for details* appears Using GWT 2.7. Can anyone tell whats causing this? From the logs I get 17:07:44,625 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/GlobalSolution]] (http--0.0.0.0-8080-6) Exception while dispatching incoming RPC call: javax.servlet.ServletException: Content-Type was '(null)'. Expected 'text/x-gwt-rpc'. at com.google.gwt.user.server.rpc.RPCServletUtils.checkContentTypeIgnoreCase(RPCServletUtils.java:476) [gwt-servlet-2.6.1.jar:] at com.google.gwt.user.server.rpc.RPCServletUtils.readContent(RPCServletUtils.java:207) [gwt-servlet-2.6.1.jar:] at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsGwtRpc(RPCServletUtils.java:250) [gwt-servlet-2.6.1.jar:] at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.readContent(AbstractRemoteServiceServlet.java:182) [gwt-servlet-2.6.1.jar:] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:296) [gwt-servlet-2.6.1.jar:] at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) [gwt-servlet-2.6.1.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.1.RELEASE.jar:3.2.1.RELEASE] at com.ericsson.edosdp.usermanagement.filters.EdosdpWamHeaderUserEnhancementFilter.doFilter(EdosdpWamHeaderUserEnhancementFilter.java:92) [user-management-web-1.0.4-20150202.062114-34.jar:] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342
Re: Logout then login error (Exception while dispatching incoming RPC call: javax.servlet.ServletException: Content-Type was '(null)'. Expected 'text/x-gwt-rpc'.)
The exception itself is pretty clear: GWT-RPC checks if a GWT-RPC request has the HTTP header Content-Type: text/x-gwt-rpc. If GWT can not find that header or the header has no value then it throws the above exception. So in your setup something is messing up that HTTP header. So I guess you have to debug a server request to figure out who is responsible for the issue. Also figure out if you have a proxy server in front of your app servers and if that proxy server works correctly. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Exception while dispatching incoming RPC call
what's the code at RPC.java:579? if you have a DB, does the app connect succesfully to the DB?? On Thu, Apr 24, 2014 at 1:16 AM, Charles Nelson silkyhotli...@gmail.comwrote: I have an app that works perfectly in my development environment of eclipse/jetty. It also work fine when I deploy it locally to tomcat 7 on my development machine. But it fails on my production server with the following error, ... SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server. rpc.RPC.encodeResponseForFailure(RPC.java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:561) SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC. java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:561) SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC. java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:561) ... Help! Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Exception while dispatching incoming RPC call
machine. But it fails on my production server with the following error, ... SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server. rpc.RPC.encodeResponseForFailure(RPC.java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:561) SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC. java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:561) SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC. java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC. java:561) ... Help! Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/l5oDVXaRd90/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. RPC.java Description: Binary data
Re: Exception while dispatching incoming RPC call
The error I'm getting seems to suggest that there may be an issue with the serialization policy file. But if that is true then why doesn't it fail on my local machine? You should see a log entry saying that the serialization policy file could not be loaded. That log entry only appears once when you do the very first GWT-RPC request. If your production deployment does not meet GWT's standard assumption on how to load that file you can override RemoteServiceServlet.doGetSerializationPolicy(). -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Exception while dispatching incoming RPC call
I've tried manually setting the service URL with setServiceEntryPoint(URL), ensuring the ServletContext.getResource() call and overriding the RemoteServiceServlet.doGetSerializationPolicy() methods but my app still fails on my hosting company's server. And they aren't providing access to the tomcat logs so I can't determine what's failing. This is my 1st pure GWT-RPC app. My other apps use GWT-HTTP for the client side and uses grails for the server side and I haven't had any issues with tomcat. Right now I'm lost... On Thu, Apr 24, 2014 at 4:39 AM, Jens jens.nehlme...@gmail.com wrote: The error I'm getting seems to suggest that there may be an issue with the serialization policy file. But if that is true then why doesn't it fail on my local machine? You should see a log entry saying that the serialization policy file could not be loaded. That log entry only appears once when you do the very first GWT-RPC request. If your production deployment does not meet GWT's standard assumption on how to load that file you can override RemoteServiceServlet.doGetSerializationPolicy(). -- J. -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/l5oDVXaRd90/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Exception while dispatching incoming RPC call
On 04/24/2014 01:44 PM, Charles Nelson wrote: I've tried manually setting the service URL with setServiceEntryPoint(URL), ensuring the ServletContext.getResource() call and overriding the RemoteServiceServlet.doGetSerializationPolicy() methods but my app still fails on my hosting company's server. And they aren't providing access to the tomcat logs so I can't determine what's failing. This is my 1st pure GWT-RPC app. My other apps use GWT-HTTP for the client side and uses grails for the server side and I haven't had any issues with tomcat. Right now I'm lost... Is your web exposed War deploy path the same as the Tomcat context path? I have a system here I have to override the module base on the server side with: @Override protected SerializationPolicy doGetSerializationPolicy( HttpServletRequest request, String moduleBaseURL, String strongName) { moduleBaseURL=request.getScheme()+://+request.getServerName()+(new File(request.getRequestURI()).getParent()+/); //System.out.println(MUNGED moduleBaseURL: +moduleBaseURL); return super.doGetSerializationPolicy(request, moduleBaseURL, strongName); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Exception while dispatching incoming RPC call
I have an app that works perfectly in my development environment of eclipse/jetty. It also work fine when I deploy it locally to tomcat 7 on my development machine. But it fails on my production server with the following error, ... SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server. rpc.RPC.encodeResponseForFailure(RPC.java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561) SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561) SEVERE: Exception while dispatching incoming RPC call at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561) ... Help! Thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
GWT2.3 AppEngineSDK 1.6.6 I'm getting a several errors and I'm not sure which one of these needs to be fixed first. javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance( NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_( Runtime.java:127) at com.google.appengine.tools.development.agent.runtime.Runtime.newInstance( Runtime.java:135) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.instantiate( ServerSerializationStreamReader.java:914) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize( ServerSerializationStreamReader.java:556) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject( AbstractSerializationStreamReader.java:119) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue( ServerSerializationStreamReader.java:138) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue( ServerSerializationStreamReader.java:385) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeClass( ServerSerializationStreamReader.java:670) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl( ServerSerializationStreamReader.java:724) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize( ServerSerializationStreamReader.java:560) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject( AbstractSerializationStreamReader.java:119) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue( ServerSerializationStreamReader.java:138) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue( ServerSerializationStreamReader.java:385) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:303) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall( RemoteServiceServlet.java:206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost( RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost( AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter( HeaderVerificationFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter( ServeBlobFilter.java:60) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter( TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter( StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter( BackendServersFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle( DevAppEngineWebAppContext.java:78) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle( JettyContainerService.java:369) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content( HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218
Re: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
Usually you need to make sure your server code is in your .server package and the GWT code is in the .client package. Here the server side is trying to invoke GWT code, but cannot, because it is not client side. Make sure the classes are in the proper folders and place code that needs to be used in both places in the .shared package. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-2H6ujREXh4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Hibernate integration EROR : Exception while dispatching incoming RPC call
Paste all your hibernate jars in your web-inf/lib folder . On Wednesday, 13 June 2012 12:47:17 UTC+5:30, Rahul Gamit wrote: Hello i have followed https://developers.google.com/web-toolkit/articles/using_gwt_with_hibernatetutorial to integrate gwt and hibernate. I have used DTO approach for integration, but whenever i am running the application i am getting the following error. *Exception while dispatching incoming RPC call* Here is the entire stack trace, [WARN] Server class 'org.hibernate.Session' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/D:/Eclipse%20Workspaces/GwtMvpProject/newlib/hibernate3.jar' to the web app classpath for this session For additional info see: file:/D:/Development%20Tools/eclipse-jee-indigo-SR2-win32-x86_64/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201205021203-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html [WARN] Server class 'org.dom4j.DocumentException' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/D:/Eclipse%20Workspaces/GwtMvpProject/newlib/dom4j-1.6.1.jar' to the web app classpath for this session For additional info see: file:/D:/Development%20Tools/eclipse-jee-indigo-SR2-win32-x86_64/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201205021203-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void com.google.employee.client.EmployeeService.addContact(com.google.employee.client.DTO.ContactDTO)' threw an unexpected exception: java.lang.ExceptionInInitializerError at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.ExceptionInInitializerError at com.google.employee.util.HibernateUtil.clinit(HibernateUtil.java:17) at com.google.employee.server.EmployeeServiceImpl.addContact(EmployeeServiceImpl.java:59) 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:569) ... 22 more Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.hibernate.cfg.Configuration.clinit(Configuration.java:151) at com.google.employee.util.HibernateUtil.clinit(HibernateUtil.java:13) ... 28 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method
Re: GWT Hibernate integration EROR : Exception while dispatching incoming RPC call
Also, make sure you got all the required jars copied into the WEB-INF\lib folder. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/CCHBM1AkvRgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Hibernate integration EROR : Exception while dispatching incoming RPC call
Hi, This post make help: http://uptick.com.au/content/working-gwt-jpa-hibernate-and-hsqldb Cheers Rob Kiahu.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Y7Lfx5u5umUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Hibernate integration EROR : Exception while dispatching incoming RPC call
Looks like a classpath problem. I don't think you have all your hibernate jars in place. Do you have a slf4j-api in your WEB-INF/lib? On Wednesday, June 13, 2012 12:17:17 AM UTC-7, Rahul Gamit wrote: Hello i have followed https://developers.google.com/web-toolkit/articles/using_gwt_with_hibernatetutorial to integrate gwt and hibernate. I have used DTO approach for integration, but whenever i am running the application i am getting the following error. *Exception while dispatching incoming RPC call* Here is the entire stack trace, [WARN] Server class 'org.hibernate.Session' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/D:/Eclipse%20Workspaces/GwtMvpProject/newlib/hibernate3.jar' to the web app classpath for this session For additional info see: file:/D:/Development%20Tools/eclipse-jee-indigo-SR2-win32-x86_64/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201205021203-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html [WARN] Server class 'org.dom4j.DocumentException' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/D:/Eclipse%20Workspaces/GwtMvpProject/newlib/dom4j-1.6.1.jar' to the web app classpath for this session For additional info see: file:/D:/Development%20Tools/eclipse-jee-indigo-SR2-win32-x86_64/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201205021203-rel-r37/gwt-2.4.0/doc/helpInfo/webAppClassPath.html Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void com.google.employee.client.EmployeeService.addContact(com.google.employee.client.DTO.ContactDTO)' threw an unexpected exception: java.lang.ExceptionInInitializerError at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.ExceptionInInitializerError at com.google.employee.util.HibernateUtil.clinit(HibernateUtil.java:17) at com.google.employee.server.EmployeeServiceImpl.addContact(EmployeeServiceImpl.java:59) 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:569) ... 22 more Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.hibernate.cfg.Configuration.clinit(Configuration.java:151) at com.google.employee.util.HibernateUtil.clinit(HibernateUtil.java:13) ... 28 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source
Large size data transfer within GWT [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
I am working on a GWT based web app for medical image display and processing. The problem is this kind of medical image do not have the standarded fomat and it is a huge bytearray (size: over 18M). I have to directly read the image byte array and send it to the client for display and further processing. When I transfer a little part of the image, the client display the pixels normally. But when I transfer the whole image, the console promotes error: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.util.Arrays.copyOf(Unknown Source) at java.util.ArrayList.ensureCapacity(Unknown Source) at java.util.ArrayList.add(Unknown Source) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.append(ServerSerializationStreamWriter.java: 583) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeInt(AbstractSerializationStreamWriter.java: 100) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $VectorWriter$6.write(ServerSerializationStreamWriter.java:233) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeArray(ServerSerializationStreamWriter.java: 639) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java: 743) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 621) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:153) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java: 539) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java: 709) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java: 748) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 621) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:153) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java: 539) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java: 474) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 571) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) This might be the size limitation of data transfer within GWT, as I've found other‘s solution like: encode the byte array by using com.google.gwt.user.server.Base64Utils.toBase64(byte[]) . But this method does not work for IE 7. and IE8 has 32kb limit.. IE9 does not have this limit. The structure if my project is very simple and clear: Client side: -ImageService.java -ImageServiceAsync.java -WebImage.java (interface) -ImageArray.java (store the image data from server) Server side: -ImageServiceImpl.java I used a button to active this image data delivery. In the background, ImageServiceImpl read a medical image from disk file and send the data array to client. Now as the limitation that I metioned above, this process will not be succesful if I sent the whole image data. How can I do to complete this process succesfully? I wonder if there is a way to continuously deliver
Re: Large size data transfer within GWT [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
Its a server side OOM exception so you should increase your Java heap space for your application server using -Xmx (max heap size) JVM parameter. Your server JVM just don't have enough memory to build the RPC response. If you want to display the image you always have the data URI limitations in IE6-8. Because of that most people use a HttpServlet to directly return the image with the correct mime type. That way the browser can directly display the image. Take a look at: https://groups.google.com/d/topic/google-web-toolkit/CWwkYQjQ0q4/discussion -- J. Am Dienstag, 6. März 2012 17:51:58 UTC+1 schrieb OxyGen: I am working on a GWT based web app for medical image display and processing. The problem is this kind of medical image do not have the standarded fomat and it is a huge bytearray (size: over 18M). I have to directly read the image byte array and send it to the client for display and further processing. When I transfer a little part of the image, the client display the pixels normally. But when I transfer the whole image, the console promotes error: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.util.Arrays.copyOf(Unknown Source) at java.util.ArrayList.ensureCapacity(Unknown Source) at java.util.ArrayList.add(Unknown Source) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.append(ServerSerializationStreamWriter.java: 583) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeInt(AbstractSerializationStreamWriter.java: 100) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $VectorWriter$6.write(ServerSerializationStreamWriter.java:233) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeArray(ServerSerializationStreamWriter.java: 639) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java: 743) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 621) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:153) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java: 539) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java: 709) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java: 748) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 621) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:153) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java: 539) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java: 474) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 571) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) This might be the size limitation of data transfer within GWT
Re: GWT - Exception while dispatching incoming RPC call
Hi, you are getting number format exception that means somewhere your array of string is feeding up with primitive type instead of string. if you give me the piece of code, then it will help us better to understand. you can instead mail me to ankitsaxena0...@gmail.com On Jan 24, 9:14 pm, avi avinash.madire...@gmail.com wrote: Can any one suggest me to reasone/sollution for the error that got while running my GWT project Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract com.noaa.wind.client.WindSpeed[] com.noaa.wind.client.WindSpeedService.getSpeeds(java.lang.String[])' threw an unexpected exception: java.lang.NumberFormatException: For input string: Speed at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.NumberFormatException: For input string: Speed at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java: 1242) at java.lang.Double.valueOf(Double.java:492) at com.noaa.wind.server.WindSpeedServiceImpl.ReadFile(WindSpeedServiceImpl.java: 88) at com.noaa.wind.server.WindSpeedServiceImpl.getSpeeds(WindSpeedServiceImpl.java: 42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43) at java.lang.reflect.Method.invoke(Method.java:616) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) ... 22 more [ERROR] 500 - POST /windreport/windSpeed (127.0.0.1) 57 bytes Request headers Host: 127.0.0.1: Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 Chrome/ 15.0.874.106 Safari/535.2 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Content-Length: 168 Origin:http://127.0.0.1: X-GWT-Module-Base:http://127.0.0.1:/windreport/ X-GWT-Permutation: HostedMode Content-Type: text/x-gwt-rpc; charset=UTF-8 Referer:http://127.0.0.1:/WindReport.html?gwt.codesvr=127.0.0.1:9997 Response headers Content-Type: text/plain -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT - Exception while dispatching incoming RPC call
Can any one suggest me to reasone/sollution for the error that got while running my GWT project Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract com.noaa.wind.client.WindSpeed[] com.noaa.wind.client.WindSpeedService.getSpeeds(java.lang.String[])' threw an unexpected exception: java.lang.NumberFormatException: For input string: Speed at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 395) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.NumberFormatException: For input string: Speed at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java: 1242) at java.lang.Double.valueOf(Double.java:492) at com.noaa.wind.server.WindSpeedServiceImpl.ReadFile(WindSpeedServiceImpl.java: 88) at com.noaa.wind.server.WindSpeedServiceImpl.getSpeeds(WindSpeedServiceImpl.java: 42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43) at java.lang.reflect.Method.invoke(Method.java:616) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 569) ... 22 more [ERROR] 500 - POST /windreport/windSpeed (127.0.0.1) 57 bytes Request headers Host: 127.0.0.1: Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.106 Chrome/ 15.0.874.106 Safari/535.2 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Content-Length: 168 Origin: http://127.0.0.1: X-GWT-Module-Base: http://127.0.0.1:/windreport/ X-GWT-Permutation: HostedMode Content-Type: text/x-gwt-rpc; charset=UTF-8 Referer: http://127.0.0.1:/WindReport.html?gwt.codesvr=127.0.0.1:9997 Response headers Content-Type: text/plain -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Exception while dispatching incoming RPC call: javax.servlet.ServletException: Character Encoding is null
I get this exception when i deploy on my websphere server. It works fine in tomcat. How is the encoding becoming null here? Exception while dispatching incoming RPC call: javax.servlet.ServletException: Character Encoding is '(null)'. Expected 'UTF-8' at com.google.gwt.user.server.rpc.RPCServletUtils.checkCharacterEncodingIgnoreCase(RPCServletUtils.java: 391) at com.google.gwt.user.server.rpc.RPCServletUtils.readContent(RPCServletUtils.java: 163) at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsGwtRpc(RPCServletUtils.java: 205) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.readContent(AbstractRemoteServiceServlet.java: 182) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 239) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 763) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 856) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Exception while dispatching incoming RPC call
Hi, I have an error when receiving data from an RPC call since yesterday. All was working fine on monday (july 25th) I'm very sure because I tested my code and commit it on SVN that day. I revert to this version and I got the same error as follow. I upgrade yesterday (july 27th) to the new version of Google Plugin for Eclipse and it solve nothing. The problem seems at the serialization process. I don't know what to do since nothing changed, nothing that I'm aware of. Did some upgrade may have change some dependency? Java upgrade, GWT upgrade, etc.? I tried to add manually the org.jboss.serial.io.JBossObjectOutputStream library with jbos- serialization.jar but I got another class not found message. So I think I need to fix something instead of adding all those missing libraires manually. What do you think? Do you have a clue how to solve my problem? Thanks Alexandre * I'm using : ** - Eclipse Helios - Gilead 1.3 (http://noon.gilead.free.fr/gilead/) - Hibernate Tools 3.4.0.v20110215-1252-H31-GA org.hibernate.eclipse.feature.feature.group - Google App Engine Java SDK 1.5.2 1.5.2.r36v201107211953 com.google.appengine.eclipse.sdkbundle.e36.feature.feature.group - Google Plugin for Eclipse 3.6 2.3.3.r36v201107211953 com.google.gdt.eclipse.suite.e36.feature.feature.group - Google Web Toolkit SDK 2.3.0 2.3.0.r36v201105191508 com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group - GWT Designer 2.3.2.r36x201107161328 com.google.gdt.eclipse.designer.feature.feature.group - GWT Designer Core 2.3.2.r36x201107161253 com.google.gdt.eclipse.designer.hosted.feature.feature.group - GWT Designer Editor 2.3.2.r36x201107161302 com.google.gdt.eclipse.designer.editor.feature.feature.group Error message : Starting Jetty on port [WARN] Exception while dispatching incoming RPC call java.lang.NoClassDefFoundError: org/jboss/serial/io/ JBossObjectOutputStream at net.sf.gilead.core.serialization.JBossProxySerialization.serialize(JBossProxySerialization.java: 76) at net.sf.gilead.core.serialization.GwtProxySerialization.convertBasicToGwt(GwtProxySerialization.java: 165) at net.sf.gilead.core.serialization.GwtProxySerialization.convertBasicToGwt(GwtProxySerialization.java: 147) at net.sf.gilead.core.serialization.GwtSerializer.convertToGwt(GwtSerializer.java: 111) at net.sf.gilead.core.serialization.GwtSerializer.convertListToGwt(GwtSerializer.java: 276) at net.sf.gilead.core.serialization.GwtProxySerialization.convertListToGwt(GwtProxySerialization.java: 211) at net.sf.gilead.core.serialization.GwtSerializer.convertToGwt(GwtSerializer.java: 97) at net.sf.gilead.core.serialization.GwtSerializer.convertMapToGwt(GwtSerializer.java: 465) at net.sf.gilead.core.serialization.GwtProxySerialization.convertMapToGwt(GwtProxySerialization.java: 287) at net.sf.gilead.core.serialization.GwtSerializer.convertToGwt(GwtSerializer.java: 105) at net.sf.gilead.core.serialization.GwtProxySerialization.serialize(GwtProxySerialization.java: 90) at net.sf.gilead.core.store.stateless.StatelessProxyStore.convertMap(StatelessProxyStore.java: 262) at net.sf.gilead.core.store.stateless.StatelessProxyStore.storeProxyInformations(StatelessProxyStore.java: 152) at net.sf.gilead.core.beanlib.clone.ClonePropertyFilter.propagate(ClonePropertyFilter.java: 209) at net.sf.beanlib.provider.BeanPopulator.doit(BeanPopulator.java:186) at net.sf.beanlib.provider.BeanPopulator.processSetterMethod(BeanPopulator.java: 172) at net.sf.beanlib.provider.BeanPopulator.populate(BeanPopulator.java: 269) at net.sf.beanlib.provider.replicator.ReplicatorTemplate.populateBean(ReplicatorTemplate.java: 190) at net.sf.beanlib.provider.replicator.BeanReplicator.replicateBean(BeanReplicator.java: 187) at net.sf.beanlib.hibernate3.Hibernate3JavaBeanReplicator.replicateBean(Hibernate3JavaBeanReplicator.java: 71) at net.sf.gilead.core.beanlib.clone.CloneClassBeanReplicator.replicateBean(CloneClassBeanReplicator.java: 129) at net.sf.beanlib.provider.replicator.ReplicatorTemplate.replicateByBeanReplicatable(ReplicatorTemplate.java: 140) at net.sf.beanlib.provider.replicator.ReplicatorTemplate.replicate(ReplicatorTemplate.java: 135) at net.sf.beanlib.provider.BeanTransformer.transform(BeanTransformer.java: 231) at net.sf.beanlib.hibernate.HibernateBeanReplicator.copy(HibernateBeanReplicator.java: 134) at net.sf.gilead.core.LazyKiller.clone(LazyKiller.java:258) at net.sf.gilead.core.LazyKiller.detach(LazyKiller.java:212) at net.sf.gilead.core.PersistentBeanManager.clonePojo(PersistentBeanManager.java: 392) at net.sf.gilead.core.PersistentBeanManager.clone(PersistentBeanManager.java: 254
Re: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
Is it reaching the server side code - I mean RPC Implementation class ? You can see in Debug. put a break point in RPC server impl. If not reaching there , then it is definition issue - check web.xml, sync and async method. Debug mode gives very good Idea. Looking like some mismatch while dispatching to servlet impl. Does arraylist have any elements ? On Jul 19, 3:30 am, Nandha nandha1...@gmail.com wrote: Hi, I am getting the following error in the prompt. anybody can give solution for this... Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Successfully processed C:\java\eclipse3.6.1\workspace\spectrum\war\WEB- INF/appengine-web.xml Successfully processed C:\java\eclipse3.6.1\workspace\spectrum\war\WEB- INF/web.xml The server is running athttp://localhost:/ [WARN] No file found for: /favicon.ico [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.ArrayList spectrum.client.SpectrumService.getCMSData() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 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(RemoteServi ceServlet.java: 207) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 243) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn gineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.set(Unknown Source) at spectrum.server.SpectrumServiceImpl.getCMSData(SpectrumServiceImpl.java: 49) 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.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime .java: 100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562
Aw: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
Seems like you did a yourArrayList.get(0) call on an empty ArrayList inside your getCMSData() method. So I would check that first. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Lk-cZ_i0IVQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
Hi, I am getting the following error in the prompt. anybody can give solution for this... Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Successfully processed C:\java\eclipse3.6.1\workspace\spectrum\war\WEB- INF/appengine-web.xml Successfully processed C:\java\eclipse3.6.1\workspace\spectrum\war\WEB- INF/web.xml The server is running at http://localhost:/ [WARN] No file found for: /favicon.ico [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.ArrayList spectrum.client.SpectrumService.getCMSData() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 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: 207) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 243) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.set(Unknown Source) at spectrum.server.SpectrumServiceImpl.getCMSData(SpectrumServiceImpl.java: 49) 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.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562) ... 30 more -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Exception while dispatching incoming RPC call
I solved it by editing the datastore-indexes-auto in WAR- WEB-INF. it was: datastore-index kind=Stock ancestor=false source=auto property name=user direction=asc/ property name=createDate direction=asc/ /datastore-index changed to: datastore-index kind=Stock ancestor=false source=manual property name=user direction=asc/ property name=createDate direction=asc/ /datastore-index I re-uploaded the code to app engine, waited for the index to be created and it worked -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DynaTable, Exception while dispatching incoming RPC call
Hello! Today I started to use GWT. I tried to run the example DynaTable, but it doesn't work. I imported the files of that directory into a new project. When I run DynaTable I get this error: http://itlosningar.appspot.com/' When I run it in Eclipse I get the same error and this is printed out: Initializing AppEngine server Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Successfully processed D:\Programmering\KTH\BachelorThesis\DynaTable \war\WEB-INF/appengine-web.xml Successfully processed D:\Programmering\KTH\BachelorThesis\DynaTable \war\WEB-INF/web.xml The server is running at http://localhost:/ [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.ExceptionInInitializerError at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:160) at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java: 158) at com.google.gwt.user.server.rpc.HybridServiceServlet.processCall(HybridServiceServlet.java: 111) at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java: 222) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 94) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.RuntimeException: Unable to get Unsafe instance at com.google.gwt.rpc.server.CommandSerializationUtil.clinit(CommandSerializationUtil.java: 457) ... 36 more Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166) at java.lang.SecurityManager.checkPackageAccess(Unknown Source) at java.lang.ClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method
Exception while dispatching incoming RPC call
Hi: I using GWT but it get a error(I want to GWT with JPA) : [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void org.kuoying.client.GreetingService.save(org.kuoying.client.RpcItem)' threw an unexpected exception: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) .. souce code: public class First implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { Button sendButton = new Button(Send); final TextBox nameField = new TextBox(); nameField.setText(GWT User); RootPanel.get(nameFieldContainer).add(nameField); RootPanel.get(sendButtonContainer).add(sendButton); sendButton.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { GreetingServiceAsync greetingService = GWT .create(GreetingService.class); String textToServer = nameField.getText(); RpcItem ri = new RpcItem(); ri.setId(7); ri.setUsername(textToServer); greetingService.save(ri, new AsyncCallback() { public void onFailure(Throwable caught) { Window.alert(Fail); } public void onSuccess(Object result) { Window.alert(Success); } }); } }); } } -- @RemoteServiceRelativePath(greet) public interface GreetingService extends RemoteService { // String greetServer(String name) throws IllegalArgumentException; void save(RpcItem ri); } -- public interface GreetingServiceAsync { void save(RpcItem ri, AsyncCallback callback); } public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { private static final long serialVersionUID = 1L; @Override public void save(RpcItem ri) { EntityManagerFactory emf; EntityManager em = null; try { emf = Persistence.createEntityManagerFactory(oo); em = emf.createEntityManager(); em.getTransaction().begin(); em.persist(ri); em.getTransaction().commit(); } finally { em.close(); } } } What can I do?? THX^^ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Exception while dispatching incoming RPC call
Hi: I using GWT but it get a error(I want to GWT with JPA) : [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void org.kuoying.client.GreetingService.save(org.kuoying.client.RpcItem)' threw an unexpected exception: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) .. souce code: public class First implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { Button sendButton = new Button(Send); final TextBox nameField = new TextBox(); nameField.setText(GWT User); RootPanel.get(nameFieldContainer).add(nameField); RootPanel.get(sendButtonContainer).add(sendButton); sendButton.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { GreetingServiceAsync greetingService = GWT .create(GreetingService.class); String textToServer = nameField.getText(); RpcItem ri = new RpcItem(); ri.setId(7); ri.setUsername(textToServer); greetingService.save(ri, new AsyncCallback() { public void onFailure(Throwable caught) { Window.alert(Fail); } public void onSuccess(Object result) { Window.alert(Success); } }); } }); } } -- @RemoteServiceRelativePath(greet) public interface GreetingService extends RemoteService { // String greetServer(String name) throws IllegalArgumentException; void save(RpcItem ri); } -- public interface GreetingServiceAsync { void save(RpcItem ri, AsyncCallback callback); } public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { private static final long serialVersionUID = 1L; @Override public void save(RpcItem ri) { EntityManagerFactory emf; EntityManager em = null; try { emf = Persistence.createEntityManagerFactory(oo); em = emf.createEntityManager(); em.getTransaction().begin(); em.persist(ri); em.getTransaction().commit(); } finally { em.close(); } } } What can I do?? THX^^ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Exception while dispatching incoming RPC call
EntityManagerFactory emf; EntityManager em = null; try { emf = Persistence.createEntityManagerFactory(oo); em = emf.createEntityManager(); em.getTransaction().begin(); em.persist(ri); em.getTransaction().commit(); } finally { em.close(); } If you throw an exception in Persistence.createEntityManagerFactory (), em will be null when you try to call close on it. Put an if (em != null) test in your finally. On Oct 1, 8:06 pm, kuoy...@taiwan stu93303...@gmail.com wrote: Hi: I using GWT but it get a error(I want to GWT with JPA) : [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void org.kuoying.client.GreetingService.save(org.kuoying.client.RpcItem)' threw an unexpected exception: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) .. souce code: public class First implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { Button sendButton = new Button(Send); final TextBox nameField = new TextBox(); nameField.setText(GWT User); RootPanel.get(nameFieldContainer).add(nameField); RootPanel.get(sendButtonContainer).add(sendButton); sendButton.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { GreetingServiceAsync greetingService = GWT .create(GreetingService.class); String textToServer = nameField.getText(); RpcItem ri = new RpcItem(); ri.setId(7); ri.setUsername(textToServer); greetingService.save(ri, new AsyncCallback() { public void onFailure(Throwable caught) { Window.alert(Fail); } public void onSuccess(Object result) { Window.alert(Success); } }); } }); }} -- @RemoteServiceRelativePath(greet) public interface GreetingService extends RemoteService { // String greetServer(String name) throws IllegalArgumentException; void save(RpcItem ri);} -- public interface GreetingServiceAsync { void save(RpcItem ri, AsyncCallback callback);} public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { private static final long serialVersionUID = 1L; @Override public void save(RpcItem ri) { EntityManagerFactory emf; EntityManager em = null; try { emf = Persistence.createEntityManagerFactory(oo); em = emf.createEntityManager(); em.getTransaction().begin(); em.persist(ri); em.getTransaction().commit(); } finally { em.close(); } } } What can I do?? THX^^ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Exception while dispatching incoming RPC call Object Manager has been closed (repost)
Hey, I've been trying to get my RPC Call to AppEngine to work since last Wed, with no luck. My issue now seems to be with my query. I'm willing to post any code needed, but I just want to get this working, as this has completely halted me on any further progress on my app. Everything looks like it should be working. Here is my TestServiceImpl.java : package com.spierce7.gwt.test.server; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.logging.Logger; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import javax.jdo.Query; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.spierce7.gwt.test.client.TestService; import com.spierce7.gwt.test.shared.PersistentShift; public class TestServiceImpl extends RemoteServiceServlet implements TestService{ private static final Logger LOG = Logger.getLogger(TestServiceImpl.class.getName()); private static final PersistenceManagerFactory PMF = JDOHelper.getPersistenceManagerFactory(transactions-optional); public void addShift(Date startDate, Date endDate) { PersistenceManager pm = getPersistenceManager(); try { pm.makePersistent(new PersistentShift(startDate, endDate)); } finally { pm.close(); } } public ListPersistentShift getShifts() { PersistenceManager pm = getPersistenceManager(); ListPersistentShift results = new ArrayListPersistentShift(); Query query = pm.newQuery(PersistentShift.class); query.setFilter(search == 1); try { results = (ListPersistentShift) query.execute(); } finally { pm.close(); } return results; } private PersistenceManager getPersistenceManager() { return PMF.getPersistenceManager(); } } ___ My addShift function works fine, and I can add objects to the database just fine. I just can't retrieve them. I finally changed the objects in the database to all have an int variable called search, and it's always set to 1. When I call the getShifts() method though, it gives me this error: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call Object Manager has been closed org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed at org.datanucleus.ObjectManagerImpl.assertIsOpen(ObjectManagerImpl.java: 3876) at org.datanucleus.ObjectManagerImpl.getFetchPlan(ObjectManagerImpl.java: 376) at org.datanucleus.store.query.Query.getFetchPlan(Query.java: 497) at org.datanucleus.store.appengine.query.DatastoreQuery $6.apply(DatastoreQuery.java:631) at org.datanucleus.store.appengine.query.DatastoreQuery $6.apply(DatastoreQuery.java:630) at org.datanucleus.store.appengine.query.LazyResult.resolveNext(LazyResult.java: 94) at org.datanucleus.store.appengine.query.LazyResult $LazyAbstractListIterator.computeNext(LazyResult.java:215) at org.datanucleus.store.appengine.query.AbstractIterator.tryToComputeNext(AbstractIterator.java: 132) at org.datanucleus.store.appengine.query.AbstractIterator.hasNext(AbstractIterator.java: 127) at org.datanucleus.store.appengine.query.LazyResult $AbstractListIterator.hasNext(LazyResult.java:169) at java.util.AbstractCollection.toString(Unknown Source) ... (it goes on) ___ I saw some examples where queries are ended with query.closeAll(), and I tried that also, but I get a different error telling me something couldn't be serialized from the datanucleus. At this point I just want it to work. Any help, or any ideas would be great. Let me know if you'd like some other code posted. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Exception while dispatching incoming RPC call Object Manager has been closed
Hey, I've been trying to get my RPC Call to AppEngine to work since last Wed, with no luck. My issue now seems to be with my query. I'm willing to post any code needed, but I just want to get this working, as this has completely halted me on any further progress on my app. Everything looks like it should be working. Here is my TestServiceImpl.java : package com.spierce7.gwt.test.server; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.logging.Logger; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import javax.jdo.Query; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.spierce7.gwt.test.client.TestService; import com.spierce7.gwt.test.shared.PersistentShift; public class TestServiceImpl extends RemoteServiceServlet implements TestService{ private static final Logger LOG = Logger.getLogger(TestServiceImpl.class.getName()); private static final PersistenceManagerFactory PMF = JDOHelper.getPersistenceManagerFactory(transactions-optional); public void addShift(Date startDate, Date endDate) { PersistenceManager pm = getPersistenceManager(); try { pm.makePersistent(new PersistentShift(startDate, endDate)); } finally { pm.close(); } } public ListPersistentShift getShifts() { PersistenceManager pm = getPersistenceManager(); ListPersistentShift results = new ArrayListPersistentShift(); Query query = pm.newQuery(PersistentShift.class); query.setFilter(search == 1); try { results = (ListPersistentShift) query.execute(); } finally { pm.close(); } return results; } private PersistenceManager getPersistenceManager() { return PMF.getPersistenceManager(); } } ___ My addShift function works fine, and I can add objects to the database just fine. I just can't retrieve them. I finally changed the objects in the database to all have an int variable called search, and it's always set to 1. When I call the getShifts() method though, it gives me this error: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call Object Manager has been closed org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed at org.datanucleus.ObjectManagerImpl.assertIsOpen(ObjectManagerImpl.java: 3876) at org.datanucleus.ObjectManagerImpl.getFetchPlan(ObjectManagerImpl.java: 376) at org.datanucleus.store.query.Query.getFetchPlan(Query.java:497) at org.datanucleus.store.appengine.query.DatastoreQuery $6.apply(DatastoreQuery.java:631) at org.datanucleus.store.appengine.query.DatastoreQuery $6.apply(DatastoreQuery.java:630) at org.datanucleus.store.appengine.query.LazyResult.resolveNext(LazyResult.java: 94) at org.datanucleus.store.appengine.query.LazyResult $LazyAbstractListIterator.computeNext(LazyResult.java:215) at org.datanucleus.store.appengine.query.AbstractIterator.tryToComputeNext(AbstractIterator.java: 132) at org.datanucleus.store.appengine.query.AbstractIterator.hasNext(AbstractIterator.java: 127) at org.datanucleus.store.appengine.query.LazyResult $AbstractListIterator.hasNext(LazyResult.java:169) at java.util.AbstractCollection.toString(Unknown Source) ... (it goes on) ___ I saw some examples where queries are ended with query.closeAll(), and I tried that also, but I get a different error telling me something couldn't be serialized from the datanucleus. At this point I just want it to work. Any help, or any ideas would be great. Let me know if you'd like some other code posted. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Exception while dispatching incoming RPC call
hello, I'm trying the tutorial to store data in the datastore and got the following error and I can not solve it. the link of the tutorial is in http://code.google.com/intl/es/webtoolkit/doc/latest/tutorial/appengine.html # data I give the log appengine thanks javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String[] com.inout.stockwatcher.client.StockService.getStocks() throws com.inout.stockwatcher.client.NotLoggedInException' threw an unexpected exception: com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found.. datastore-index kind=Stock ancestor=false source=manual property name=user direction=asc/ property name=createDate direction=asc/ /datastore-index 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:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 243) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 536) at com.google.net.rpc.impl.Server.startRpc(Server.java:807) at com.google.net.rpc.impl.Server.processRequest(Server.java:369) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java: 442) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java: 831) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java: 207) at com.google.net.async.EventDispatcher.loop
Re: Exception while dispatching incoming RPC call
It sounds like you're trying to retrieve an item that's not in your datastore. kathrin On Thu, Apr 1, 2010 at 3:20 PM, educonstantin educonstan...@gmail.comwrote: hello, I'm trying the tutorial to store data in the datastore and got the following error and I can not solve it. the link of the tutorial is in http://code.google.com/intl/es/webtoolkit/doc/latest/tutorial/appengine.html # data I give the log appengine thanks javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String[] com.inout.stockwatcher.client.StockService.getStocks() throws com.inout.stockwatcher.client.NotLoggedInException' threw an unexpected exception: com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found.. datastore-index kind=Stock ancestor=false source=manual property name=user direction=asc/ property name=createDate direction=asc/ /datastore-index 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:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 243) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 536) at com.google.net.rpc.impl.Server.startRpc(Server.java:807) at com.google.net.rpc.impl.Server.processRequest(Server.java:369) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java: 442) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 474
Re: Exception while dispatching incoming RPC call
This is an App Engine issue. You should use the app engine mailing list to get an answer. Having said that - App Engine requires you to create an index for every combination in which you want to query data. It seems that you are querying for data using some columns/attributes, but you haven't created an index for that combination. --Sri On 2 April 2010 20:12, Katharina Probst kpro...@google.com wrote: It sounds like you're trying to retrieve an item that's not in your datastore. kathrin On Thu, Apr 1, 2010 at 3:20 PM, educonstantin educonstan...@gmail.comwrote: hello, I'm trying the tutorial to store data in the datastore and got the following error and I can not solve it. the link of the tutorial is in http://code.google.com/intl/es/webtoolkit/doc/latest/tutorial/appengine.html # data I give the log appengine thanks javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String[] com.inout.stockwatcher.client.StockService.getStocks() throws com.inout.stockwatcher.client.NotLoggedInException' threw an unexpected exception: com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found.. datastore-index kind=Stock ancestor=false source=manual property name=user direction=asc/ property name=createDate direction=asc/ /datastore-index 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:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 243) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 536) at com.google.net.rpc.impl.Server.startRpc(Server.java:807
Re: Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Hi, thanks for posting this again. I've seen this before but it didn't solve my problem. The mistake was not in the client side code. It was in my buildpath. The server exidentally used gwt-servlet.jar instead of gwt-user.jar. I fixed my build path and now it works again. Thanks for your help Timo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Hi, I recently upgradet to GWT 1.6.4 and my application just worked fine for a while, so I kept developing. Then suddenly when I compiled my latest changes I got an IndexOutOfBounds exception on the serverside when loading the application in a browser. The stacktrace reveals that my own code is not excecuted so now I don't know where to find the source of the error. I reverted my code to an earlier version which I know of that it worked before, but it does not now. I also checked that the latest gwt libraries are in use, they all seem to be up to date. It would be great if anybody had an idea what the reason could be or where I could continue my search. Here is the serverside stacktrace: Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract (ServerSerializationStreamReader.java:617) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt (ServerSerializationStreamReader.java:432) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead (AbstractSerializationStreamReader.java:38) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead (ServerSerializationStreamReader.java:383) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:163) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:362) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:729) at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.jetty.bio.SocketConnector$Connection.run (SocketConnector.java:228) at org.mortbay.thread.QueuedThreadPool$PoolThread.run (QueuedThreadPool.java:488) Everybody who can: thanks for your help! Timo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
I am getting a: Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0, as soon as i try to call something on the server. It is before any of my server side code executes what is odd, is this only happens on my Ubuntu box...i can run it on my Windows box just fine. I am using GWT 1.5.3 and GXT 1.2.4 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
I met same exception before, please check this link below, hope it help. http://groups.google.com/group/google-appengine-java/browse_thread/thread/703b52768b10c049 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
I am getting the following exception: EVERE: [1240903589531000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'org.datanucleus.store.appengine.query.StreamingQueryResult' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. at com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize (StandardSerializationPolicy.java:83) The object which i have is very simple and look like following: package com.x2iqResearch.Monitoring.client.model; import java.util.Date; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import com.google.gwt.user.client.rpc.IsSerializable; @PersistenceCapable(identityType = IdentityType.APPLICATION) public class LogRecord implements IsSerializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long ID; @Persistent private String level; @Persistent private Long sequenceNumber; @Persistent private String sourceClassName; @Persistent private String sourceMethodName; @Persistent private String message; @Persistent private Integer threadID; @Persistent private Date timeReceived; @Persistent private String exception; @Persistent private String loggerName; @Persistent private String threadName; @Persistent private String serverName; @Persistent private Long millis; @Persistent private Long transferID; @Persistent private String resourceBundleName; public LogRecord(String level, String message){ this.level = level; this.message = message; } public LogRecord(){}//otherwise we get was not serializable and has no concrete serializable subtypes public LogRecord(Long id, String level, Long sequenceNumber, String sourceClassName, String sourceMethodName, String message, Integer threadID, Date timeReceived, String exception, String loggerName, String threadName, String serverName, Long millis, Long transferID, String resourceBundleName) { this.ID = id; this.level = level; this.sequenceNumber = sequenceNumber; this.sourceClassName = sourceClassName; this.sourceMethodName = sourceMethodName; this.message = message; this.threadID = threadID; this.timeReceived = timeReceived; this.exception = exception; this.loggerName = loggerName; this.threadName = threadName; this.serverName = serverName; this.millis = millis; this.transferID = transferID; this.resourceBundleName = resourceBundleName; } /* public LogRecord(ExtendedLogRecord record){ this.level = record.getLevel().getName(); this.loggerName = record.getLoggerName(); this.message = record.getMessage(); this.millis = record.getMillis(); this.sequenceNumber = record.getSequenceNumber(); this.sourceClassName = record.getSourceClassName(); this.sourceMethodName = record.getSourceMethodName(); this.threadID = record.getThreadID(); this.exception = record.getException(); this.threadName = record.getThreadName(); this.serverName = record.getServerName(); this.transferID = record.getTransferID(); this.timeReceived = new Date(); } */ public Long getID() { return ID; } public void setID(Long id) { ID = id; } public String getLevel() { return level; } public void setLevel(String level) { this.level = level; } public Long getSequenceNumber() { return sequenceNumber; } public void setSequenceNumber(Long sequenceNumber) { this.sequenceNumber = sequenceNumber; } public String getSourceClassName() { return sourceClassName; } public void setSourceClassName(String sourceClassName) { this.sourceClassName = sourceClassName; } public String getSourceMethodName() { return sourceMethodName; } public void setSourceMethodName(String sourceMethodName) { this.sourceMethodName = sourceMethodName; } public String getMessage() { return message; } public void setMessage(String message
Exception while dispatching incoming RPC call: IndexOutOfBoundsException
Hi, I've just came through this forum, found several posts on this topic, but haven't found any explanation. Is it a GWT bug? Or am I missing somethig? I'm using GWT 1.5.3, Glassfish V2, NetBeans IDE 6.5 and also Sanjiv's SmartGWT. I've got simple application, just added simple service, but cannot make the RPC call work. I've tried everything (according to server- side debug it seems that my service-implementation method is not even invoked, the error appears befere any breakpoint in the service is reached), but I'm still geting: WebModule[/EpistemeWebModule]Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract (ServerSerializationStreamReader.java:610) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt (ServerSerializationStreamReader.java:427) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead (AbstractSerializationStreamReader.java:38) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead (ServerSerializationStreamReader.java:382) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: 234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:162) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:85) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 738) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 831) at org.apache.catalina.core.ApplicationFilterChain.servletService (ApplicationFilterChain.java:411) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:290) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java: 94) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service (CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter (DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess (DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process (DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask (DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run (TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run (SSLWorkerThread.java:106) Thanks for help Mirek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Exception while dispatching incoming RPC call: IndexOutOfBoundsException
I'm using Eclipse and allows me to set breakpoints to Exceptions - not to just some line of code - i'm sure netbeans can do this too. It's what this Exception is telling you - somewhere you/gwt/whoever is going through the ArrayList, getting out of bounds. On 2 Mrz., 11:52, Mirek miroslav.kubi...@gmail.com wrote: Hi, I've just came through this forum, found several posts on this topic, but haven't found any explanation. Is it a GWT bug? Or am I missing somethig? I'm using GWT 1.5.3, Glassfish V2, NetBeans IDE 6.5 and also Sanjiv's SmartGWT. I've got simple application, just added simple service, but cannot make the RPC call work. I've tried everything (according to server- side debug it seems that my service-implementation method is not even invoked, the error appears befere any breakpoint in the service is reached), but I'm still geting: WebModule[/EpistemeWebModule]Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract (ServerSerializationStreamReader.java:610) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt (ServerSerializationStreamReader.java:427) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead (AbstractSerializationStreamReader.java:38) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead (ServerSerializationStreamReader.java:382) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java: 234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:162) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:85) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 738) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 831) at org.apache.catalina.core.ApplicationFilterChain.servletService (ApplicationFilterChain.java:411) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:290) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java: 94) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service (CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter (DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess (DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process (DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask (DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask (DefaultReadTask.java:214) at com.sun.enterprise.web.connector.grizzly.TaskBase.run (TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run (SSLWorkerThread.java:106) Thanks for help Mirek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com
StandardContext[]Exception while dispatching incoming RPC call
Hi, I receive the following error message when making a call from the client to server. It only happens on random intervals, maybe 20% of the time, but is starting to get annoying and wondered if anyone can spot what the problem is: [WARN] StandardContext[]Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract com.project.client.ServerSQLData com.project.client.ServerStatusSQLService.setItemWaiter (java.lang.String)' threw an unexpected exception: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure (RPC.java:360) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:546) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at com.google.gwt.dev.shell.GWTShellServlet.service (GWTShellServlet.java:289) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java: 929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java: 160) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt (PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:683) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException: null at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1468) at com.project.server.Management.ServerSQLServiceImpl.setItemWaiter (ServerSQLServiceImpl.java:315) 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:527) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at com.google.gwt.dev.shell.GWTShellServlet.service (GWTShellServlet.java:289) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104
Exception while dispatching incoming RPC call
My GWT application is using a native function to call another GWT app embedded in my main app: native JavaScriptObject openWindow(String param) /*-{ $wnd.open('./ProjectB.html?param='+param, '_blank'); return true; }-*/; The ProjectB window opens and it's app runs perfectly. However, I get an error alert, call failed on server. Why? The error is coming from GTW, as Tomcat's localhost logfile shows java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract(ServerSerializationStreamReader.java: 617) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt(ServerSerializationStreamReader.java: 432) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead(AbstractSerializationStreamReader.java: 38) ... (I asked this late last Friday. Maybe no one knows why this error comes up, maybe it but I'm desperate to find a solution. There more details at http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e8e7924527a4a1d4#). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---