[
http://jira.codehaus.org/browse/SUREFIRE-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Filipchik reopened SUREFIRE-365:
------------------------------------------
I played with configuration and get following:
My tests started, but - i use JPA in project and use javaagent:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!--<version>2.4-SNAPSHOT</version>-->
<configuration>
<forkMode>once</forkMode>
<argLine>-javaagent:${project.basedir}/../../openjpa_agent/openjpa-1.0.0.jar=jdoEnhance=true
</argLine>
<!--<argLine>-javaagent:${project.basedir}/../../openjpa_agent/spring-agent-2.0.6.jar</argLine>-->
<!--system class loader required to pass javaagent to all
tests -->
<useSystemClassLoader>true</useSystemClassLoader>
</configuration>
</plugin>
Today it fails with:
[INFO] Surefire report directory:
E:\java\LANIT\PUBSER\checkout\trunk\dev\modules\registry\target\surefire-rep
orts
[INFO] Building jar: C:\WINDOWS\TEMP\surefirebooter16896.jar
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:585)
at
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:141)
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/lang/exception/NestableRuntimeException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
FATAL ERROR in native method: processing of -javaagent failed
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
org.apache.openjpa.enhance.PCEnhancerAgent.premain(PCEnhancerAgent.java:61)
... 5 more
Exception in thread "main"
When i disable javaagent - some of working tests fail and last 3 tests fail
with java.lang.OutOfMemoryError: Java heap space
> I have exactly the same problem
> -------------------------------
>
> Key: SUREFIRE-365
> URL: http://jira.codehaus.org/browse/SUREFIRE-365
> Project: Maven Surefire
> Issue Type: Sub-task
> Components: plugin
> Reporter: Alexander Filipchik
> Priority: Blocker
>
> I have exactly the same problem.
> in Friday all works fine. But today i get exception:
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> Couldn't find a version in [1.0-alpha-7, 1.0-alpha-8, 1.0-alpha-9] to match
> range [1.0-alpha-10-SNAPSHOT,1.0-a
> lpha-10-SNAPSHOT]
> org.codehaus.plexus:plexus-archiver:jar:null
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> codehaus.snapshots (http://snapshots.repository.codehaus.org),
> apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
> delta (http://delta/maven-proxy/repository/)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira