I'm getting the same behavior in a completely different scenario see my post where use of a return value List<String> causes this failure, but after changing the return to String[], problem goes away... The interesting bits here are that we're both using different stacks so what's your call signature look like?
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e689e7f110369e43/607c58c8e6f407c2?hl=en&lnk=gst&q=lient+did+not+send+bytes+#607c58c8e6f407c2 On Dec 7 2008, 4:14 am, rintcius <[email protected]> wrote: > Hi, > I am trying to get a gwt-gadget running, but I am getting the > exception below on the RPC call. Anybody has an idea what could be > going on? > The stacktrace below is when deployed on jetty, but I get a similar > exception on glassfish v2. > GWT version: 1.5.3. gwt-gadget version: 1.0.1 > > Thanks for any help, > Rintcius > > [Fatal Error] :-1:-1: Premature end of file. > [Fatal Error] :-1:-1: Premature end of file. > 2008-12-06 21:40:49.329:/:WARN: Exception while dispatching incoming > RPC call > javax.servlet.ServletException: Clientdidnotsend139bytesas > expected > at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 > (RPCServletUtils.java:148) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.groovy.reflection.CachedMethod.invoke > (CachedMethod.java:86) > at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226) > at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java: > 1094) > at groovy.lang.ExpandoMetaClass.invokeStaticMethod > (ExpandoMetaClass.java:957) > at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod > (InvokerHelper.java:748) > at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN > (ScriptBytecodeAdapter.java:167) > at > org.codehaus.groovy.grails.plugins.gwt.GrailsRemoteServiceServlet.readConte nt > (GrailsRemoteServiceServlet.groovy:28) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > (RemoteServiceServlet.java:77) > 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$CachedChain.doFilter > (ServletHandler.java:1097) > at > org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.processFilt > erChain > (UrlMappingsFilter.java:157) > at > org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.doFilterInt > ernal > (UrlMappingsFilter.java:148) > at org.springframework.web.filter.OncePerRequestFilter.doFilter > (OncePerRequestFilter.java:75) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1088) > at > org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.parsePage > (GrailsPageFilter.java:119) > at > org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.doFilter > (GrailsPageFilter.java:82) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1088) > at > org.codehaus.groovy.grails.web.servlet.filter.GrailsReloadServletFilter.doF > ilterInternal > (GrailsReloadServletFilter.java:142) > at org.springframework.web.filter.OncePerRequestFilter.doFilter > (OncePerRequestFilter.java:75) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1088) > at > org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterI > nternal > (GrailsWebRequestFilter.java:68) > at org.springframework.web.filter.OncePerRequestFilter.doFilter > (OncePerRequestFilter.java:75) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1088) > at > org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal > (CharacterEncodingFilter.java:96) > at org.springframework.web.filter.OncePerRequestFilter.doFilter > (OncePerRequestFilter.java:75) > at > org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate > (DelegatingFilterProxy.java:183) > at org.springframework.web.filter.DelegatingFilterProxy.doFilter > (DelegatingFilterProxy.java:138) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1088) > at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:360) > 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.ContextHandlerCollection.handle > (ContextHandlerCollection.java:206) > 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.io.nio.SelectChannelEndPoint.run > (SelectChannelEndPoint.java:395) > at org.mortbay.thread.BoundedThreadPool$PoolThread.run > (BoundedThreadPool.java:450) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
