Bug 1100935

Summary: Patch command fails with NullPointer exception
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Peter Larsen <plarsen>
Component: CLIAssignee: Alexey Loubyansky <olubyans>
Status: CLOSED DUPLICATE QA Contact: Petr Kremensky <pkremens>
Severity: unspecified Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: brian.stansberry
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-26 05:55:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Larsen 2014-05-24 03:38:23 UTC
Description of problem:

Applying CP01 or CP02 to a 6.2.0 installation results in a NullPointerException:

$ ./jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
[standalone@localhost:9999 /] patch apply --preserve /iso/jboss/eap6/jboss-eap-6.2.1.zip
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:606)
	at org.jboss.modules.Module.run(Module.java:292)
	at org.jboss.modules.Main.main(Main.java:455)

Expected Results:
Not a stack dump :)


Additional info:
All *.bat files have been deleted on the installation prior to applying the patch(es) as they are not used.

Comment 1 Petr Kremensky 2014-05-26 05:55:59 UTC

*** This bug has been marked as a duplicate of bug 1065874 ***