java.lang.NullPointerException

JIRA | Kevin Normoyle | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    dataset is benign.csv When I added the response_column (not None..'FNDX' ..it worked okay) I didn't specify the response column, here pretty much all params (except training_frame) are None here's the DL parameters to build_model build_model parameters {'momentum_start': None, 'shuffle_training_data': None, 'keep_cross_validation_splits': None, 'expert_mode': None, 'missing_values_handling': None, 'average_activation': None, 'force_load_balance': None, 'score_training_samples': None, 'epochs': None, 'rate': None, 'seed': None, 'classification_stop': None, 'replicate_training_data': None, 'score_validation_sampling': None, 'n_folds': None, 'autoencoder': None, 'use_all_factor_levels': None, 'max_confusion_matrix_size': None, 'variable_importances': None, 'rate_annealing': None, 'score_duty_cycle': None, 'training_frame': u'benign.hex', 'max_w2': None, 'quiet_mode': None, 'fast_mode': None, 'nesterov_accelerated_gradient': None, 'checkpoint': None, 'balance_classes': None, 'epsilon': None, 'rho': None, 'hidden': None, 'validation_frame': u'benign.hex', 'response_column': None, 'single_node_mode': None, 'train_samples_per_iteration': None, 'adaptive_rate': None, 'momentum_ramp': None, 'ignored_columns': None, 'activation': None, 'diagnostics': None, 'target_ratio_comm_to_comp': None, 'regression_stop': None, 'score_each_iteration': None, 'override_with_best_model': None, 'initial_weight_distribution': None, 'max_after_balance_size': None, 'do_classification': None, 'score_interval': None, 'rate_decay': None, 'initial_weight_scale': None, 'loss': None, 'hidden_dropout_ratios': None, 'score_validation_samples': None, 'col_major': None, 'max_hit_ratio_k': None, 'input_dropout_ratio': None, 'l2': None, 'sparse': None, 'l1': None, 'sparsity_beta': None, 'class_sampling_factors': None, 'ignore_const_cols': None, 'destination_key': 'benign_dl.hex', 'momentum_stable': None} it got this: JSON call returned non-200 status with http://172.16.2.222:54321/2/ModelBuilders.json/deeplearning r.status_code: 500 r.headers: {'date': 'Fri, 21 Nov 2014 21:47:22 GMT', 'content-type': 'application/json'} r.text: {"schema_version":1,"schema_name":"HttpErrorV1","schema_type":"Iced","status_header":"500 Internal Server Error","errmsg":"NullPointerException: null","errurl":null,"stacktrace":["water.fvec.Frame.find(Frame.java:215)","hex.SupervisedModelBuilder.init(SupervisedModelBuilder.java:43)","hex.deeplearning.DeepLearning.init(DeepLearning.java:45)","hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:84)","hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:22)","water.api.Schema.createAndFillImpl(Schema.java:193)","water.api.Handler.handle(Handler.java:49)","water.api.RequestServer.handle(RequestServer.java:476)","water.api.RequestServer.serve(RequestServer.java:454)","water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:432)","java.lang.Thread.run(Thread.java:745)"]} The h2o requests (sandbox/commands.log) were: 2014-11-21 13:47:21.080242 -- Start http://172.16.2.222:54321/2/ImportFiles.json?path=/home/kevin/h2o-dev/smalldata/logreg 2014-11-21 13:47:21.174208 -- Start http://172.16.2.222:54321/ParseSetup.json?srcs=[nfs://home/kevin/h2o-dev/smalldata/logreg/benign.csv] 2014-11-21 13:47:21.250262 -- Start http://172.16.2.222:54321/Parse.json?srcs=[nfs://home/kevin/h2o-dev/smalldata/logreg/benign.csv]&checkHeader=1&ncols=14&sep=44&columnNames=[STR,OBS,AGMT,FNDX,HIGD,DEG,CHK,AGP1,AGMN,NLV,LIV,WT,AGLP,MST]&singleQuotes=False&hex=benign.hex&pType=CSV 2014-11-21 13:47:21.307276 -- Start http://172.16.2.222:54321/2/Jobs.json/$0301ac1002de32d4ffffffff$_b87eca3d1adb2e8b2ab8fcc241e64059? 2014-11-21 13:47:21.829600 -- Start http://172.16.2.222:54321/2/Jobs.json/$0301ac1002de32d4ffffffff$_b87eca3d1adb2e8b2ab8fcc241e64059? 2014-11-21 13:47:21.834685 -- Start http://172.16.2.222:54321/3/Frames.json/benign.hex?find_compatible_models=0&len=5&offset=0 2014-11-21 13:47:21.904951 -- Start http://172.16.2.222:54321/3/Frames.json/benign.hex?find_compatible_models=0&len=5&offset=0 2014-11-21 13:47:21.918578 -- Start http://172.16.2.222:54321/2/ModelBuilders.json? 2014-11-21 13:47:22.060133 -- Start http://172.16.2.222:54321/3/Frames.json/benign.hex?find_compatible_models=0&len=5&offset=0 2014-11-21 13:47:22.071247 -- Start http://172.16.2.222:54321/2/ModelBuilders.json/deeplearning #{'momentum_start': None, 'shuffle_training_data': None, 'keep_cross_validation_splits': None, 'expert_mode': None, 'missing_values_handling': None, 'average_activation': None, 'force_load_balance': None, 'score_training_samples': None, 'epochs': None, 'rate': None, 'seed': None, 'classification_stop': None, 'replicate_training_data': None, 'score_validation_sampling': None, 'n_folds': None, 'autoencoder': None, 'use_all_factor_levels': None, 'max_confusion_matrix_size': None, 'variable_importances': None, 'rate_annealing': None, 'score_duty_cycle': None, 'training_frame': u'benign.hex', 'max_w2': None, 'quiet_mode': None, 'fast_mode': None, 'nesterov_accelerated_gradient': None, 'checkpoint': None, 'balance_classes': None, 'epsilon': None, 'rho': None, 'hidden': None, 'validation_frame': u'benign.hex', 'response_column': None, 'single_node_mode': None, 'train_samples_per_iteration': None, 'adaptive_rate': None, 'momentum_ramp': None, 'ignored_columns': None, 'activation': None, 'diagnostics': None, 'target_ratio_comm_to_comp': None, 'regression_stop': None, 'score_each_iteration': None, 'override_with_best_model': None, 'initial_weight_distribution': None, 'max_after_balance_size': None, 'do_classification': None, 'score_interval': None, 'rate_decay': None, 'initial_weight_scale': None, 'loss': None, 'hidden_dropout_ratios': None, 'score_validation_samples': None, 'col_major': None, 'max_hit_ratio_k': None, 'input_dropout_ratio': None, 'l2': None, 'sparse': None, 'l1': None, 'sparsity_beta': None, 'class_sampling_factors': None, 'ignore_const_cols': None, 'destination_key': 'benign_dl.hex', 'momentum_stable': None}; ERROR 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: java.lang.NullPointerException 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.fvec.Frame.find(Frame.java:215) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at hex.SupervisedModelBuilder.init(SupervisedModelBuilder.java:43) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at hex.deeplearning.DeepLearning.init(DeepLearning.java:45) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:84) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:22) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.api.Schema.createAndFillImpl(Schema.java:193) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.api.Handler.handle(Handler.java:49) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.api.RequestServer.handle(RequestServer.java:476) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.api.RequestServer.serve(RequestServer.java:454) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:432) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at java.lang.Thread.run(Thread.java:745) ERROR

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

    dataset is benign.csv When I added the response_column (not None..'FNDX' ..it worked okay) I didn't specify the response column, here pretty much all params (except training_frame) are None here's the DL parameters to build_model build_model parameters {'momentum_start': None, 'shuffle_training_data': None, 'keep_cross_validation_splits': None, 'expert_mode': None, 'missing_values_handling': None, 'average_activation': None, 'force_load_balance': None, 'score_training_samples': None, 'epochs': None, 'rate': None, 'seed': None, 'classification_stop': None, 'replicate_training_data': None, 'score_validation_sampling': None, 'n_folds': None, 'autoencoder': None, 'use_all_factor_levels': None, 'max_confusion_matrix_size': None, 'variable_importances': None, 'rate_annealing': None, 'score_duty_cycle': None, 'training_frame': u'benign.hex', 'max_w2': None, 'quiet_mode': None, 'fast_mode': None, 'nesterov_accelerated_gradient': None, 'checkpoint': None, 'balance_classes': None, 'epsilon': None, 'rho': None, 'hidden': None, 'validation_frame': u'benign.hex', 'response_column': None, 'single_node_mode': None, 'train_samples_per_iteration': None, 'adaptive_rate': None, 'momentum_ramp': None, 'ignored_columns': None, 'activation': None, 'diagnostics': None, 'target_ratio_comm_to_comp': None, 'regression_stop': None, 'score_each_iteration': None, 'override_with_best_model': None, 'initial_weight_distribution': None, 'max_after_balance_size': None, 'do_classification': None, 'score_interval': None, 'rate_decay': None, 'initial_weight_scale': None, 'loss': None, 'hidden_dropout_ratios': None, 'score_validation_samples': None, 'col_major': None, 'max_hit_ratio_k': None, 'input_dropout_ratio': None, 'l2': None, 'sparse': None, 'l1': None, 'sparsity_beta': None, 'class_sampling_factors': None, 'ignore_const_cols': None, 'destination_key': 'benign_dl.hex', 'momentum_stable': None} it got this: JSON call returned non-200 status with http://172.16.2.222:54321/2/ModelBuilders.json/deeplearning r.status_code: 500 r.headers: {'date': 'Fri, 21 Nov 2014 21:47:22 GMT', 'content-type': 'application/json'} r.text: {"schema_version":1,"schema_name":"HttpErrorV1","schema_type":"Iced","status_header":"500 Internal Server Error","errmsg":"NullPointerException: null","errurl":null,"stacktrace":["water.fvec.Frame.find(Frame.java:215)","hex.SupervisedModelBuilder.init(SupervisedModelBuilder.java:43)","hex.deeplearning.DeepLearning.init(DeepLearning.java:45)","hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:84)","hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:22)","water.api.Schema.createAndFillImpl(Schema.java:193)","water.api.Handler.handle(Handler.java:49)","water.api.RequestServer.handle(RequestServer.java:476)","water.api.RequestServer.serve(RequestServer.java:454)","water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:432)","java.lang.Thread.run(Thread.java:745)"]} The h2o requests (sandbox/commands.log) were: 2014-11-21 13:47:21.080242 -- Start http://172.16.2.222:54321/2/ImportFiles.json?path=/home/kevin/h2o-dev/smalldata/logreg 2014-11-21 13:47:21.174208 -- Start http://172.16.2.222:54321/ParseSetup.json?srcs=[nfs://home/kevin/h2o-dev/smalldata/logreg/benign.csv] 2014-11-21 13:47:21.250262 -- Start http://172.16.2.222:54321/Parse.json?srcs=[nfs://home/kevin/h2o-dev/smalldata/logreg/benign.csv]&checkHeader=1&ncols=14&sep=44&columnNames=[STR,OBS,AGMT,FNDX,HIGD,DEG,CHK,AGP1,AGMN,NLV,LIV,WT,AGLP,MST]&singleQuotes=False&hex=benign.hex&pType=CSV 2014-11-21 13:47:21.307276 -- Start http://172.16.2.222:54321/2/Jobs.json/$0301ac1002de32d4ffffffff$_b87eca3d1adb2e8b2ab8fcc241e64059? 2014-11-21 13:47:21.829600 -- Start http://172.16.2.222:54321/2/Jobs.json/$0301ac1002de32d4ffffffff$_b87eca3d1adb2e8b2ab8fcc241e64059? 2014-11-21 13:47:21.834685 -- Start http://172.16.2.222:54321/3/Frames.json/benign.hex?find_compatible_models=0&len=5&offset=0 2014-11-21 13:47:21.904951 -- Start http://172.16.2.222:54321/3/Frames.json/benign.hex?find_compatible_models=0&len=5&offset=0 2014-11-21 13:47:21.918578 -- Start http://172.16.2.222:54321/2/ModelBuilders.json? 2014-11-21 13:47:22.060133 -- Start http://172.16.2.222:54321/3/Frames.json/benign.hex?find_compatible_models=0&len=5&offset=0 2014-11-21 13:47:22.071247 -- Start http://172.16.2.222:54321/2/ModelBuilders.json/deeplearning #{'momentum_start': None, 'shuffle_training_data': None, 'keep_cross_validation_splits': None, 'expert_mode': None, 'missing_values_handling': None, 'average_activation': None, 'force_load_balance': None, 'score_training_samples': None, 'epochs': None, 'rate': None, 'seed': None, 'classification_stop': None, 'replicate_training_data': None, 'score_validation_sampling': None, 'n_folds': None, 'autoencoder': None, 'use_all_factor_levels': None, 'max_confusion_matrix_size': None, 'variable_importances': None, 'rate_annealing': None, 'score_duty_cycle': None, 'training_frame': u'benign.hex', 'max_w2': None, 'quiet_mode': None, 'fast_mode': None, 'nesterov_accelerated_gradient': None, 'checkpoint': None, 'balance_classes': None, 'epsilon': None, 'rho': None, 'hidden': None, 'validation_frame': u'benign.hex', 'response_column': None, 'single_node_mode': None, 'train_samples_per_iteration': None, 'adaptive_rate': None, 'momentum_ramp': None, 'ignored_columns': None, 'activation': None, 'diagnostics': None, 'target_ratio_comm_to_comp': None, 'regression_stop': None, 'score_each_iteration': None, 'override_with_best_model': None, 'initial_weight_distribution': None, 'max_after_balance_size': None, 'do_classification': None, 'score_interval': None, 'rate_decay': None, 'initial_weight_scale': None, 'loss': None, 'hidden_dropout_ratios': None, 'score_validation_samples': None, 'col_major': None, 'max_hit_ratio_k': None, 'input_dropout_ratio': None, 'l2': None, 'sparse': None, 'l1': None, 'sparsity_beta': None, 'class_sampling_factors': None, 'ignore_const_cols': None, 'destination_key': 'benign_dl.hex', 'momentum_stable': None}; ERROR 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: java.lang.NullPointerException 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.fvec.Frame.find(Frame.java:215) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at hex.SupervisedModelBuilder.init(SupervisedModelBuilder.java:43) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at hex.deeplearning.DeepLearning.init(DeepLearning.java:45) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:84) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:22) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.api.Schema.createAndFillImpl(Schema.java:193) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.api.Handler.handle(Handler.java:49) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.api.RequestServer.handle(RequestServer.java:476) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.api.RequestServer.serve(RequestServer.java:454) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:432) 11-21 13:47:22.088 172.16.2.222:54321 6919 # Session WARN: at java.lang.Thread.run(Thread.java:745) ERROR

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

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    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.fvec.Frame.find()
    2. water.fvec
      Frame.find
      1. water.fvec.Frame.find(Frame.java:215)
      1 frame
    3. hex
      SupervisedModelBuilder.init
      1. hex.SupervisedModelBuilder.init(SupervisedModelBuilder.java:43)
      1 frame
    4. hex.deeplearning
      DeepLearning.init
      1. hex.deeplearning.DeepLearning.init(DeepLearning.java:45)
      1 frame
    5. hex.schemas
      ModelBuilderSchema.fillImpl
      1. hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:84)
      2. hex.schemas.ModelBuilderSchema.fillImpl(ModelBuilderSchema.java:22)
      2 frames
    6. water.api
      RequestServer.serve
      1. water.api.Schema.createAndFillImpl(Schema.java:193)
      2. water.api.Handler.handle(Handler.java:49)
      3. water.api.RequestServer.handle(RequestServer.java:476)
      4. water.api.RequestServer.serve(RequestServer.java:454)
      4 frames
    7. water
      NanoHTTPD$HTTPSession.run
      1. water.NanoHTTPD$HTTPSession.run(NanoHTTPD.java:432)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame