Bug 1146415 - GroovyCastException when starting adminshell
Summary: GroovyCastException when starting adminshell
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Teiid
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER3
: 6.1.0
Assignee: Nick Cross
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-25 08:42 UTC by Filip Elias
Modified: 2016-02-10 08:58 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
DV 6.1 ER2
Last Closed: 2016-02-10 08:58:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-3145 0 Major Closed GroovyCastException when starting adminshell 2015-06-23 15:53:11 UTC

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


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