gwt-sl-0.1.5b and GWT 1.6

43 views
Skip to first unread message

Alejandro Garin

unread,
Mar 27, 2009, 1:00:04 PM3/27/09
to gwt-sl
Hi,

I want to ask if gwt-sl-0.1.5b is compatible with gwt 1.6. I'm using
it now but I'm having some NPE like this:

java.lang.RuntimeException: java.lang.NullPointerException
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: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.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:263)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Unknown Source)

Thanks.

George Georgovassilis

unread,
Mar 27, 2009, 4:53:14 PM3/27/09
to gwt...@googlegroups.com
Hello Alejandro

There is probably more in the stacktrace. Have a look for the "caused
by" part and post it please.
Thanks!
G.

Alejandro D. Garin

unread,
Mar 27, 2009, 5:17:14 PM3/27/09
to gwt...@googlegroups.com
Hi George,

I will try to reproduce the NPE again and send you the complete stacktrace, this seems to happend only in Hosted mode (i'm still using -noserver) .

Thanks.

tempo

unread,
Apr 23, 2009, 2:39:29 AM4/23/09
to gwt-sl
I think I'm getting the same error by using gwt-sl-0.1.5b and gwt
1.6.4:

java.lang.RuntimeException: java.lang.NullPointerException
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:807)
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:
637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter
(FilterDispatcher.java:413)
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:191)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:568)
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.Http11AprProcessor.process
(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol
$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run
(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at javax.servlet.GenericServlet.getServletName
(GenericServlet.java:322)
at javax.servlet.GenericServlet.log(GenericServlet.java:277)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy
(RemoteServiceServlet.java:247)
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
org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall
(GWTRPCServiceExporter.java:292)
... 25 more


On Mar 28, 4:53 am, George Georgovassilis <g.georgovassi...@gmail.com>
wrote:

George Georgovassilis

unread,
Apr 23, 2009, 3:32:17 AM4/23/09
to gwt...@googlegroups.com
Is that during a redeployment? What Tomcat version do you use?

yawner

unread,
May 11, 2009, 5:31:47 AM5/11/09
to gwt-sl
Hi

I'm having the exact same problem, has anyone found a solution?

G.

Alejandro D. Garin

unread,
May 11, 2009, 9:50:01 AM5/11/09
to gwt...@googlegroups.com
Hi,

My problem dissapeared when I have migrated to gwt embebbed jetty (in my case the exception was thrown when using -noserver with tomcat).

George Georgovassilis

unread,
May 11, 2009, 10:40:25 AM5/11/09
to gwt-sl
Hello all,

this is indeed a bug which has been reported on SF and has been fixed
in the 1.0 branch. If you'd check it out, please let me know if it
fixes the problem.

On May 11, 3:50 pm, "Alejandro D. Garin" <aga...@gmail.com> wrote:
> Hi,
>
> My problem dissapeared when I have migrated to gwt embebbed jetty (in my
> case the exception was thrown when using -noserver with tomcat).
>

grishag

unread,
May 12, 2009, 12:03:26 AM5/12/09
to gwt-sl
Hi All,

I just got this same error running on WebSphere 6.1.0.0. The funny
thing is it works on both Tomcat 6.0.18 and WebSphere 6.1.0.2. Very
strange.

On May 12, 12:40 am, George Georgovassilis

George Georgovassilis

unread,
May 12, 2009, 2:18:33 AM5/12/09
to gwt...@googlegroups.com
The reason for this exception is that the underlying servlet loses the
reference to the servlet context, usually after a re-deployment. To me
this looks like a problem with the servlet container - there is
sufficient testimony that supports the claim that it works with some
containers while the error appears with others. Has anyone tried the fix
from the 1.0 branch yet? ;-)

yawner

unread,
May 12, 2009, 4:23:26 AM5/12/09
to gwt-sl
Actually... I found out by reading
http://groups.google.com/group/gwt-sl/browse_thread/thread/3aa4c5e7729b3aed
that my problem was due to a 1.5 version of gwt-servlet being in
Tomcat's lib directory, and after I replaced it with the 1.6 version,
it is working fine again.




On 12 mai, 08:18, George Georgovassilis <g.georgovassi...@gmail.com>
wrote:

gradconnection

unread,
Jun 5, 2009, 7:39:07 AM6/5/09
to gwt-sl
Hey George, I did what you recommended and it worked perfectly.
Thanks :D

On May 12, 4:18 pm, George Georgovassilis <g.georgovassi...@gmail.com>
wrote:

Sha

unread,
Jun 24, 2009, 8:54:32 AM6/24/09
to gwt-sl
Hi Georges,

I tried the 1.0 branch (svn). It still doesn't work.
I'm still having the same stacktrace of Alejandro Garin.

I'm using gilead 1.2.2.598, spring 2.5.6, tomcat 5.5, apache 2

A strange thing is that it works by directly address tomcat url (:
8180). With an ajp proxy, the exception is raised.

I really want to use apache for performance reasons (I use its caching
functionality for static files)

Thank you in advance.

George Georgovassilis

unread,
Jun 24, 2009, 9:23:07 AM6/24/09
to gwt-sl
Hi Sha,

so you get a NullPointerException at the same place? Can you post the
stacktrace?

Sha

unread,
Jun 25, 2009, 3:58:03 AM6/25/09
to gwt-sl
Hi !

This is the stacktrace with debug logs around the request:

Thank you very much for support :-)

