I looked into this more, the shell creates the rpc policy files on the
fly when GWT.create() is called, so, first problem is they aren't
there until they are created on the fly.  That is FINE for the
GWTShellServlet, but GWT-SL replaces the GWTShellServlet with some
Spring config stuff.  Once you opt out of the GWTShellServlet, you are
pretty much subverting that.

That's why I don't see the issue, I am using standard RPC, not GWT-SL/
Spring.

There have been a few questions about this in general on the GWT-SL
list.  This is not a GWT-Maven issue, it's a GWT-SL and general Spring
with GWT issue, IMO.  Now, if you ask those guys they are probably
just going to say don't use the shell, use noserver, which is
unfortunate (noserver has a few issues, not the least of which are
that it doesn't support GWTTestCase tests at all), but probably what
most people are doing when they want to use Spring like that.

Oh the joys of Spring ;).

On Sep 15, 8:09 am, Charlie Collins <[EMAIL PROTECTED]> wrote:
> I did pass a serializable bean using RPC, the simpledatasample is what
> I am using to investigate, try to reproduce, this 
> issue:http://gwt-maven.googlecode.com/svn/trunk/maven-googlewebtoolkit2-plu....
> It passes the java.io.Serializable declared "Entry" element (and a
> List<Entry>) around via RPC.
>
> I did not try to use Spring or Hb4gwt, no, and I don't plan to, but
> that shouldn't matter, RPC should be RPC no matter how it's wired (at
> least I don't think it should).
>
> I will re-open the issue though, and look for more definitive answers
> (exactly if the policy file is needed in the shell or not, and if so
> get it resolved, etc).
>
> On Sep 14, 3:35 pm, Holger <[EMAIL PROTECTED]> wrote:
>
> > Charlie,
>
> > did you try the situation I described, e.g. pass serializable beans
> > as parameter or return value of a spring configured service exported
> > via gwt-sl (HB4GWTRPCServiceExporter in particular)?
>
> > I receive the following exception in the gwt shell:
>
> > [INFO] StandardContext[]ERROR: The serialization policy file '/
> > com.google.gwt.sample.stockwatcher.StockWatcher/
> > 21D750EA65B9E586B24F4D6634D3C366.gwt.rpc' was not found; did you
> > forget to include it in this deployment?
> > [INFO] StandardContext[]WARNING: Failed to get the SerializationPolicy
> > '21D750EA65B9E586B24F4D6634D3C366' for module 'http://localhost:8888/
> > com.google.gwt.sample.stockwatcher.StockWatcher/'; a legacy, 1.3.3
> > compatible, serialization policy will be used.  You may experience
> > SerializationExceptions as a result.
> > [WARN] StandardContext[]Exception while dispatching incoming RPC call
> > java.lang.RuntimeException:
> > com.google.gwt.user.client.rpc.SerializationException: Type
> > 'com.google.gwt.sample.stockwatcher.domain.StockMarket' 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.
> >         at
> > org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleExporterProcessingException(GWTRPCServiceExporter.java:
> > 344)
> >         at
> > org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(GWTRPCServiceExporter.java:
> > 313)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
> > 86)
> >         at
> > org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest(GWTRPCServiceExporter.java:
> > 363)
> >         at
> > org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:
> > 49)
> >         at
> > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:
> > 875)
> >         at
> > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:
> > 809)
> >         at
> > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:
> > 571)
> >         at
> > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:
> > 511)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >         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(Thread.java:619)
> > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> > 'com.google.gwt.sample.stockwatcher.domain.StockMarket' 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.
> >         at
> > com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateSerialize(LegacySerializationPolicy.java:
> > 140)
> >         at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
> > 581)
> >         at
> > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
> > 129)
> >         at 
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> > $ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
> >         at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
> > 520)
> >         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573)
> >         at
> > com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:
> > 441)
> >         at
> > org.gwtwidgets.server.spring.hb4gwt.HB4GWTRPCServiceExporter.invokeMethodOnService(HB4GWTRPCServiceExporter.java:
> > 63)
> >         at
> > org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(GWTRPCServiceExporter.java:
> > 298)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
> > 86)
> >         at
> > org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest(GWTRPCServiceExporter.java:
> > 363)
> >         at
> > org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:
> > 49)
> >         at
> > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:
> > 875)
> >         at
> > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:
> > 809)
> >         at
> > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:
> > 571)
> >         at
> > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:
> > 511)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >         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
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"gwt-maven" 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-maven?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to