Without more details to try breaking this down, it sounds like your server has gone nuts - there are all kinds of reasonable ways that LinkedHashMap can't be sent over the wire, but none of them would result in trying to load a class named "http:". Either there is a fantastic bug inside RPC (and seeing the http payload possibly could help to dig into this), or somehow you have very different classes being passed to the compiler than being used on the server, so they are each handling LinkedHashMap in totally different ways. With your new reply, can you clarify about "connections datatypes"? Was that a typo, and you meant collections? Assuming that was a typo, without more details I can only imagine that a custom version of GWT is involved. Are there any classes that end in _CustomFieldSerializer in your project? Can you share the payload and possibly some example code? If you make a very simple application that only tries to serialize one of these Collection/Connection objects, do you get the same error, or does it only happen in your main project? Feel free to contact me off-list if you want to try sharing some source privately. -- Colin Alworth [email protected]
On Fri, Jan 12, 2018, at 5:00 PM, [email protected] wrote: > Hi Collin, > Sorry for the delayed response. I started digging into the > issue again. Here is the finding. I was sending an Value > Object that has collections in it. When i removed all the > connections datatypes the error went away. There are other > places am passing list and other collection Objects. Is > there something that is missing while processing > collections ?> > On Friday, 8 December 2017 07:22:23 UTC-6, Colin Alworth wrote: >> Can you share the string that the client sent to the server for >> this? It looks as though either something has been done to modify >> the stream (preemptively read from it once it hit the client? an >> extra token was written to it? some other customization?) or perhaps >> a proxy server replaced some string with a url for some reason? >> There is no reason that a classname should begin with "http:" in the >> client code.>> >> On Wednesday, December 6, 2017 at 12:20:48 PM UTC-6, >> [email protected] wrote:>>> Hi, >>> i am getting the below error after i migrated from gwt 2.6.1 to >>> gwt 2.8.1.>>> >>> am trying to pass an "LinkedHashMap<String, Object> " object thats >>> causing the trouble. I am getting this issue only during post >>> request. Linkedhashmap is working perfectly with get request. Any >>> help is highly appreciated. Let me know if you need additional info >>> to help me.>>> >>> I have all the latest Jars (2.8.1) in my classpath "gwt-user, gwt- >>> servlet ">>> >>>>> Dec 06, 2017 11:05:08 AM >>>>> org.apache.catalina.core.ApplicationContext log SEVERE: >>>>> navigationService: An IncompatibleRemoteServiceException was >>>>> thrown while processing this call. com.google.gwt.user.client.rpc- >>>>> .IncompatibleRemoteServiceException: >>>>> java.lang.ClassNotFoundException: http: at >>>>> com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:323) at >>>>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(R- >>>>> emoteServiceServlet.java:263) at com.google.gwt.user.server.rpc.R- >>>>> emoteServiceServlet.processPost(RemoteServiceServlet.java:305) at >>>>> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPos- >>>>> t(AbstractRemoteServiceServlet.java:62) at >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at >>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at >>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(- >>>>> ApplicationFilterChain.java:305) at org.apache.catalina.core.Appl- >>>>> icationFilterChain.doFilter(ApplicationFilterChain.java:210) at >>>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.jav- >>>>> a:51) at org.apache.catalina.core.ApplicationFilterChain.internal- >>>>> DoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.- >>>>> core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:- >>>>> 210) at org.apache.catalina.core.StandardWrapperValve.invoke(Stan- >>>>> dardWrapperValve.java:222) at org.apache.catalina.core.StandardCo- >>>>> ntextValve.invoke(StandardContextValve.java:123) at org.apache.ca- >>>>> talina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.j- >>>>> ava:502) at org.apache.catalina.core.StandardHostValve.invoke(Sta- >>>>> ndardHostValve.java:171) at org.apache.catalina.valves.ErrorRepor- >>>>> tValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.v- >>>>> alves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apach- >>>>> e.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja- >>>>> va:118) at org.apache.catalina.connector.CoyoteAdapter.service(Co- >>>>> yoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11P- >>>>> rocessor.process(AbstractHttp11Processor.java:1041) at org.apache- >>>>> .coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstra- >>>>> ctProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$So- >>>>> cketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.T- >>>>> hreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java- >>>>> .util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor- >>>>> .java:617) at java.lang.Thread.run(Thread.java:745) Caused by: >>>>> com.google.gwt.user.client.rpc.SerializationException: >>>>> java.lang.ClassNotFoundException: http: at com.google.gwt.user.se- >>>>> rver.rpc.impl.ServerSerializationStreamReader.deserialize(ServerS- >>>>> erializationStreamReader.java:708) at com.google.gwt.user.server.- >>>>> rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerial- >>>>> izationStreamReader.java:612) at com.google.gwt.user.client.rpc.i- >>>>> mpl.AbstractSerializationStreamReader.readObject(AbstractSerializ- >>>>> ationStreamReader.java:119) at com.google.gwt.user.client.rpc.cor- >>>>> e.java.util.Arrays$ArrayList_CustomFieldSerializer.instantiate(Ar- >>>>> rays.java:57) at com.google.gwt.user.server.rpc.core.java.util.Ar- >>>>> rays$ArrayList_ServerCustomFieldSerializer.instantiate(Arrays.jav- >>>>> a:66) at com.google.gwt.user.server.rpc.core.java.util.Arrays$Arr- >>>>> ayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.jav- >>>>> a:106) at com.google.gwt.user.server.rpc.core.java.util.Arrays$Ar- >>>>> rayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.ja- >>>>> va:39) at com.google.gwt.user.server.rpc.impl.ServerSerialization- >>>>> StreamReader.instantiate(ServerSerializationStreamReader.java:108- >>>>> 8) at com.google.gwt.user.server.rpc.impl.ServerSerializationStre- >>>>> amReader.deserialize(ServerSerializationStreamReader.java:682) at >>>>> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamRead- >>>>> er.readObject(ServerSerializationStreamReader.java:592) at com.go- >>>>> ogle.gwt.user.server.rpc.core.java.util.Map_ServerCustomFieldSeri- >>>>> alizerBase.deserialize(Map_ServerCustomFieldSerializerBase.java:3- >>>>> 8) at com.google.gwt.user.server.rpc.core.java.util.LinkedHashMap- >>>>> _ServerCustomFieldSerializer.deserialize(LinkedHashMap_ServerCust- >>>>> omFieldSerializer.java:41) at com.google.gwt.user.server.rpc.core- >>>>> .java.util.LinkedHashMap_ServerCustomFieldSerializer.deserializeI- >>>>> nstance(LinkedHashMap_ServerCustomFieldSerializer.java:55) at com- >>>>> .google.gwt.user.server.rpc.core.java.util.LinkedHashMap_ServerCu- >>>>> stomFieldSerializer.deserializeInstance(LinkedHashMap_ServerCusto- >>>>> mFieldSerializer.java:34) at com.google.gwt.user.server.rpc.impl.- >>>>> ServerSerializationStreamReader.deserializeImpl(ServerSerializati- >>>>> onStreamReader.java:884) at com.google.gwt.user.server.rpc.impl.S- >>>>> erverSerializationStreamReader.deserialize(ServerSerializationStr- >>>>> eamReader.java:687) at com.google.gwt.user.server.rpc.impl.Server- >>>>> SerializationStreamReader.readObject(ServerSerializationStreamRea- >>>>> der.java:592) at com.google.gwt.user.server.rpc.core.java.util.Co- >>>>> llection_ServerCustomFieldSerializerBase.deserialize(Collection_S- >>>>> erverCustomFieldSerializerBase.java:38) at com.google.gwt.user.se- >>>>> rver.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.des- >>>>> erialize(ArrayList_ServerCustomFieldSerializer.java:40) at com.go- >>>>> ogle.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFie- >>>>> ldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSeria- >>>>> lizer.java:54) at com.google.gwt.user.server.rpc.core.java.util.A- >>>>> rrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayLis- >>>>> t_ServerCustomFieldSerializer.java:33) at com.google.gwt.user.ser- >>>>> ver.rpc.impl.ServerSerializationStreamReader.deserializeImpl(Serv- >>>>> erSerializationStreamReader.java:884) at com.google.gwt.user.serv- >>>>> er.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSer- >>>>> ializationStreamReader.java:687) at com.google.gwt.user.server.rp- >>>>> c.impl.ServerSerializationStreamReader.readObject(ServerSerializa- >>>>> tionStreamReader.java:592) at com.google.gwt.user.server.rpc.impl- >>>>> .ServerSerializationStreamReader$ValueReader$8.readValue(ServerSe- >>>>> rializationStreamReader.java:149) at com.google.gwt.user.server.r- >>>>> pc.impl.ServerSerializationStreamReader.deserializeValue(ServerSe- >>>>> rializationStreamReader.java:434) at >>>>> com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:312) ... >>>>> 24 more Caused by: java.lang.ClassNotFoundException: http: at org- >>>>> .apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo- >>>>> ader.java:1702) at org.apache.catalina.loader.WebappClassLoader.l- >>>>> oadClass(WebappClassLoader.java:1547) at >>>>> java.lang.Class.forName0(Native Method) at >>>>> java.lang.Class.forName(Class.java:348) at com.google.gwt.user.se- >>>>> rver.rpc.impl.ServerSerializationStreamReader.deserialize(ServerS- >>>>> erializationStreamReader.java:634) ... 50 more>>>> > > -- > You received this message because you are subscribed to a topic in > the Google Groups "GWT Users" group.> To unsubscribe from this topic, visit > > https://groups.google.com/d/topic/google-web-toolkit/LBUadxl9AUw/unsubscribe.> > To unsubscribe from this group and all its topics, send an email to > [email protected].> To post to this group, > send email to google-web- > [email protected].> Visit this group at > https://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 "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
