Announcement

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

    Batch DataSource generator giving NullPointer

    Hi,

    I'm attempting to generate a batch data source from a standard java bean. In fact I'm using the SupplyItem from the showcase (here renamed to Items)

    When I call:
    Code:
    http://localhost:8888/testgwt/tools/batchDSGenerator.jsp?className=com.linx.server.Items
    on my eclipse console I get a NullPointerException error:
    Code:
    === 2010-09-07 16:40:52,041 [l0-3] INFO  Compression - /testgwt/tools/adminConsoleOperations.jsp: 405 -> 252 bytes
    === 2010-09-07 16:43:51,483 [l0-3] INFO  RequestContext - URL: '/testgwt/tools/batchDSGenerator.jsp', User-Agent: 'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0E)': Moz (Gecko) with Accept-Encoding header
    [WARN] /testgwt/tools/batchDSGenerator.jsp
    java.lang.NullPointerException
    	at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:335)
    	at org.apache.jsp.testgwt.tools.batchDSGenerator_jsp._jspService(batchDSGenerator_jsp.java:326)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    	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:259)
    	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.headerComplete(HttpConnection.java:829)
    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
    	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)
    Any suggestions?

    Thanks
    Jonny

    #2
    The Batch DataSource Generator writes output DataSources to the "war/ds" directory configured in server.properties. This error isn't coming from SmartGWT code and actually looks like some kind of Jetty bug, but the inability to write to that directory might explain it.

    Comment


      #3
      SmartGWT EE 2.5 still gives the same error.

      Here is the code to launch Visual Builder

      Code:
              KeyIdentifier vbKey = new KeyIdentifier();
              vbKey.setAltKey(true);
              vbKey.setKeyName("P");
              Page.registerKey(vbKey, new KeyCallback() {
                  public void execute(String keyName) {
                  	com.smartgwtee.tools.client.SCEE.openVisualBuilder();
                  }
              });
      The module configuration

      Code:
      <module rename-to="builtinds">
          <inherits name='com.google.gwt.user.User'/>
          <inherits name="com.smartgwt.tools.SmartGwtTools"/>
          <inherits name="com.smartgwtee.SmartGwtEE"/>
          <inherits name="com.smartgwtee.tools.Tools"/>
          <entry-point class='com.smartgwt.sample.client.BuiltInDS'/>
      </module>

      Comment

      Working...
      X