pallassgj / bpipe

Automatically exported from code.google.com/p/bpipe
0 stars 1 forks source link

Errors when running Bpipe with JDK7 #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Make any pipeline and try to run it in "test" mode with Java 1.7 / JDK7.

The result is an exception like:

============================================ Stage prep 
============================================
java.lang.reflect.InvocationTargetException
    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:601)
    at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:108)
    at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
Caused by: java.lang.IncompatibleClassChangeError: the number of constructors 
during runtime and compile time for java.lang.RuntimeException do not match. 
Expected 4 but got 5

Note: this problem can occur during other actions; it's just more reproducible 
when running in test mode.

Original issue reported on code.google.com by ssade...@gmail.com on 24 Aug 2012 at 1:59

GoogleCodeExporter commented 9 years ago
The problem here is that compiled Groovy code is not fully backwards compatible 
between JDK6 and JDK7. Since the problem is limited to very isolated classes 
(in our case, just exceptions) we fix it just by moving those classes to Java 
instead.

fixed 0.9.6.2 / 0.9.7

Original comment by ssade...@gmail.com on 24 Aug 2012 at 2:05

GoogleCodeExporter commented 9 years ago

Original comment by ssade...@gmail.com on 24 Aug 2012 at 2:31