[jboss-jira] [JBoss JIRA] (WFLY-1512) jboss-cli.sh throws NPE in batch mode with certain commands
RH Bugzilla Integration (JIRA)
jira-events at lists.jboss.org
Wed Sep 18 08:37:04 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805453#comment-12805453 ]
RH Bugzilla Integration commented on WFLY-1512:
-----------------------------------------------
Petr Kremensky <pkremens at redhat.com> changed the Status of [bug 977426|https://bugzilla.redhat.com/show_bug.cgi?id=977426] from ON_QA to VERIFIED
> jboss-cli.sh throws NPE in batch mode with certain commands
> -----------------------------------------------------------
>
> Key: WFLY-1512
> URL: https://issues.jboss.org/browse/WFLY-1512
> Project: WildFly
> Issue Type: Bug
> Components: CLI
> Affects Versions: 8.0.0.Alpha2
> Environment: Linux 3.9.4-200.fc18.x86_64 #1 SMP Fri May 24 20:10:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> Reporter: Thomas Hauser
> Assignee: Alexey Loubyansky
> Fix For: 8.0.0.Alpha2
>
>
> When the jboss-cli.sh (and by extension, the CommandContext API in java) is given certain commands while not connected to the client, an unhandled NPE is thrown from org.jboss.as.cli.handlers.GenericTypeOperationHandler.getOperationDescription(GenericTypeOperationHandler.java:886)
> Certain other commands succeed:
> [disconnected / #] /subsystem=datasources/jdbc-driver=ibmdb2:add(driver-name=ibmdb2,driver-module-name=com.ibm.db2)
> #1 /subsystem=datasources/jdbc-driver=ibmdb2:add(driver-name=ibmdb2,driver-module-name=com.ibm.db2)
> The line in question is here, in org.jboss.as.cli.handlers.GenericTypeOperationHandler:
> result = ctx.getModelControllerClient().execute(request);
> At the time of this call, the client field of the context is null; therefore, calling the execute method results in this NPE. This code is not hit with the /subsystem command because of some logic I see in CommandContextImpl.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list