Red Hat Bugzilla – Bug 1004714
IOException in aesh console initialization results in NPE
Last modified: 2013-12-15 11:21:29 EST
In source file org.jboss.as.cli.impl.Console, method Factory.getConsole:
if the constructor call "new org.jboss.aesh.console.Console()" leads to an IOException, it is only logged and then ignored, always yielding a NullPointerException just a few lines later (console.addCompletion(new Completion() ...)
I think the IOException should rather be rethrown wrapped in a CliInitializationException, so the resulting exception will not lose track of why this happened. Allowing a NPE go out of the internals is a wrong approach.
(We hit this issue with IOException happening intermittently on HP-UX when ~/.aesh_history is read over NFS. I am not sure if that can be fixed, needs some more investigation.)
Oh, yes, thanks for reporting.
Jan Martiska <firstname.lastname@example.org> updated the status of jira WFLY-2009 to Resolved
Jan Martiska <email@example.com> made a comment on jira WFLY-2009
Verified in 6.2.0.ER1