Bug 1100935 - Patch command fails with NullPointer exception
Summary: Patch command fails with NullPointer exception
Keywords:
Status: CLOSED DUPLICATE of bug 1065874
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CLI
Version: 6.2.0
Hardware: ia64
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Alexey Loubyansky
QA Contact: Petr Kremensky
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-24 03:38 UTC by Peter Larsen
Modified: 2014-05-26 05:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-26 05:55:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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