java.lang.NullPointerException

JIRA | Kevin Normoyle | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I think I'm doing this right test is cd testdir_single_jvm python notest_speedrf_grid.pyv "/2/GridSearchProgress.json?job_key=%240301c0a8002232d4ffffffff%24_b5ec1bf9835f9e71f47263646764d19&destination_key=GridSearch_a142f3ce5d33904f2d78276ad7234cdc" The grid is "1,2,3" for ntrees. This may work okay in the browser, but I get -08-21 02:28:18.658341] rjson error in poll_url: Got exception 'class java.lang.NullPointerException', with msg 'null' [2014-08-21 02:28:18.660615] java.lang.NullPointerException [2014-08-21 02:28:18.660615] at water.Job$ColumnsResJob.init(Job.java:731) [2014-08-21 02:28:18.660615] at water.Job$ModelJob.init(Job.java:752) [2014-08-21 02:28:18.660615] at water.Job$ValidatedJob.init(Job.java:908) [2014-08-21 02:28:18.660615] at hex.singlenoderf.SpeeDRF.init(SpeeDRF.java:168) [2014-08-21 02:28:18.660615] at water.Job.fork(Job.java:327) [2014-08-21 02:28:18.660615] at hex.GridSearch.execImpl(GridSearch.java:31) [2014-08-21 02:28:18.660615] at water.Func.exec(Func.java:42) [2014-08-21 02:28:18.660615] at water.Job$3.compute2(Job.java:333) [2014-08-21 02:28:18.660615] at water.H2O$H2OCountedCompleter.compute(H2O.java:634) [2014-08-21 02:28:18.660615] at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) [2014-08-21 02:28:18.660615] at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) [2014-08-21 02:28:18.660615] at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) [2014-08-21 02:28:18.660615] at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) [2014-08-21 02:28:18.660615] at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) commands.log says I'm doing 2014-08-21 02:28:15.644228 -- Start http://192.168.0.34:54321/2/SpeeDRF.json?classification=1&ntrees=1,2,3&select_stat_type=ENTROPY&mtries=-1.0&sampling_strategy=RANDOM&source=poker1001.hex&max_depth=10&importance=0&oobee=0&nbins=1024.0&seed=-1.0&sample_rate=0.67 2014-08-21 02:28:18.654979 -- Start http://192.168.0.34:54321/2/GridSearchProgress.json?job_key=$0301c0a8002232d4ffffffff$_b5ec1bf9835f9e71f47263646764d19&destination_key=GridSearch_a142f3ce5d33904f2d78276ad7234cdc I created the last one from the job_key and the destination_key. Seems to match the redirect_url from the SpeeDrf.json..so should be legal?

    JIRA | 3 years ago | Kevin Normoyle
    java.lang.NullPointerException
  2. 0

    I think I'm doing this right test is cd testdir_single_jvm python notest_speedrf_grid.pyv "/2/GridSearchProgress.json?job_key=%240301c0a8002232d4ffffffff%24_b5ec1bf9835f9e71f47263646764d19&destination_key=GridSearch_a142f3ce5d33904f2d78276ad7234cdc" The grid is "1,2,3" for ntrees. This may work okay in the browser, but I get -08-21 02:28:18.658341] rjson error in poll_url: Got exception 'class java.lang.NullPointerException', with msg 'null' [2014-08-21 02:28:18.660615] java.lang.NullPointerException [2014-08-21 02:28:18.660615] at water.Job$ColumnsResJob.init(Job.java:731) [2014-08-21 02:28:18.660615] at water.Job$ModelJob.init(Job.java:752) [2014-08-21 02:28:18.660615] at water.Job$ValidatedJob.init(Job.java:908) [2014-08-21 02:28:18.660615] at hex.singlenoderf.SpeeDRF.init(SpeeDRF.java:168) [2014-08-21 02:28:18.660615] at water.Job.fork(Job.java:327) [2014-08-21 02:28:18.660615] at hex.GridSearch.execImpl(GridSearch.java:31) [2014-08-21 02:28:18.660615] at water.Func.exec(Func.java:42) [2014-08-21 02:28:18.660615] at water.Job$3.compute2(Job.java:333) [2014-08-21 02:28:18.660615] at water.H2O$H2OCountedCompleter.compute(H2O.java:634) [2014-08-21 02:28:18.660615] at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) [2014-08-21 02:28:18.660615] at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) [2014-08-21 02:28:18.660615] at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) [2014-08-21 02:28:18.660615] at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) [2014-08-21 02:28:18.660615] at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) commands.log says I'm doing 2014-08-21 02:28:15.644228 -- Start http://192.168.0.34:54321/2/SpeeDRF.json?classification=1&ntrees=1,2,3&select_stat_type=ENTROPY&mtries=-1.0&sampling_strategy=RANDOM&source=poker1001.hex&max_depth=10&importance=0&oobee=0&nbins=1024.0&seed=-1.0&sample_rate=0.67 2014-08-21 02:28:18.654979 -- Start http://192.168.0.34:54321/2/GridSearchProgress.json?job_key=$0301c0a8002232d4ffffffff$_b5ec1bf9835f9e71f47263646764d19&destination_key=GridSearch_a142f3ce5d33904f2d78276ad7234cdc I created the last one from the job_key and the destination_key. Seems to match the redirect_url from the SpeeDrf.json..so should be legal?

    JIRA | 3 years ago | Kevin Normoyle
    java.lang.NullPointerException
  3. 0

    test is cd testdir_single_jvm python notest_speedrf_grid.py I use 1,2 to ask for a grid search in speedrf normally, if the 'response' param is missing (it's required in speedrf...no default, like other algos), I get a missing argument exception. however, here with a grid'ed request, I get a stack trace. I suspect it's a general problem with all grid algos..i.e. if you have a parameter error ..how does the response handle it? the grid job didn't get created, so if I probe the GridProgess, I shouldn't get a stack trace I'm probing Grid Progress because it redirected me there (and I know that's the next thing I should do 12:27:37.944 FJ-0-15 ERRR WATER: + java.lang.NullPointerException + at water.Job$ColumnsResJob.init(Job.java:731) + at water.Job$ModelJob.init(Job.java:752) + at water.Job$ValidatedJob.init(Job.java:908) + at hex.singlenoderf.SpeeDRF.init(SpeeDRF.java:167) + at water.Job.fork(Job.java:327) + at hex.GridSearch.execImpl(GridSearch.java:31) + at water.Func.exec(Func.java:42) + at water.Job$3.compute2(Job.java:333) + at water.H2O$H2OCountedCompleter.compute(H2O.java:634) + at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) + at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) + at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) + at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) + at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) here's the commands.log 2014-08-21 12:27:37.936015 -- Start http://192.168.1.41:54321/2/SpeeDRF.json?classification=1&ntrees=1,2&select_stat_type=ENTROPY&mtries=-1.0&sampling_strategy=RANDOM&source=poker100.hex&max_depth=10&importance=0&oobee=0&nbins=1024.0&seed=-1.0&sample_rate=0.67 2014-08-21 12:27:40.949043 -- Start http://192.168.1.41:54321/2/GridSearchProgress.json?job_key=$0301c0a8012932d4ffffffff$_9e0d133ea09ea107826b8ab2c6d4404b&destination_key=GridSearch_b227e8bc84881a7aab49878f2a2243d3 2014-08-21 12:27:40.977309 -- Start http://192.168.1.41:54321/Shutdown.json

    JIRA | 3 years ago | Kevin Normoyle
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    this notest has been sitting around for a while cd testdir_single_jvm py notest_speedrf_grid.py looks like it's gridding ntrees=1,2 is the problem that the response= isn't specified? I thought SpeeDRF requires that to be specified, and it normally complains, but maybe with grid it doesn't? it does this #*********************** python_test_name: notest_speedrf_grid.py #*********************** 2014-10-17 12:40:18.946703 -- Start http://172.16.2.222:54321/2/PostFile.json?key=poker100 #/home/kevin/h2o/smalldata/poker/poker100 2014-10-17 12:40:19.005431 -- Start http://172.16.2.222:54321/2/Parse2.json?source_key=poker100 2014-10-17 12:40:19.178313 -- Start http://172.16.2.222:54321/2/Progress2.json?job_key=$0301ac1002de32d4ffffffff$_b49adde5ee67a623156a02ba828748ab&destination_key=poker100.hex 2014-10-17 12:40:19.182975 -- Start http://172.16.2.222:54321/2/Inspect2.json?src_key=poker100.hex 2014-10-17 12:40:19.188552 -- Start http://172.16.2.222:54321/2/SummaryPage2.json?source=poker100.hex&max_ncols=11 2014-10-17 12:40:19.225265 -- Start http://172.16.2.222:54321/2/SpeeDRF.json?classification=1&ntrees=1,2&select_stat_type=ENTROPY&mtries=-1.0&sampling_strategy=RANDOM&source=poker100.hex&max_depth=10&importance=0&oobee=0&nbins=1024.0&seed=-1.0&sample_rate=0.67 2014-10-17 12:40:22.246840 -- Start http://172.16.2.222:54321/2/GridSearchProgress.json?job_key=$0301ac1002de32d4ffffffff$_aaa449433eb4d11a55beab4cc744473e&destination_key=GridSearch_9ecb0e3ec21c7d4a3c5a1d525bbd48a3 and gets this 12:40:19.241 FJ-0-15 ERRR WATER: + java.lang.NullPointerException + at water.Job$ColumnsResJob.init(Job.java:731) + at water.Job$ModelJob.init(Job.java:752) + at water.Job$ValidatedJob.init(Job.java:908) + at hex.singlenoderf.SpeeDRF.init(SpeeDRF.java:171) + at water.Job.fork(Job.java:327) + at hex.GridSearch.execImpl(GridSearch.java:31) + at water.Func.exec(Func.java:42) + at water.Job$3.compute2(Job.java:333) + at water.H2O$H2OCountedCompleter.compute(H2O.java:647) + at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) + at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) + at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) + at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) + at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)

    JIRA | 3 years ago | Kevin Normoyle
    java.lang.NullPointerException
  6. 0

    test is cd testdir_single_jvm python notest_speedrf_grid.py I use 1,2 to ask for a grid search in speedrf normally, if the 'response' param is missing (it's required in speedrf...no default, like other algos), I get a missing argument exception. however, here with a grid'ed request, I get a stack trace. I suspect it's a general problem with all grid algos..i.e. if you have a parameter error ..how does the response handle it? the grid job didn't get created, so if I probe the GridProgess, I shouldn't get a stack trace I'm probing Grid Progress because it redirected me there (and I know that's the next thing I should do 12:27:37.944 FJ-0-15 ERRR WATER: + java.lang.NullPointerException + at water.Job$ColumnsResJob.init(Job.java:731) + at water.Job$ModelJob.init(Job.java:752) + at water.Job$ValidatedJob.init(Job.java:908) + at hex.singlenoderf.SpeeDRF.init(SpeeDRF.java:167) + at water.Job.fork(Job.java:327) + at hex.GridSearch.execImpl(GridSearch.java:31) + at water.Func.exec(Func.java:42) + at water.Job$3.compute2(Job.java:333) + at water.H2O$H2OCountedCompleter.compute(H2O.java:634) + at jsr166y.CountedCompleter.exec(CountedCompleter.java:429) + at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263) + at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974) + at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477) + at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104) here's the commands.log 2014-08-21 12:27:37.936015 -- Start http://192.168.1.41:54321/2/SpeeDRF.json?classification=1&ntrees=1,2&select_stat_type=ENTROPY&mtries=-1.0&sampling_strategy=RANDOM&source=poker100.hex&max_depth=10&importance=0&oobee=0&nbins=1024.0&seed=-1.0&sample_rate=0.67 2014-08-21 12:27:40.949043 -- Start http://192.168.1.41:54321/2/GridSearchProgress.json?job_key=$0301c0a8012932d4ffffffff$_9e0d133ea09ea107826b8ab2c6d4404b&destination_key=GridSearch_b227e8bc84881a7aab49878f2a2243d3 2014-08-21 12:27:40.977309 -- Start http://192.168.1.41:54321/Shutdown.json

    JIRA | 3 years ago | Kevin Normoyle
    java.lang.NullPointerException

    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 water.Job$ColumnsResJob.init()
    2. water
      Job$ValidatedJob.init
      1. water.Job$ColumnsResJob.init(Job.java:731)
      2. water.Job$ModelJob.init(Job.java:752)
      3. water.Job$ValidatedJob.init(Job.java:908)
      3 frames
    3. hex.singlenoderf
      SpeeDRF.init
      1. hex.singlenoderf.SpeeDRF.init(SpeeDRF.java:168)
      1 frame
    4. water
      Job.fork
      1. water.Job.fork(Job.java:327)
      1 frame
    5. hex
      GridSearch.execImpl
      1. hex.GridSearch.execImpl(GridSearch.java:31)
      1 frame
    6. water
      H2O$H2OCountedCompleter.compute
      1. water.Func.exec(Func.java:42)
      2. water.Job$3.compute2(Job.java:333)
      3. water.H2O$H2OCountedCompleter.compute(H2O.java:634)
      3 frames
    7. jsr166y
      ForkJoinWorkerThread.run
      1. jsr166y.CountedCompleter.exec(CountedCompleter.java:429)
      2. jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
      3. jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974)
      4. jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
      5. jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
      5 frames