Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Getting null pointer exception while updating GWT grid record

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Posts: 11445
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic