File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes Getting null pointer exception while updating GWT grid record Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Getting null pointer exception while updating GWT grid record" Watch "Getting null pointer exception while updating GWT grid record" New topic

Getting null pointer exception while updating GWT grid record

shri bathe

Joined: Sep 24, 2010
Posts: 1
Getting null pointer exception while updating GWT grid record, here I am passing two parameters from a Index.html. when I hardcode useriD and password in my then it works fine but when I pass the same from a index.html page I get following Exception.

Starting Jetty on port 8888
[WARN] Exception while dispatching incoming RPC call
at org.gwtwidgets.server.spring.GWTRPCServiceExporter.encodeResponseForFailure(
at org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleIncompatibleRemoteServiceException(
at org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(
at org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest(
at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(
at org.springframework.web.servlet.DispatcherServlet.doDispatch(
at org.springframework.web.servlet.DispatcherServlet.doService(
at org.springframework.web.servlet.FrameworkServlet.processRequest(
at org.springframework.web.servlet.FrameworkServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.mortbay.jetty.servlet.ServletHolder.handle(
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
at org.mortbay.jetty.servlet.ServletHandler.handle(
at org.mortbay.jetty.servlet.SessionHandler.handle(
at org.mortbay.jetty.handler.ContextHandler.handle(
at org.mortbay.jetty.webapp.WebAppContext.handle(
at org.mortbay.jetty.handler.HandlerWrapper.handle(
at org.mortbay.jetty.handler.RequestLogHandler.handle(
at org.mortbay.jetty.handler.HandlerWrapper.handle(
at org.mortbay.jetty.Server.handle(
at org.mortbay.jetty.HttpConnection.handleRequest(
at org.mortbay.jetty.HttpConnection$RequestHandler.content(
at org.mortbay.jetty.HttpParser.parseNext(
at org.mortbay.jetty.HttpParser.parseAvailable(
at org.mortbay.jetty.HttpConnection.handle(
at org.mortbay.thread.QueuedThreadPool$

Please suggest me how to resolve this exception

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10767

Welcome to the Ranch.

If I understand your question correctly
1) Your html file has two parameters called userID and password
2) You are trying to access the values for these parameters from your GWT code.
3) While attempting to do so, you end up with a NullPointerException
Is this correct?

If yes, please post the code where you are trying to access the values.
If no, please rephrase your question.

Also, please do take out time to go through

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Getting null pointer exception while updating GWT grid record
It's not a secret anymore!