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

Bug 1343029

Summary: Installer fails on Windows during applying eap patch
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Jan Stastny <jstastny>
Component: InstallerAssignee: Emmett Underhill <eunderhi>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Stastny <jstastny>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.3.0CC: drieden, eunderhi, felias, jstastny, mbaluch, mvaghela, vhalbert
Target Milestone: ER4Keywords: TestBlocker
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-24 11:48:05 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 Jan Stastny 2016-06-06 11:25:19 UTC
Description of problem:
There is problem when DV is being installed into clean directory (no existing EAP instance). Applies to all three types of installer.
Problematic is the following command (running .sh script on windows):
Running command:[C:\Users\Administrator\tmp-workspaces\ER4/bin/jboss-cli.sh, 'patch, apply, C:\Users\Administrator\tmp-workspaces\ER4/patch.zip']
Also the path should use '\' instead of '/' on Windows.

Fragments from console:

[ Starting to unpack ]
[ Processing package: Red Hat JBoss Enterprise Application Platform (1/5) ]
[ Processing package: Red Hat Data Virtualization Platform (2/5) ]
[ Processing package: EAP Patch (3/5) ]
[ Processing package: Teiid installation (4/5) ]
[ Processing package: Modeshape installation (5/5) ]
[ Unpacking finished ]
[ Starting processing ]
Starting process Setting required properties (1/63)
Starting process Logging installation information (2/63)
IzPack variable state written to C:\Users\Administrator\tmp-workspaces\ER4\installation\InstallationLog.txt
Starting process Print Patch Job (3/63)
Patching EAP 6.4.0 to 6.4.8.
Starting process Patch EAP (4/63)
Running command:[C:\Users\Administrator\tmp-workspaces\ER4/bin/jboss-cli.sh, 'patch, apply, C:\Users\Administrator\tmp-workspaces\ER4/patch.
zip']
CommandRunner.IOfailure
Post Processing Error
Invocation Problem calling : com.redhat.installer.installation.processpanel.CommandRunner, java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.izforge.izpack.installer.ProcessPanelWorker$ExecutableClass.run(ProcessPanelWorker.java:755)
        at com.izforge.izpack.installer.ProcessPanelWorker$ProcessingJob.run(ProcessPanelWorker.java:511)
        at com.izforge.izpack.installer.ProcessPanelWorker.runJob(ProcessPanelWorker.java:456)
        at com.izforge.izpack.installer.ProcessPanelWorker.run(ProcessPanelWorker.java:373)
        at com.izforge.izpack.panels.ProcessPanelConsoleHelper.runConsole(ProcessPanelConsoleHelper.java:126)
        at com.izforge.izpack.installer.ConsoleInstaller.iterateAndPerformAction(ConsoleInstaller.java:314)
        at com.izforge.izpack.installer.ConsoleInstaller.doInstall(ConsoleInstaller.java:691)
        at com.izforge.izpack.installer.ConsoleInstaller.run(ConsoleInstaller.java:838)
        at com.izforge.izpack.installer.Installer.main(Installer.java:178)
Caused by: java.lang.NullPointerException
        at com.redhat.installer.installation.processpanel.CommandRunner.run(CommandRunner.java:114)
        ... 13 more

Starting process Onfail Server Shutdown Job (5/63)
Running on-fail server check.
Server startup not recorded. No need to shut it down.
Shutting server down.
Trying to connect to Management Interface...(1/5).
Jun 06, 2016 4:08:40 AM org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.13.GA-redhat-1
Jun 06, 2016 4:08:40 AM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.13.GA-redhat-1
Jun 06, 2016 4:08:40 AM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.3.4.Final-redhat-1
Trying to connect to Management Interface...(2/5).
Trying to connect to Management Interface...(3/5).
Trying to connect to Management Interface...(4/5).
Trying to connect to Management Interface...(5/5).
Failed to connect to Management Interface after 5 attempts.
{"outcome" => "failed","failure-description" => "No ModelControllerClient was available to execute the request.","command" => ":shutdown"}
Starting process Copy server logs (6/63)
The configured source file: C:\Users\Administrator\tmp-workspaces\ER4\standalone\log\server.log doesn't exist.
The configured source file: C:\Users\Administrator\tmp-workspaces\ER4\domain\log\host-controller.log doesn't exist.
The configured source file: C:\Users\Administrator\tmp-workspaces\ER4\domain\log\process-controller.log doesn't exist.
Installation has failed.
[ Console installation done ]

Comment 1 Emmett Underhill 2016-06-06 19:23:50 UTC
Hi Jan,

There were a few problems with the installer trying to close null streams on Windows. Additionally the jboss-cli.sh script was running on Windows instead of the .bat script. After changing this behavior the patch gets applied correctly on Windows.

Thanks,

Emmett Underhill