You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sirona.apache.org by Rahul Sharma <ra...@gmail.com> on 2013/12/07 08:14:55 UTC

Build errors with JDK7

Hi,

I am trying to build the project. The build works fine with JDK 6. But with
JDK 7 it is reporting failures in java-agent with the following trace. Any
clue what might be wrong at my end ? I running 1.7.0_13 64 bit version on a
Mint 13 box.

Exception in thread "main" java.lang.VerifyError: (class:
sun/proxy/$Proxy4, method: hashCode signature: ()I) Expecting to find
object/array on stack
at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
at java.lang.Class.getConstructor0(Class.java:2723)
 at java.lang.Class.getConstructor(Class.java:1676)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719)
 at
sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParser.java:258)
at
sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:248)
 at
sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88)
at
sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)
 at java.lang.Class.initAnnotationsIfNecessary(Class.java:3098)
at java.lang.Class.getAnnotation(Class.java:3057)
 at org.junit.internal.MethodSorter.getDeclaredMethods(MethodSorter.java:52)
at org.junit.runners.model.TestClass.<init>(TestClass.java:45)
 at org.junit.runners.ParentRunner.<init>(ParentRunner.java:75)
at
org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:57)
 at
org.apache.sirona.javaagent.JavaAgentRunner$1.<init>(JavaAgentRunner.java:56)
at org.apache.sirona.javaagent.JavaAgentRunner.main(JavaAgentRunner.java:56)
Tests run: 8, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 1.851 sec
<<< FAILURE! - in org.apache.test.sirona.javaagent.SimpleTest
ensureStaticBlocksAreKept(org.apache.test.sirona.javaagent.SimpleTest)
 Time elapsed: 0.296 sec  <<< ERROR!
java.lang.RuntimeException: exit code = 1
at
org.apache.sirona.javaagent.JavaAgentRunner.executeMethod(JavaAgentRunner.java:119)
at
org.apache.sirona.javaagent.JavaAgentRunner.access$200(JavaAgentRunner.java:47)
 at
org.apache.sirona.javaagent.JavaAgentRunner$2.evaluate(JavaAgentRunner.java:88)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
 at

regards
Rahul

Re: Build errors with JDK7

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

Only tested with last java 1.7 version but it builds. Are you sure you
have JAVA_HOME set to a java 7 too? the test starts another JVM based
on this environment variable value. If not a java 7 it can fail.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2013/12/7 Rahul Sharma <ra...@gmail.com>:
> Hi,
>
> I am trying to build the project. The build works fine with JDK 6. But with
> JDK 7 it is reporting failures in java-agent with the following trace. Any
> clue what might be wrong at my end ? I running 1.7.0_13 64 bit version on a
> Mint 13 box.
>
> Exception in thread "main" java.lang.VerifyError: (class:
> sun/proxy/$Proxy4, method: hashCode signature: ()I) Expecting to find
> object/array on stack
> at java.lang.Class.getDeclaredConstructors0(Native Method)
>  at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
> at java.lang.Class.getConstructor0(Class.java:2723)
>  at java.lang.Class.getConstructor(Class.java:1676)
> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719)
>  at
> sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParser.java:258)
> at
> sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:248)
>  at
> sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88)
> at
> sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)
>  at java.lang.Class.initAnnotationsIfNecessary(Class.java:3098)
> at java.lang.Class.getAnnotation(Class.java:3057)
>  at org.junit.internal.MethodSorter.getDeclaredMethods(MethodSorter.java:52)
> at org.junit.runners.model.TestClass.<init>(TestClass.java:45)
>  at org.junit.runners.ParentRunner.<init>(ParentRunner.java:75)
> at
> org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:57)
>  at
> org.apache.sirona.javaagent.JavaAgentRunner$1.<init>(JavaAgentRunner.java:56)
> at org.apache.sirona.javaagent.JavaAgentRunner.main(JavaAgentRunner.java:56)
> Tests run: 8, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 1.851 sec
> <<< FAILURE! - in org.apache.test.sirona.javaagent.SimpleTest
> ensureStaticBlocksAreKept(org.apache.test.sirona.javaagent.SimpleTest)
>  Time elapsed: 0.296 sec  <<< ERROR!
> java.lang.RuntimeException: exit code = 1
> at
> org.apache.sirona.javaagent.JavaAgentRunner.executeMethod(JavaAgentRunner.java:119)
> at
> org.apache.sirona.javaagent.JavaAgentRunner.access$200(JavaAgentRunner.java:47)
>  at
> org.apache.sirona.javaagent.JavaAgentRunner$2.evaluate(JavaAgentRunner.java:88)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>  at
>
> regards
> Rahul