2009-06-25 09:45:57,860 [ajp-8009-1] DEBUG
org.springframework.web.servlet.DispatcherServlet - DispatcherServlet
with name 'dispatcher' processing request for [/dashboard/dashboard/
service/report.rpc]
2009-06-25 09:45:57,861 [ajp-8009-1] DEBUG
org.springframework.web.servlet.DispatcherServlet - Bound request
context to thread:
org.apache.catalina.connector.RequestFacade@5be5ccd4
2009-06-25 09:45:57,861 [ajp-8009-1] DEBUG
org.springframework.web.servlet.DispatcherServlet - Testing handler
map
[org.springframework.web.servlet.handler.SimpleUrlHandlerMapping@4beaa16e]
in DispatcherServlet with name 'dispatcher'
2009-06-25 09:45:57,862 [ajp-8009-1] DEBUG
org.springframework.web.servlet.handler.SimpleUrlHandlerMapping -
Mapping [/dashboard/service/report.rpc] to handler
'com.lemeur.tools.dashboard.server.DashboardServlet@5bdaaf56'
2009-06-25 09:45:57,862 [ajp-8009-1] DEBUG
org.springframework.web.servlet.DispatcherServlet - Testing handler
adapter
[org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter@d0bbe47]
2009-06-25 09:45:57,863 [ajp-8009-1] DEBUG
com.lemeur.tools.dashboard.server.DashboardServlet - Serialised RPC
request: [5|0|6|http://dashboard.lemeur.fr/dashboard/|
50EF753055FF61987B00E30F41B751A4|
com.lemeur.tools.dashboard.client.rpc.ReportService|
updateGenerationStatus|
com.lemeur.tools.dashboard.client.rpc.GenerationStatus|
com.lemeur.tools.dashboard.client.rpc.GenerationStatus/766446160|1|2|3|
4|1|5|6|0|]
2009-06-25 09:45:57,864 [ajp-8009-1] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/
dashboard] - Exception while dispatching incomingRPC call
709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:174)
at org.apache.coyote.ajp.AjpAprProcessor.process
(AjpAprProcessor.java:444)
at org.apache.coyote.ajp.AjpAprProtocol
$AjpConnectionHandler.process(AjpAprProtocol.java:472)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run
(AprEndpoint.java:1286)
at java.lang.Thread.run(Thread.java:619)
Caused by: 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:247)
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
org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall
(GWTRPCServiceExporter.java:292)
... 21 more
2009-06-25 09:45:57,865 [ajp-8009-1] DEBUG
org.springframework.web.servlet.DispatcherServlet - Null ModelAndView
returned to DispatcherServlet with name 'dispatcher': assuming
HandlerAdapter completed request handling
2009-06-25 09:45:57,865 [ajp-8009-1] DEBUG
org.springframework.web.servlet.DispatcherServlet - Cleared thread-
bound request context:
org.apache.catalina.connector.RequestFacade@5be5ccd4
2009-06-25 09:45:57,865 [ajp-8009-1] DEBUG
org.springframework.web.servlet.DispatcherServlet - Successfully
completed request
2009-06-25 09:45:57,866 [ajp-8009-1] DEBUG
org.springframework.web.context.support.XmlWebApplicationContext -
Publishing event in context
[org.springframework.web.context.support.XmlWebApplicationContext@2345c47f]:
ServletRequestHandledEvent: url=[/dashboard/dashboard/service/
report.rpc]; client=[192.168.4.90]; method=[POST]; servlet=
[dispatcher]; session=[null]; user=[null]; time=[6ms]; status=[OK]
2009-06-25 09:45:57,866 [ajp-8009-1] DEBUG
org.springframework.web.context.support.XmlWebApplicationContext -
Publishing event in context
[org.springframework.web.context.support.XmlWebApplicationContext@51d934a8]:
ServletRequestHandledEvent: url=[/dashboard/dashboard/service/
report.rpc]; client=[192.168.4.90]; method=[POST]; servlet=
[dispatcher]; session=[null]; user=[null]; time=[6ms]; status=[OK]


