if i remember correctly this error is due to the fact was an untyped call...if you are using java 1.5 you can also use generics instead of the annotations...maybe is more readable
2009/8/26 jo sim <[email protected]> > > I had the class implement Serializable already but it still couldn't > work. > > My problem was solved when i add on what i missed out - the gwt > notation above the method. > /** > * @gwt.typeArgs <xxxxxxxxx.gwt.dto.NodeDataChartDTO> > */ > public List getNodeDataChartData(Long nodeDataId, String strType) > throws ClientException; > > > Thanks. > > On Aug 26, 7:57 am, Patrizio De Michele <[email protected]> wrote: > > the reason is this > > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type > > 'my.mimos.pams.gwt.dto.NodeDataChartDTO' was not included in the set > > of types which can be serialized by this SerializationPolicy. For > > security purposes, this type will not be serialized. > > > > have you implemented IsSerializable (gwt 1.4) or Serializable (gwt >=1.5) > > interfaces?? > > maybe is this but remember that not all types can be serialized, for sure > > you can > > serializa map, lists, etc....but not all types of maps or lists.... > > to be serializable a class must use only supported types.....(you can > find > > on the > > gwt tutorial/documention a list of all serialazible type) implement the > > above interfaces... > > and needs a default no argument constructor. > > > > bye Pat > > > > 2009/8/25 jo sim <[email protected]> > > > > > > > > > > > > > Can anyone help on error below? > > > The error occurs when I changed a data passing from object to > > > List..... > > > Can't figure out what did I missed out.... > > > > > Thanks in advance. > > > > > SEVERE: Exception while dispatching incoming RPC call > > > java.lang.RuntimeException: > > > com.google.gwt.user.client.rpc.SerializationException: > > > java.lang.reflect.InvocationTargetException > > > at > > > > > > org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleExporterProcessingException > > > (GWTRPCServiceExporter.java:368) > > > at > org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall > > > (GWTRPCServiceExporter.java:337) > > > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > > > (RemoteServiceServlet.java:187) > > > at > org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest > > > (GWTRPCServiceExporter.java:386) > > > at > > > org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle > > > (HttpRequestHandlerAdapter.java:49) > > > at org.springframework.web.servlet.DispatcherServlet.doDispatch > > > (DispatcherServlet.java:858) > > > at org.springframework.web.servlet.DispatcherServlet.doService > > > (DispatcherServlet.java:792) > > > at > org.springframework.web.servlet.FrameworkServlet.processRequest > > > (FrameworkServlet.java:476) > > > at org.springframework.web.servlet.FrameworkServlet.doPost > > > (FrameworkServlet.java:441) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > > > (ApplicationFilterChain.java:290) > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter > > > (ApplicationFilterChain.java:206) > > > at > > > > > > org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal > > > (OpenSessionInViewFilter.java:198) > > > at org.springframework.web.filter.OncePerRequestFilter.doFilter > > > (OncePerRequestFilter.java:75) > > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > > > (ApplicationFilterChain.java:235) > > > at org.apache.catalina.core.ApplicationFilterChain.doFilter > > > (ApplicationFilterChain.java:206) > > > at org.apache.catalina.core.StandardWrapperValve.invoke > > > (StandardWrapperValve.java:233) > > > at org.apache.catalina.core.StandardContextValve.invoke > > > (StandardContextValve.java:175) > > > at org.apache.catalina.core.StandardHostValve.invoke > > > (StandardHostValve.java:128) > > > at org.apache.catalina.valves.ErrorReportValve.invoke > > > (ErrorReportValve.java:102) > > > at org.apache.catalina.core.StandardEngineValve.invoke > > > (StandardEngineValve.java:109) > > > at org.apache.catalina.connector.CoyoteAdapter.service > > > (CoyoteAdapter.java:286) > > > at org.apache.coyote.http11.Http11Processor.process > > > (Http11Processor.java:844) > > > at org.apache.coyote.http11.Http11Protocol > > > $Http11ConnectionHandler.process(Http11Protocol.java:583) > > > at > > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: > > > 447) > > > at java.lang.Thread.run(Thread.java:619) > > > Caused by: com.google.gwt.user.client.rpc.SerializationException: > > > java.lang.reflect.InvocationTargetException > > > at > > > > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer > > > (ServerSerializationStreamWriter.java:424) > > > at > > > > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl > > > (ServerSerializationStreamWriter.java:384) > > > at > > > > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize > > > (ServerSerializationStreamWriter.java:333) > > > at > > > > > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject > > > (AbstractSerializationStreamWriter.java:81) > > > at > > > > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue > > > (ServerSerializationStreamWriter.java:259) > > > at > com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:574) > > > at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess > > > (RPC.java:442) > > > at > > > > org.gwtwidgets.server.spring.GWTRPCServiceExporter.invokeMethodOnService > > > (GWTRPCServiceExporter.java:158) > > > at > org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall > > > (GWTRPCServiceExporter.java:316) > > > ... 25 more > > > Caused by: java.lang.reflect.InvocationTargetException > > > 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 > > > > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer > > > (ServerSerializationStreamWriter.java:409) > > > ... 33 more > > > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type > > > 'my.mimos.pams.gwt.dto.NodeDataChartDTO' was not included in the set > > > of types which can be serialized by this SerializationPolicy. For > > > security purposes, this type will not be serialized. > > > at > > > > > > com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize > > > (StandardSerializationPolicy.java:79) > > > at > > > > > > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize > > > (ServerSerializationStreamWriter.java:331) > > > at > > > > > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject > > > (AbstractSerializationStreamWriter.java:81) > > > at > > > > > > com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize > > > (ArrayList_CustomFieldSerializer.java:46) > > > ... 38 more- Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" 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/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
