Bug 1010266 - Failed to initialize the CommandContext.
Summary: Failed to initialize the CommandContext.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: Installer
Version: 6.0.0 GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER7
: 6.0.0
Assignee: Thomas Hauser
QA Contact: Pavol Srna
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-20 12:10 UTC by Pavol Srna
Modified: 2014-02-06 15:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)
screenshot (208.76 KB, image/png)
2013-09-20 12:13 UTC, Pavol Srna
no flags Details
jstack-maven (11.68 KB, text/plain)
2013-09-23 18:10 UTC, Pavol Srna
no flags Details
jstack-server (8.21 KB, text/plain)
2013-09-23 18:11 UTC, Pavol Srna
no flags Details
jstack-server2 (13.10 KB, text/plain)
2013-09-23 18:11 UTC, Pavol Srna
no flags Details

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.


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