Issue Type: Bug Bug
Assignee: Unassigned
Components: maven-plugin
Created: 29/Jan/15 11:54 AM
Description:

When we have a failure of test cases due to javaagent failure, Jenkins are ignoring the test result and mark the build status as SUCCESS.

Log:

...
...

FATAL ERROR in native method: processing of -javaagent failed
/bin/sh: line 1: 16902 Aborted                 /opt/build/jdk/jdk1.6.0_45/jre/bin/java -javaagent:/data/hudson/jobs/foo/workspace/.repository/fixme/jmockit/1.0/jmockit-1.0.jar -jar /tmp/surefirebooter3725770228654412047.jar /tmp/surefire2623483402548392725tmp /tmp/surefire6196487644916225973tmp
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
	at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Caused by: java.lang.NoSuchMethodError: mockit.internal.RedefinitionEngine.setUpMock(Ljava/lang/Class;)V
	at mockit.internal.ToolLoader.setUpExternalMock(ToolLoader.java:104)
	at mockit.internal.ToolLoader.visitEnd(ToolLoader.java:92)
	at org.objectweb.asm2.ClassReader.accept(ClassReader.java:1147)
	at org.objectweb.asm2.ClassReader.accept(ClassReader.java:300)
	at mockit.internal.Startup.loadExternalTool(Startup.java:156)
	at mockit.internal.Startup.initialize(Startup.java:114)
	at mockit.internal.Startup.premain(Startup.java:96)
	... 6 more
FATAL ERROR in native method: processing of -javaagent failed
/bin/sh: line 1: 16925 Aborted                 /opt/build/jdk/jdk1.6.0_45/jre/bin/java -javaagent:/data/hudson/jobs/foo/workspace/.repository/fixme/jmockit/1.0/jmockit-1.0.jar -jar /tmp/surefirebooter4869326884051725104.jar /tmp/surefire9113749607916052890tmp /tmp/surefire4100425927814768287tmp
[ERROR] There are test failures.

...
...

Finished: SUCCESS
Environment: maven-plugin 2.1
jenkins 1.553
Project: Jenkins
Priority: Major Major
Reporter: Wisen Tanasa
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to