George,
Thanks a lot for your reply.
Actually I got the latest code from branch yesterday and did a build
and the errors with the bad version were resolved. But still I am
seeing the same Null Pointer exception.If I want to backport the fix
to 0.1.5.a, how can I know which are the files I may need to back
port? I will try the -noserver option on the GWT Hosted Mode and let
you know if that works. And in the hosted mode we connect to the
external server for all the RPCs. I will also look into your
recommendation of exploring GWT.isScript.
On Oct 6, 7:30 am, George Georgovassilis <
g.georgovassi...@gmail.com>
wrote:
> Hello Kiran,
>
> Yeah, I am sorry about that NullPointerException, we fixed that in 1.0.
> There are a couple of things you can do:
>
> 1. Check out the 1.0 branch again and rebuild the gwt-sl.jar file. I fixed
> the problem where it would build only 1.6 version files, it should create
> 1.5 version classfiles now.
>
> 2. Alternatively, you can backport the fix in 1.0 to the 0.1.5a version you
> are using
>
> 3. The reason for the NPE is that GWT wants to log an error message,
> presumably that it cannot find the serialization policy - so you would get
> an error anyway. Make sure that:
>
> a. you are using the -noserver option of the hosted mode browser
> b. you have refreshed after a build the project workspace and restarted the
> hosted mode browser. Sometimes it caches serialization policy files
> c. also the service URLs change sometimes between hosted and web mode, make
> sure to distinguish in your client code between these two (see GWT.isScript)
>
> On Tue, Oct 6, 2009 at 7:45 AM, gwt_newbie
> <
kiran_katragadda2...@yahoo.com>wrote:
>
>
>
>
>
> > I tried upgrading to GWT 1.7 and got the below exception when using
> > gwt-sl-0.1.5a.jar. Have gone through some of the posts here and
> > checked out the code from 1.0 branch, and created the gwt-sl-1.0.jar
> > using your build files, as the published 1.0 version was giving bad
> > version numbers with jdk 1.5 .I thought that would slove my issue but
> > surprisingly still I am getting the same exception. The strange thing
> > is that it works the regular way when I access the App through browser
> > but throws the exception only in the Hosted Mode (Both with the old
> > and new jars) .
> > We are using old version of Spring 1.2.8. Do you think its because of
> > the old version of Spring we are using?
>
> > Any help would be greatly appreciated. Thanks a lot
>
> > java.lang.NullPointerException
> > at javax.servlet.GenericServlet.getServletName
> > (GenericServlet.java:321)
> > at javax.servlet.GenericServlet.log(GenericServlet.java:276)
> > at
>
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy
> > (RemoteServiceServlet.java:219)
> > at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy
> > (RemoteServiceServlet.java:117)
> > at
>
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead
> > (ServerSerializationStreamReader.java:429)
> > at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:
> > 234)
> > 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
> > org.gwtwidgets.server.spring.GWTSpringController.handleRequest
> > (GWTSpringController.java:85)
> > at
> > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle
> > (SimpleControllerHandlerAdapter.java:44)
> > at org.springframework.web.servlet.DispatcherServlet.doDispatch
> > (DispatcherServlet.java:723)
> > at org.springframework.web.servlet.DispatcherServlet.doService
> > (DispatcherServlet.java:663)
> > at
> > org.springframework.web.servlet.FrameworkServlet.processRequest
> > (FrameworkServlet.java:394)
> > at org.springframework.web.servlet.FrameworkServlet.doPost
> > (FrameworkServlet.java:358) ..........- Hide quoted text -
>
> - Show quoted text -