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)
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.
Handled in IPDV-63 and fixed by SHA daf1236d5cf7be61158beb2abea8b45904450318
Steven Hawkins <shawkins> updated the status of jira TEIID-3145 to Resolved
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.
Steven Hawkins <shawkins> updated the status of jira TEIID-3145 to Closed