java.lang.NullPointerException

JIRA | Neeraja Madabhushi | 1 year ago
  1. 0

    Split frame issue from h2ostream below is email : I am trying to submit a REST request to split a frame from a Java client I wrote. All values other than dataset from the request seem to get submitted ok (ratios, destination_frames). I seem to have traced the issue down to the Schema.fillImpl(I impl) on line 451 (H2O v3.2.0.1). The Pojo.copyProperties can't copy the dataset value properly from SplitFrameV3 to SplitFrame. I suspect it's because the copyProperties method assumes a mirror from->to structure and in the source object's dataset property is nested while in the destination object the property is top level. Just a guess. I also noticed the web UI accomplishes this in a completely different fashion and doesn't even call the SplitFrame API at all but rather uses the very cryptic /99/Rapids API. Are there some known problems here and the SplitFrames API isn't working? The stack trace I get in the job report is: Got exception 'class java.lang.NullPointerException', with msg 'null' java.lang.NullPointerException at hex.FrameSplitter.compute2(FrameSplitter.java:64) at water.H2O$H2OCountedCompleter.compute(H2O.java:1017) 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) The project is actually in my GitHub repo: https://github.com/kkarski/h2o-java-rest-client You can execute the following unit test assuming you have a h2o instance running under localhost:54321 https://github.com/kkarski/h2o-java-rest-client/blob/master/src/test/java/water/bindings/CreateFrameV3ITCase.java

    JIRA | 1 year ago | Neeraja Madabhushi
    java.lang.NullPointerException
  2. 0

    Steps to reproduce : 1) importFiles [ "/Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv" ] 2) setupParse [ "nfs://Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv" ] 3) splitFrame "nfs://Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv", [0.8], ["Chicago_0","Chicago_1"] Error evaluating cell Error calling POST /2/SplitFrame.json with opts {"dataset":"nfs://Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv","ratios":"[0.8]","destKeys":"[\"Chicago_0\",\"Chicago_1\"]"} Unknown error Error at new FlowError (http://172.16.2.24:54321/flow/js/flow.js:2973:25) at Object.<anonymous> (http://172.16.2.24:54321/flow/js/flow.js:3739:419) at fire (http://172.16.2.24:54321/flow/js/flow-lib.js:3852:30) at Object.self.fireWith [as rejectWith] (http://172.16.2.24:54321/flow/js/flow-lib.js:3964:7) at done (http://172.16.2.24:54321/flow/js/flow-lib.js:9019:14) at XMLHttpRequest.<anonymous> (http://172.16.2.24:54321/flow/js/flow-lib.js:9358:9) ============ Console error ============= 02-18 12:42:23.073 172.16.2.24:54321 46236 # Session INFO: Method: POST , URI: /2/SplitFrame.json, route: /2/SplitFrame, parms: {ratios=[0.8], dataset=nfs://Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv, destKeys=["Chicago_0","Chicago_1"]} onExCompletion for hex.FrameSplitter@79375ce8 java.lang.NullPointerException at hex.FrameSplitter.computeEspcPerSplit(FrameSplitter.java:151) at hex.FrameSplitter.makeTemplates(FrameSplitter.java:133) at hex.FrameSplitter.compute2(FrameSplitter.java:70) at water.H2O$H2OCountedCompleter.compute(H2O.java:582) 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) 02-18 12:42:23.084 172.16.2.24:54321 46236 # Session WARN: Caught exception: null; Stacktrace: [hex.FrameSplitter.computeEspcPerSplit(FrameSplitter.java:151), hex.FrameSplitter.makeTemplates(FrameSplitter.java:133), hex.FrameSplitter.compute2(FrameSplitter.java:70), water.H2O$H2OCountedCompleter.compute(H2O.java:582), jsr166y.CountedCompleter.exec(CountedCompleter.java:429), jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263), jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974), jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477), jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)]

    JIRA | 2 years ago | Neeraja Madabhushi
    java.lang.NullPointerException
  3. 0

    Steps to reproduce : 1) importFiles [ "/Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv" ] 2) setupParse [ "nfs://Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv" ] 3) splitFrame "nfs://Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv", [0.8], ["Chicago_0","Chicago_1"] Error evaluating cell Error calling POST /2/SplitFrame.json with opts {"dataset":"nfs://Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv","ratios":"[0.8]","destKeys":"[\"Chicago_0\",\"Chicago_1\"]"} Unknown error Error at new FlowError (http://172.16.2.24:54321/flow/js/flow.js:2973:25) at Object.<anonymous> (http://172.16.2.24:54321/flow/js/flow.js:3739:419) at fire (http://172.16.2.24:54321/flow/js/flow-lib.js:3852:30) at Object.self.fireWith [as rejectWith] (http://172.16.2.24:54321/flow/js/flow-lib.js:3964:7) at done (http://172.16.2.24:54321/flow/js/flow-lib.js:9019:14) at XMLHttpRequest.<anonymous> (http://172.16.2.24:54321/flow/js/flow-lib.js:9358:9) ============ Console error ============= 02-18 12:42:23.073 172.16.2.24:54321 46236 # Session INFO: Method: POST , URI: /2/SplitFrame.json, route: /2/SplitFrame, parms: {ratios=[0.8], dataset=nfs://Users/nmadabhushi/0xdata/datasets/chicagoHomicide.csv, destKeys=["Chicago_0","Chicago_1"]} onExCompletion for hex.FrameSplitter@79375ce8 java.lang.NullPointerException at hex.FrameSplitter.computeEspcPerSplit(FrameSplitter.java:151) at hex.FrameSplitter.makeTemplates(FrameSplitter.java:133) at hex.FrameSplitter.compute2(FrameSplitter.java:70) at water.H2O$H2OCountedCompleter.compute(H2O.java:582) 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) 02-18 12:42:23.084 172.16.2.24:54321 46236 # Session WARN: Caught exception: null; Stacktrace: [hex.FrameSplitter.computeEspcPerSplit(FrameSplitter.java:151), hex.FrameSplitter.makeTemplates(FrameSplitter.java:133), hex.FrameSplitter.compute2(FrameSplitter.java:70), water.H2O$H2OCountedCompleter.compute(H2O.java:582), jsr166y.CountedCompleter.exec(CountedCompleter.java:429), jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263), jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974), jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477), jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)]

    JIRA | 2 years ago | Neeraja Madabhushi
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

    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 hex.FrameSplitter.compute2()
    2. hex
      FrameSplitter.compute2
      1. hex.FrameSplitter.compute2(FrameSplitter.java:64)
      1 frame
    3. water
      H2O$H2OCountedCompleter.compute
      1. water.H2O$H2OCountedCompleter.compute(H2O.java:1017)
      1 frame
    4. 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