Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cannot access a member of class java.lang.ClassLoader with modifiers protected final" when trying to import a file from s3 #7921

Closed
exalate-issue-sync bot opened this issue May 11, 2023 · 3 comments

Comments

@exalate-issue-sync
Copy link

The following error isn't reproducible but might help in the future if it comes up again.

occurred using openjdk version 11.0.6 2020-01-14; OpenJDK Runtime Environment (build 11.0.6+10-post-Debian-1deb10u1); OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Debian-1deb10u1, mixed mode, sharing)

When trying to import a file using this code:
h2o.import_file(
"https://s3.amazonaws.com/h2o-public-test-data/"
"smalldata/gbm_test/titanic.csv",
destination_frame="titanic_all",
)

the following error occured:

[2020-07-31T16:24:29.948Z] Traceback (most recent call last):
[2020-07-31T16:24:29.948Z] File "tests/test_h2o3/model_generation/generate_models.py", line 53, in
[2020-07-31T16:24:29.948Z] generate_all_models(h2o)
[2020-07-31T16:24:29.948Z] File "tests/test_h2o3/model_generation/generate_models.py", line 42, in generate_all_models
[2020-07-31T16:24:29.948Z] save_model(h2o, generalized_linear_estimator(h2o))
[2020-07-31T16:24:29.948Z] File "tests/test_h2o3/model_generation/generate_models.py", line 15, in generalized_linear_estimator
[2020-07-31T16:24:29.948Z] train, valid, _, predictors, response = get_titanic_data(h2o)
[2020-07-31T16:24:29.948Z] File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/AutoDoc_PR-420/tests/test_h2o3/utils.py", line 16, in get_titanic_data
[2020-07-31T16:24:29.948Z] destination_frame="titanic_all",
[2020-07-31T16:24:29.948Z] File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/AutoDoc_PR-420/.local/lib/python3.6/site-packages/h2o/h2o.py", line 437, in import_file
[2020-07-31T16:24:29.948Z] skipped_columns, custom_non_data_line_markers)
[2020-07-31T16:24:29.948Z] File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/AutoDoc_PR-420/.local/lib/python3.6/site-packages/h2o/frame.py", line 318, in _import_parse
[2020-07-31T16:24:29.948Z] skipped_columns, custom_non_data_line_markers)
[2020-07-31T16:24:29.948Z] File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/AutoDoc_PR-420/.local/lib/python3.6/site-packages/h2o/frame.py", line 333, in _parse
[2020-07-31T16:24:29.948Z] return self._parse_raw(setup)
[2020-07-31T16:24:29.948Z] File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/AutoDoc_PR-420/.local/lib/python3.6/site-packages/h2o/frame.py", line 360, in _parse_raw
[2020-07-31T16:24:29.948Z] H2OJob(h2o.api("POST /3/Parse", data=p), "Parse").poll()
[2020-07-31T16:24:29.949Z] File "/home/jenkins/slave_dir_from_mr-0xc1/workspace/AutoDoc_PR-420/.local/lib/python3.6/site-packages/h2o/job.py", line 77, in poll
[2020-07-31T16:24:29.949Z] "\n{}".format(self.job_key, self.exception, self.job["stacktrace"]))
[2020-07-31T16:24:29.949Z] OSError: Job with key **** failed with an exception: DistributedException from /127.0.0.1:13334: 'javassist.CannotCompileException: by java.lang.IllegalAccessException: class javassist.util.proxy.DefineClassHelper$JavaOther cannot access a member of class java.lang.ClassLoader (in module java.base) with modifiers "protected final"', caused by java.lang.RuntimeException: javassist.CannotCompileException: by java.lang.IllegalAccessException: class javassist.util.proxy.DefineClassHelper$JavaOther cannot access a member of class java.lang.ClassLoader (in module java.base) with modifiers "protected final"
[2020-07-31T16:24:29.949Z] stacktrace:
[2020-07-31T16:24:29.949Z] DistributedException from /127.0.0.1:13334: 'javassist.CannotCompileException: by java.lang.IllegalAccessException: class javassist.util.proxy.DefineClassHelper$JavaOther cannot access a member of class java.lang.ClassLoader (in module java.base) with modifiers "protected final"', caused by java.lang.RuntimeException: javassist.CannotCompileException: by java.lang.IllegalAccessException: class javassist.util.proxy.DefineClassHelper$JavaOther cannot access a member of class java.lang.ClassLoader (in module java.base) with modifiers "protected final"
[2020-07-31T16:24:29.949Z] at water.MRTask.getResult(MRTask.java:478)
[2020-07-31T16:24:29.949Z] at water.MRTask.getResult(MRTask.java:486)
[2020-07-31T16:24:29.949Z] at water.MRTask.doAll(MRTask.java:402)
[2020-07-31T16:24:29.949Z] at water.parser.ParseDataset.parseAllKeys(ParseDataset.java:257)
[2020-07-31T16:24:29.949Z] at water.parser.ParseDataset.access$000(ParseDataset.java:29)
[2020-07-31T16:24:29.949Z] at water.parser.ParseDataset$ParserFJTask.compute2(ParseDataset.java:206)
[2020-07-31T16:24:29.949Z] at water.H2O$H2OCountedCompleter.compute(H2O.java:1395)
[2020-07-31T16:24:29.949Z] at jsr166y.CountedCompleter.exec(CountedCompleter.java:468)
[2020-07-31T16:24:29.949Z] at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:263)
[2020-07-31T16:24:29.949Z] at jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:974)
[2020-07-31T16:24:29.949Z] at jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1477)
[2020-07-31T16:24:29.949Z] at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
[2020-07-31T16:24:29.949Z] Caused by: java.lang.RuntimeException: javassist.CannotCompileException: by java.lang.IllegalAccessException: class javassist.util.proxy.DefineClassHelper$JavaOther cannot access a member of class java.lang.ClassLoader (in module java.base) with modifiers "protected final"
[2020-07-31T16:24:29.949Z] at water.Weaver.genDelegate(Weaver.java:96)
[2020-07-31T16:24:29.949Z] at water.TypeMap.getIcer(TypeMap.java:205)
[2020-07-31T16:24:29.949Z] at water.TypeMap.getIcer(TypeMap.java:192)
[2020-07-31T16:24:29.949Z] at water.Iced.icer(Iced.java:55)
[2020-07-31T16:24:29.949Z] at water.Iced.frozenType(Iced.java:83)
[2020-07-31T16:24:29.949Z] at water.Value.(Value.java:323)
[2020-07-31T16:24:29.949Z] at water.Value.(Value.java:319)
[2020-07-31T16:24:29.949Z] at water.DKV.put(DKV.java:65)
[2020-07-31T16:24:29.949Z] at water.fvec.Chunk.close(Chunk.java:552)
[2020-07-31T16:24:29.949Z] at water.parser.FVecParseWriter.close(FVecParseWriter.java:115)
[2020-07-31T16:24:29.949Z] at water.parser.ParseDataset$MultiFileParseTask$DistributedParse.map(ParseDataset.java:985)
[2020-07-31T16:24:29.949Z] at water.MRTask.compute2(MRTask.java:637)
[2020-07-31T16:24:29.949Z] at water.H2O$H2OCountedCompleter.compute1(H2O.java:1398)
[2020-07-31T16:24:29.949Z] at water.parser.ParseDataset$MultiFileParseTask$DistributedParse$Icer.compute1(ParseDataset$MultiFileParseTask$DistributedParse$Icer.java)
[2020-07-31T16:24:29.949Z] at water.H2O$H2OCountedCompleter.compute(H2O.java:1394)
[2020-07-31T16:24:29.949Z] ... 5 more
[2020-07-31T16:24:29.949Z] Caused by: javassist.CannotCompileException: by java.lang.IllegalAccessException: class javassist.util.proxy.DefineClassHelper$JavaOther cannot access a member of class java.lang.ClassLoader (in module java.base) with modifiers "protected final"
[2020-07-31T16:24:29.949Z] at javassist.util.proxy.DefineClassHelper$JavaOther.defineClass(DefineClassHelper.java:220)
[2020-07-31T16:24:29.949Z] at javassist.util.proxy.DefineClassHelper$Java11.defineClass(DefineClassHelper.java:52)
[2020-07-31T16:24:29.949Z] at javassist.util.proxy.DefineClassHelper.toClass(DefineClassHelper.java:263)
[2020-07-31T16:24:29.949Z] at javassist.ClassPool.toClass(ClassPool.java:1232)
[2020-07-31T16:24:29.949Z] at javassist.CtClass.toClass(CtClass.java:1400)
[2020-07-31T16:24:29.949Z] at water.Weaver.javassistLoadClass(Weaver.java:236)
[2020-07-31T16:24:29.949Z] at water.Weaver.genDelegate(Weaver.java:86)
[2020-07-31T16:24:29.949Z] ... 19 more
[2020-07-31T16:24:29.949Z] Caused by: java.lang.IllegalAccessException: class javassist.util.proxy.DefineClassHelper$JavaOther cannot access a member of class java.lang.ClassLoader (in module java.base) with modifiers "protected final"
[2020-07-31T16:24:29.949Z] at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
[2020-07-31T16:24:29.949Z] at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
[2020-07-31T16:24:29.949Z] at java.base/java.lang.reflect.Method.invoke(Method.java:558)
[2020-07-31T16:24:29.949Z] at javassist.util.proxy.DefineClassHelper$JavaOther.defineClass(DefineClassHelper.java:214)
[2020-07-31T16:24:29.949Z] ... 25 more

@exalate-issue-sync
Copy link
Author

Michal Kurka commented: This was a bug in Javassist library used in H2O: [https://github.com/jboss-javassist/javassist/issues/242|https://github.com/jboss-javassist/javassist/issues/242|smart-link]

This is now fixed in current versions of H2O, the solution is to upgrade your H2O version.

@exalate-issue-sync
Copy link
Author

Michal Kurka commented: Already fixed in up-to-date h2o versions

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

JIRA Issue Migration Info

Jira Issue: PUBDEV-7718
Assignee: Michal Kurka
Reporter: Ehren Julien-Neitzert
State: Resolved
Fix Version: N/A
Attachments: N/A
Development PRs: N/A

@h2o-ops h2o-ops closed this as completed May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant