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

Invalid argument on command line with cause logging to produce NPE #7551

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

Comments

@exalate-issue-sync
Copy link

Starting H2O with an invalid argument will cause logging system initialization to fail on NPE:

{noformat}ERROR: failed in createLog4j, exiting now.
java.lang.NullPointerException
at water.util.Log.createLog4j(Log.java:351)
at water.util.Log.write0(Log.java:141)
at water.util.Log.flushBufferedMessages(Log.java:158)
at water.util.Log.notifyAboutProcessExiting(Log.java:80)
at water.H2O.exit(H2O.java:960)
at water.H2O.parseFailed(H2O.java:472)
at water.H2O.parseH2OArgumentsTo(H2O.java:771)
at water.H2O.parseArguments(H2O.java:536)
at water.H2O.main(H2O.java:2209)
at water.H2OStarter.start(H2OStarter.java:22)
at water.H2OStarter.start(H2OStarter.java:48)
at water.H2OApp.main(H2OApp.java:12)
{noformat}

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

JIRA Issue Details

Jira Issue: PUBDEV-8098
Assignee: Michal Kurka
Reporter: Michal Kurka
State: Resolved
Fix Version: 3.32.1.2
Attachments: N/A
Development PRs: Available

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

Linked PRs from JIRA

#5426

@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
Projects
None yet
Development

No branches or pull requests

1 participant