Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1065536

Summary: [QE] (6.3.0) NPE when applying patch to EAP installed via installer.jar
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Rich Lucente <rlucente>
Component: PatchingAssignee: Emanuel Muckenhuber <emuckenh>
Status: CLOSED DUPLICATE QA Contact: Jan Martiska <jmartisk>
Severity: urgent Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: brian.stansberry, dandread, jason.greene, jawilson, jdoyle, kconner, msimka, olubyans, pkremens, rsvoboda, thauser
Target Milestone: ---   
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-27 10:52:23 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:
Bug Depends On:    
Bug Blocks: 1065874    
Attachments:
Description Flags
Install config script none

Description Rich Lucente 2014-02-14 21:24:23 UTC
Created attachment 863432 [details]
Install config script

Description of problem:
When attempting to apply the 6.2.1 patch to EAP 6.2.0 that was installed via the jboss-eap-6.2.0-installer.jar, an NPE occurs.

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

How reproducible:
Always

Steps to Reproduce:
Install EAP 6.2.0 via the installer.  My config file for that is attached.
Then apply the patch for 6.2.1:

[standalone@localhost:9999 /] patch apply /home/rlucente/NotBackedUp/jboss-eap-6.2.1.zip
Conflicts detected: bin/jconsole.bat
Use the --override or --preserve arguments in order to resolve the conflict.

[standalone@localhost:9999 /] patch apply --override /home/rlucente/NotBackedUp/jboss-eap-6.2.1.zip
java.lang.NullPointerException
	at org.jboss.as.patching.cli.PatchHandler.createPatchOperationBuilder(PatchHandler.java:347)
	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)

Actual results:
Both the --override and --preserve options result in an NPE

Expected results:
patch should be successfully applied

Comment 1 Rich Lucente 2014-02-14 21:25:35 UTC
The admin password in the install config script is 'admin1jboss$'

Comment 3 Emanuel Muckenhuber 2014-02-27 10:52:23 UTC

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