On 24 juin, 15:23, George Georgovassilis <g.georgovassi...@gmail.com>
wrote:

George Georgovassilis

unread,
Jun 25, 2009, 4:20:21 AM6/25/09
to gwt...@googlegroups.com
Are you _really_ sure that you're using the 1.0 branch? From the
stacktrace it looks like you are using an even older version of 0.1.5...

Sha

unread,
Jun 25, 2009, 5:34:04 AM6/25/09
to gwt-sl
Sorry but, i'm sure (I also hope it was an older version).

I'm using GileadRPCServiceExporter.
I made the jar file with your ant task from the source :
https://gwt-widget.svn.sourceforge.net/svnroot/gwt-widget/server/branches/1.0/

Is that the good location ?

Thanks

On 25 juin, 10:20, George Georgovassilis <g.georgovassi...@gmail.com>
wrote:

Sha

unread,
Jun 30, 2009, 11:13:49 AM6/30/09
to gwt-sl
Ok, I solved my problem by extending GileadRPCServiceExporter and
overriding doGetSerializationPolicy
I detect the "apache front-end" URL in moduleBaseURL and replace it
with another (added "dashboard/").

It's ugly but it works :-)

Yeah :) It was not easy !

Thanks for your help !

On 25 juin, 11:34, Sha <tanguy.lem...@gmail.com> wrote:
> Sorry but, i'm sure (I also hope it was an older version).
>
> I'm using GileadRPCServiceExporter.
> I made the jar file with your ant task from the source :https://gwt-widget.svn.sourceforge.net/svnroot/gwt-widget/server/bran...

George Georgovassilis

unread,
Jun 30, 2009, 11:31:08 AM6/30/09
to gwt-sl
Hi Sha

I've not had any dev experience with the SL and an Apache frontend. To
summarise, you found that the problem was that due to the Apache
frontend your application was deployed to a different URL than the one
generated during the serialisation?

This looks more like a configuration issue of your Apache installation
- it normally should translate requests into what the webapplication
behind it expects.

Sha

unread,
Jul 9, 2009, 6:05:56 AM7/9/09
to gwt-sl
Hi George,

Sorry I haven't seen your message before.

The service is found by the dispatcher so it is not a problem of
address translation in the Apache frontend. The URL is written in the
post data, I think this is the problem.

But I don't think this is a gwt-sl issue, because I can't imagine how
to code a general fix.
The URL may change completely depending on websites.

GWT's devs didn't find any solution for that problem. We just have to
know to do that transformation.

Perhaps a more explicit error message in a next release ? :p

Thanks !

On 30 juin, 17:31, George Georgovassilis <g.georgovassi...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages