Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid.exportData() gets NullPointerException

    After updating my project with the latest SmartGWT.jar (Nov, 9 nightly build) I am getting an exception when trying to export grid data as csv. I haven't changed my code that invokes the exportData() method and it is just a call to exportData() with no other parameters or export related properties being set.
    Code:
    com.isomorphic.servlet.IDACall top-level exception
    java.lang.NullPointerException
    	at com.isomorphic.rpc.RPCManager.completeResponse(RPCManager.java:740)
    	at com.isomorphic.rpc.RPCManager.send(RPCManager.java:497)
    	at com.isomorphic.rpc.RPCManager.sendFailure(RPCManager.java:580)
    	at com.isomorphic.rpc.RPCManager.sendFailure(RPCManager.java:601)
    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:112)
    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:54)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
    	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:235)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at org.mortbay.jetty.Server.handle(Server.java:324)
    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

    #2
    This stack is not possible with the code as it stood on Nov 9th, but it does match a problem fixed a couple of months ago. Check over your environment to be sure you are not using stale files - perhaps a duplicate classpath entry or similar problem.

    Comment


      #3
      Do I need both smartgwt.jar and smartgwtee.jar? That is probably what I've got wrong. If I remove smartgwt.jar where can I find the latest version of smartgwtee.jar?

      Comment


        #4
        You need to latest server jars. smartgwt.jar and smartgwtee.jar are client (GWT) side jars and do not need to be deployed to the server.

        Comment


          #5
          Where do I get the latest server jars?

          Comment


            #6
            Definitively fixed in smartgwt ee 1.2.2. Thanks!

            I have to add my kudos to the many others in these forums. I continue to be amazed by your exceptional software AND how responsive you are to questions asked in these forums. Thank you!

            Comment


              #7
              1.2.2?

              Originally posted by jay.l.fisher
              Definitively fixed in smartgwt ee 1.2.2. Thanks!

              I have to add my kudos to the many others in these forums. I continue to be amazed by your exceptional software AND how responsive you are to questions asked in these forums. Thank you!
              When I follow the download link for SmartGWT EE I get a 1.2.1 version. Where can I get 1.2.2? This is where I am looking:

              http://www.smartclient.com/smartgwt/index.jsp

              Comment

              Working...
              X