java.lang.NullPointerException

Pentaho BI Platform Tracking | Benjamin Kallmann | 9 years ago
  1. 0

    from the forums, see also: http://forums.pentaho.org/showthread.php?t=56462 I designed a job that uses the http jobentry to check whether a webserver is running or not. I used http://localhost:8080 as URL and ${KETTLE_HOME}\zeb\dummy.txt as target file. After the http jobentry there are two conditional hops, one if the entry fails and one for success. Here's what I encountered during testing: If the server is not running the "false" hop will be executed correctly. But if the server is up and running the http request is executed and the result saved to the dummy file, but after that there's an exception like the following: 2007/09/06 11:56:34 - Chef - Starting job... 2007/09/06 11:56:34 - LocalVariables - ---> Create new KettleVariables for thread [Check for JBoss (Check for JBoss (Thread-2))] for parent thread [main], same namespace? [false] 2007/09/06 11:56:34 - zebbasel2 - New database connection defined 2007/09/06 11:56:34 - zebbasel2 - Connected to database. 2007/09/06 11:56:34 - zebbasel2 - launch DDL statement: 2007/09/06 11:56:34 - zebbasel2 - ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,' 2007/09/06 11:56:34 - zebbasel2 - 1 statement executed 2007/09/06 11:56:34 - zebbasel2 - Executed connect time SQL statements: 2007/09/06 11:56:34 - zebbasel2 - ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,' ; 2007/09/06 11:56:34 - zebbasel2 - Connection to database closed! 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - exec(0, 0, Start.0) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - Sleeping: 0 minutes 2007/09/06 11:56:34 - Check for JBoss - Starting entry [Check if JBoss server is running] 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - exec(1, 0, Check if JBoss server is running.0) 2007/09/06 11:56:34 - Check if JBoss server is running - Start of HTTP job entry. 2007/09/06 11:56:34 - Check if JBoss server is running - Connecting to URL: http://localhost:8080 2007/09/06 11:56:34 - Check if JBoss server is running - Start reading reply from webserver. 2007/09/06 11:56:34 - Check if JBoss server is running - Resource type: "text/html", last modified on: "Mon May 02 20:26:14 CEST 2005". 2007/09/06 11:56:34 - Check if JBoss server is running - Finished writing 1437 bytes to result file [C:\Programme\zeb\kettle\zeb\dummy.txt] 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : java.lang.NullPointerException 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:324) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:360) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:231) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.run(Job.java:202) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : A serious error occurred during job execution! 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : Unexpected error occurred while launching entry [Check if JBoss server is running.0] 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.run (Job.java:202) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:231) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:360) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:324) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : be.ibridge.kettle.core.exception.KettleException: 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : Unexpected error occurred while launching entry [Check if JBoss server is running.0] 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.run (Job.java:202) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:231) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:360) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:324) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:365) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:231) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.run(Job.java:202) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : Caused by: java.lang.NullPointerException 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:324) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:360) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : ... 2 more 2007/09/06 11:56:34 - Chef - Job has ended. As a result of the exception the job terminates without executing neither the "false" hop nor the "true" hop. Result for the job is "success", though the job terminated somewhere in the middle... If I replace the URL with something like http://www.google.com there's no exeception and the "true" hop is executed correctly as expected. Does anybody has an idea where this exception may come from and why it's not caught correctly? If there's an exception (whether that one makes sense or not) then at least the "false" hop should be executed.

    Pentaho BI Platform Tracking | 9 years ago | Benjamin Kallmann
    java.lang.NullPointerException
  2. 0

    from the forums, see also: http://forums.pentaho.org/showthread.php?t=56462 I designed a job that uses the http jobentry to check whether a webserver is running or not. I used http://localhost:8080 as URL and ${KETTLE_HOME}\zeb\dummy.txt as target file. After the http jobentry there are two conditional hops, one if the entry fails and one for success. Here's what I encountered during testing: If the server is not running the "false" hop will be executed correctly. But if the server is up and running the http request is executed and the result saved to the dummy file, but after that there's an exception like the following: 2007/09/06 11:56:34 - Chef - Starting job... 2007/09/06 11:56:34 - LocalVariables - ---> Create new KettleVariables for thread [Check for JBoss (Check for JBoss (Thread-2))] for parent thread [main], same namespace? [false] 2007/09/06 11:56:34 - zebbasel2 - New database connection defined 2007/09/06 11:56:34 - zebbasel2 - Connected to database. 2007/09/06 11:56:34 - zebbasel2 - launch DDL statement: 2007/09/06 11:56:34 - zebbasel2 - ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,' 2007/09/06 11:56:34 - zebbasel2 - 1 statement executed 2007/09/06 11:56:34 - zebbasel2 - Executed connect time SQL statements: 2007/09/06 11:56:34 - zebbasel2 - ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,' ; 2007/09/06 11:56:34 - zebbasel2 - Connection to database closed! 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - exec(0, 0, Start.0) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - Sleeping: 0 minutes 2007/09/06 11:56:34 - Check for JBoss - Starting entry [Check if JBoss server is running] 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - exec(1, 0, Check if JBoss server is running.0) 2007/09/06 11:56:34 - Check if JBoss server is running - Start of HTTP job entry. 2007/09/06 11:56:34 - Check if JBoss server is running - Connecting to URL: http://localhost:8080 2007/09/06 11:56:34 - Check if JBoss server is running - Start reading reply from webserver. 2007/09/06 11:56:34 - Check if JBoss server is running - Resource type: "text/html", last modified on: "Mon May 02 20:26:14 CEST 2005". 2007/09/06 11:56:34 - Check if JBoss server is running - Finished writing 1437 bytes to result file [C:\Programme\zeb\kettle\zeb\dummy.txt] 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : java.lang.NullPointerException 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:324) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:360) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:231) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.run(Job.java:202) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : A serious error occurred during job execution! 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : Unexpected error occurred while launching entry [Check if JBoss server is running.0] 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.run (Job.java:202) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:231) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:360) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:324) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : be.ibridge.kettle.core.exception.KettleException: 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : Unexpected error occurred while launching entry [Check if JBoss server is running.0] 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.run (Job.java:202) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:231) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:360) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute (Job.java:324) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:365) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:231) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.run(Job.java:202) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : Caused by: java.lang.NullPointerException 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:324) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : at be.ibridge.kettle.job.Job.execute(Job.java:360) 2007/09/06 11:56:34 - Thread[Check for JBoss (Check for JBoss (Thread-2)),5,main] - ERROR (version 2.5.1, build 1 from 2007/09/06 11:56:15) : ... 2 more 2007/09/06 11:56:34 - Chef - Job has ended. As a result of the exception the job terminates without executing neither the "false" hop nor the "true" hop. Result for the job is "success", though the job terminated somewhere in the middle... If I replace the URL with something like http://www.google.com there's no exeception and the "true" hop is executed correctly as expected. Does anybody has an idea where this exception may come from and why it's not caught correctly? If there's an exception (whether that one makes sense or not) then at least the "false" hop should be executed.

    Pentaho BI Platform Tracking | 9 years ago | Benjamin Kallmann
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 be.ibridge.kettle.job.Job.execute()
    2. be.ibridge.kettle
      Job.run
      1. be.ibridge.kettle.job.Job.execute(Job.java:324)
      2. be.ibridge.kettle.job.Job.execute(Job.java:360)
      3. be.ibridge.kettle.job.Job.execute(Job.java:231)
      4. be.ibridge.kettle.job.Job.run(Job.java:202)
      4 frames