Bug 1146415

Summary: GroovyCastException when starting adminshell
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Filip Elias <felias>
Component: TeiidAssignee: Nick Cross <ncross>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: ncross, vhalbert
Target Milestone: ER3Keywords: QA-Closed
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
DV 6.1 ER2
Last Closed: 2016-02-10 08:58:26 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 Filip Elias 2014-09-25 08:42:06 UTC
When I run adminshell.sh, admishell will throw following exception:

Exception in thread "main" org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.codehaus.groovy.tools.shell.util.HelpFormatter@3004baef' with class 'org.codehaus.groovy.tools.shell.util.HelpFormatter' to class 'org.apache.commons.cli.HelpFormatter'
	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:360)
	at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2394)
	at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3335)
	at groovy.lang.MetaClassImpl.setProperties(MetaClassImpl.java:1497)
	at org.codehaus.groovy.runtime.callsite.ConstructorSite$NoParamSite.callConstructor(ConstructorSite.java:122)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
	at org.codehaus.groovy.tools.shell.Main.main(Main.groovy:50)
	at org.teiid.adminshell.GroovyAdminShell.main(GroovyAdminShell.java:30)

Comment 1 Van Halbert 2014-10-13 14:40:50 UTC
After a conversation with Julian, it was agreed the easiest fix for this problem would be for Productization to override the version for Teiid project back to 1.7.2.  No other DV project (i..e, modeshape or other teiid-xx projects) will have this change applied.

Comment 2 Nick Cross 2014-10-15 15:00:11 UTC
Handled in IPDV-63 and fixed by SHA daf1236d5cf7be61158beb2abea8b45904450318

Comment 3 JBoss JIRA Server 2014-11-06 20:05:23 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3145 to Resolved

Comment 4 Van Halbert 2014-11-06 20:16:10 UTC
In the ER3 kit, it contains the 1.7.2 version of the groovy-all jar.  And upon running the adminshell.sh, the error isn't see.

Comment 5 JBoss JIRA Server 2015-06-23 15:53:11 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-3145 to Closed