Bug 1010266

Summary: Failed to initialize the CommandContext.
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Pavol Srna <psrna>
Component: InstallerAssignee: Thomas Hauser <thauser>
Status: CLOSED CURRENTRELEASE QA Contact: Pavol Srna <psrna>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0 GACC: jsedlace, soa-p-jira
Target Milestone: ER7   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Attachments:
Description Flags
screenshot
none
jstack-maven
none
jstack-server
none
jstack-server2 none

Description Pavol Srna 2013-09-20 12:10:22 UTC
Description of problem:

Please see screenshot attached.

I've seen this behavior only when running the installer in the automated test suite. The exception is thrown only when the installer test is run repeatedly.

Comment 2 Pavol Srna 2013-09-20 12:13:08 UTC
Created attachment 800474 [details]
screenshot

Comment 3 Thomas Hauser 2013-09-20 19:27:33 UTC
It would be good to have some stack traces from jstack or jconsole when this error is occuring, thanks

Comment 4 Pavol Srna 2013-09-23 18:10:48 UTC
Created attachment 801845 [details]
jstack-maven

Comment 5 Pavol Srna 2013-09-23 18:11:14 UTC
Created attachment 801846 [details]
jstack-server

Comment 6 Pavol Srna 2013-09-23 18:11:40 UTC
Created attachment 801848 [details]
jstack-server2

Comment 7 Pavol Srna 2013-10-02 12:26:03 UTC
Another exception stack trace:

org.jboss.as.cli.CliInitializationException: Failed to create an instance of class org.jboss.as.cli.impl.CommandContextFactoryImpl
	at org.jboss.as.cli.CommandContextFactory.getInstance(CommandContextFactory.java:46)
	at com.redhat.installer.postinstall.ServerCommands.<init>(ServerCommands.java:142)
	at com.redhat.installer.postinstall.ServerCommands.createSession(ServerCommands.java:214)
	at com.redhat.installer.postinstall.ServerShutdownHelper.shutdownServer(ServerShutdownHelper.java:87)
	at com.redhat.installer.postinstall.ServerShutdownHelper.shutdownServer(ServerShutdownHelper.java:72)
	at com.redhat.installer.postinstall.ServerShutdownHelper.run(ServerShutdownHelper.java:51)
	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 com.izforge.izpack.installer.ProcessPanelWorker$ExecutableClass.run(ProcessPanelWorker.java:765)
	at com.izforge.izpack.installer.ProcessPanelWorker$ProcessingJob.run(ProcessPanelWorker.java:516)
	at com.izforge.izpack.installer.ProcessPanelWorker.runJob(ProcessPanelWorker.java:462)
	at com.izforge.izpack.installer.ProcessPanelWorker.run(ProcessPanelWorker.java:401)
	at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.ClassCastException: org.jboss.as.cli.impl.CommandContextFactoryImpl cannot be cast to org.jboss.as.cli.CommandContextFactory
	at org.jboss.as.cli.CommandContextFactory.getInstance(CommandContextFactory.java:44)
	... 14 more

Comment 11 Thomas Hauser 2013-10-21 16:04:22 UTC
I cannot reproduce this issue on F18 with the latest installer.

Comment 12 Thomas Hauser 2013-11-13 17:10:49 UTC
I believe this issue to be resolved.

Comment 13 Pavol Srna 2013-12-12 13:39:18 UTC
Verified in ER7.