GLM model cannot be loaded through mojo files (NullPointeraException)

Description

generic Model Build progress: | (failed)
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-6-419856e6bed4> in <module>
1 # /Users/jili/Downloads/model_results_rxbar/
----> 2 model_glm = h2o.import_mojo("C:/Users/jili/Downloads/model_results_rxbar/test_rxbar_2020-10-07_model_hhdollar_digital_only_event_brand_buyer_ue_glm44.zip")

~\Anaconda3\lib\site-packages\h2o\h2o.py in import_mojo(mojo_path)
2186 if mojo_path == None:
2187 raise TypeError("MOJO path may not be None")
-> 2188 mojo_estimator = H2OGenericEstimator.from_file(mojo_path)
2189 print(mojo_estimator)
2190 return mojo_estimator

~\Anaconda3\lib\site-packages\h2o\estimators\generic.py in from_file(file)
122 """
123 model = H2OGenericEstimator(path = file)
--> 124 model.train()
125
126 return model

~\Anaconda3\lib\site-packages\h2o\estimators\estimator_base.py in train(self, x, y, training_frame, offset_column, fold_column, weights_column, validation_frame, max_runtime_secs, ignored_columns, model_id, verbose)
113 validation_frame=validation_frame, max_runtime_secs=max_runtime_secs,
114 ignored_columns=ignored_columns, model_id=model_id, verbose=verbose)
--> 115 self._train(parms, verbose=verbose)
116
117 def train_segments(self, x=None, y=None, training_frame=None, offset_column=None, fold_column=None,

~\Anaconda3\lib\site-packages\h2o\estimators\estimator_base.py in _train(self, parms, verbose)
205 return
206
--> 207 job.poll(poll_updates=self._print_model_scoring_history if verbose else None)
208 model_json = h2o.api("GET /%d/Models/%s" % (rest_ver, job.dest_key))["models"][0]
209 self._resolve_model(job.dest_key, model_json)

~\Anaconda3\lib\site-packages\h2o\job.py in poll(self, poll_updates)
75 if self.status == "FAILED":
76 if (isinstance(self.job, dict)) and ("stacktrace" in list(self.job)):
---> 77 raise EnvironmentError("Job with key {} failed with an exception: {}\nstacktrace: "
78 "\n{}".format(self.job_key, self.exception, self.job["stacktrace"]))
79 else:

OSError: Job with key $03017f00000132d4ffffffff$_b632db640f19904cc30f9c5c7ee8422c failed with an exception: java.lang.NullPointerException
stacktrace:
java.lang.NullPointerException
at hex.genmodel.attributes.ModelJsonReader.readTable(ModelJsonReader.java:151)
at hex.genmodel.attributes.VariableImportances.extractFromJson(VariableImportances.java:24)
at hex.genmodel.attributes.ModelAttributesGLM.<init>(ModelAttributesGLM.java:14)
at hex.genmodel.algos.glm.GlmMojoReader.readModelSpecificAttributes(GlmMojoReader.java:46)
at hex.genmodel.ModelMojoReader.readAll(ModelMojoReader.java:204)
at hex.genmodel.ModelMojoReader.readFrom(ModelMojoReader.java:64)
at hex.generic.Generic$MojoDelegatingModelDriver.computeImpl(Generic.java:93)
at hex.ModelBuilder$Driver.compute2(ModelBuilder.java:243)
at hex.generic.Generic$MojoDelegatingModelDriver.compute2(Generic.java:78)
at water.H2O$H2OCountedCompleter.compute(H2O.java:1575)
at jsr166y.CountedCompleter.exec(CountedCompleter.java:468)
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)

Assignee

New H2O Bugs

Fix versions

None

Reporter

Jingxian Li

Support ticket URL

None

Labels

Affected Spark version

None

Customer Request Type

None

Task progress

None

ReleaseNotesHidden

None

CustomerVisible

No

Components

Affects versions

Priority

Critical