Bug 1032041 - [QE] (6.3.0) NPE in cli is thrown when using preserve, override without parameter
Summary: [QE] (6.3.0) NPE in cli is thrown when using preserve, override without param...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Patching
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: DR2
: EAP 6.3.0
Assignee: Emanuel Muckenhuber
QA Contact: Jan Martiska
Russell Dickenson
URL:
Whiteboard:
: 1032095 1065536 1070330 (view as bug list)
Depends On:
Blocks: 1065874
TreeView+ depends on / blocked
 
Reported: 2013-11-19 12:44 UTC by Martin Simka
Modified: 2015-02-01 23:05 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-28 15:28:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-2536 0 Minor Resolved NPE in cli is thrown when using preserve, override without parameter 2016-02-03 14:16:34 UTC

Description Martin Simka 2013-11-19 12:44:16 UTC
Description of problem:
NPE in cli is thrown when using preserve, override without parameter

Version-Release number of selected component (if applicable):
EAP 6.2.0.CR2

Steps to Reproduce:
1. in jboss-cli run command patch apply <path_to_patch> --preserve or patch apply <path_to_patch> --override

Actual results:
java.lang.NullPointerException
        at org.jboss.as.patching.cli.PatchHandler.createPatchOperationBuilder(PatchHandler.java:353)
        at org.jboss.as.patching.cli.PatchHandler.doHandle(PatchHandler.java:246)
        at org.jboss.as.cli.handlers.CommandHandlerWithHelp.handle(CommandHandlerWithHelp.java:86)
        at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:600)
        at org.jboss.as.cli.impl.CommandContextImpl.handleSafe(CommandContextImpl.java:616)
        at org.jboss.as.cli.impl.CommandContextImpl.interact(CommandContextImpl.java:1204)
        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:263)
        at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:34)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.jboss.modules.Module.run(Module.java:292)
        at org.jboss.modules.Main.main(Main.java:455)


Expected results:
Error message saying that preserve and override requires path as parameter

Comment 1 Carlo de Wolf 2013-11-21 11:15:47 UTC
*** Bug 1032095 has been marked as a duplicate of this bug. ***

Comment 2 JBoss JIRA Server 2013-12-03 14:05:20 UTC
Alexey Loubyansky <alex> updated the status of jira WFLY-2536 to Resolved

Comment 3 JBoss JIRA Server 2013-12-03 14:05:20 UTC
Alexey Loubyansky <alex> made a comment on jira WFLY-2536

This was fixed and merged https://github.com/wildfly/wildfly/commit/30cd3c084b575589fcda8005897f4c18a696f66d

Comment 4 Emanuel Muckenhuber 2014-02-24 15:52:49 UTC
PR: https://github.com/jbossas/jboss-eap/pull/965

Comment 5 Emanuel Muckenhuber 2014-02-27 10:46:59 UTC
*** Bug 1070330 has been marked as a duplicate of this bug. ***

Comment 6 Emanuel Muckenhuber 2014-02-27 10:52:23 UTC
*** Bug 1065536 has been marked as a duplicate of this bug. ***

Comment 7 Jan Martiska 2014-03-06 11:20:45 UTC
Verified in EAP 6.3.0.DR2.


Note You need to log in before you can comment on or make changes to this bug.