java.lang.NullPointerException

Pentaho BI Platform Tracking | Chris Deptula | 2 months ago
  1. 0

    When a developer tries to use the executeJob REST endpoint in Carte and puts in the path to a transformation, the executeJob REST endpoint returns a successful Job started messages. {noformat} <webresult> <result>OK</result> <message>Job started</message> <id>6d4a0611-0d53-4591-a1c8-cbbebfffb028</id> </webresult> {noformat} Because I tried to call a transformation, I would have expected this to fail, similarly to when you pass in a file path that does not exist, or a file that is not a transformation or job. However, when you go to the Carte Status page you get a NullPointerException. {noformat} java.lang.NullPointerException at java.net.URLEncoder.encode(Unknown Source) at org.pentaho.di.www.GetStatusServlet.doGet(GetStatusServlet.java:306) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:522) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Unknown Source) {noformat} It would be better if the endpoint detected that you were trying to run a file that is not a job, and fail at the beginning rather than appearing to work and returning a null pointer exception when you look at the status.

    Pentaho BI Platform Tracking | 2 months ago | Chris Deptula
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    NullPointer when using waitForPopUp

    Google Groups | 7 years ago | Rune
    java.lang.NullPointerException
  4. 0

    Google AppEngine app deploy error: "Unable to upload app: Unknown"

    Google Groups | 7 years ago | gsw
    com.google.appengine.tools.admin.AdminException: Unable to upload app: null

    6 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.net.URLEncoder.encode()
    2. Java RT
      URLEncoder.encode
      1. java.net.URLEncoder.encode(Unknown Source)
      1 frame
    3. org.pentaho.di
      GetStatusServlet.doGet
      1. org.pentaho.di.www.GetStatusServlet.doGet(GetStatusServlet.java:306)
      1 frame
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
      2 frames
    5. Jetty
      BlockingHttpConnection.handle
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503)
      3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
      4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      5. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
      6. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      7. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      8. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      9. org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
      10. org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
      11. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:522)
      12. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      13. org.eclipse.jetty.server.Server.handle(Server.java:370)
      14. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
      15. org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
      16. org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
      17. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
      18. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
      19. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      20. org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
      20 frames
    6. GWT dev
      SocketConnector$ConnectorEndPoint.run
      1. org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
      1 frame
    7. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame