[
https://issues.jboss.org/browse/TEIID-3204?page=com.atlassian.jira.plugin...
]
Van Halbert commented on TEIID-3204:
------------------------------------
Think I found the problem and confirm it:
- issue: Teiid / adminshell is built with 1.6 (or 1.7 with 1.6 compatibility) and then
run with JDK 1.7
https://jira.codehaus.org/browse/GROOVY-6080
I confirmed this issue by running with 1.6 and getting the correct error:
===> [import static org.teiid.adminshell.AdminShell.*; import static
org.teiid.adminshell.GroovySqlExtensions.*; import org.teiid.adminapi.*;]
FATAL: org.codehaus.groovy.tools.shell.CommandException: File not found: xx.xx
org.codehaus.groovy.tools.shell.CommandException: File not found: xx.xx
I also confirmed Teiid is built with JDK 1.7, with 1.6 compatibility with groovy 1.7.2.
Admin shell throws an IncompatibleClassChangeError
--------------------------------------------------
Key: TEIID-3204
URL:
https://issues.jboss.org/browse/TEIID-3204
Project: Teiid
Issue Type: Bug
Affects Versions: 8.7.1
Environment: OS: fedora 20
arch: x86_64
java: oracle 1.7
Reporter: Juraj DurĂ¡ni
Assignee: Van Halbert
Admin shell throws an IncompatibleClassChangeError when wrong path to groovy script is
provided along with load command.
Actual result:
===> [import static org.teiid.adminshell.AdminShell.*; import static
org.teiid.adminshell.GroovySqlExtensions.*; import org.teiid.adminapi.*;]
FATAL: java.lang.IncompatibleClassChangeError: the number of constructors during runtime
and compile time for java.lang.Exception do not match. Expected 4 but got 5
java.lang.IncompatibleClassChangeError: the number of constructors during runtime and
compile time for java.lang.Exception do not match. Expected 4 but got 5
at
groovy.lang.MetaClassImpl.selectConstructorAndTransformArguments(MetaClassImpl.java:1406)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.selectConstructorAndTransformArguments(ScriptBytecodeAdapter.java:237)
at org.codehaus.groovy.tools.shell.CommandException.<init>(Command.groovy:60)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
....
....
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)