[
https://jira.codehaus.org/browse/SUREFIRE-972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=322025#comment-322025
]
Benson Margulies commented on SUREFIRE-972:
-------------------------------------------
I forced the use of the 47 provider and got the somewhat more illuminating:
{noformat}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
-------------------------------------------------------
T E S T S
-------------------------------------------------------
parallel='none', perCoreThreadCount=true, threadCount=2,
useUnlimitedThreads=false
Exception in thread "ThreadedStreamConsumer" java.lang.RuntimeException:
null,null,null,Could not initialize class
com.basistech.jug.upload.SolrMimicIT,null,Could not initialize class
com.basistech.jug.upload.SolrMimicIT,Could not initialize class
com.basistech.jug.upload.SolrMimicIT,java.lang.NoClassDefFoundError: Could not
initialize class com.basistech.jug.upload.SolrMimicIT\n\tat
java.lang.Class.forName0(Native Method)\n\tat
java.lang.Class.forName(Class.java:169)\n\tat
org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:62)\n\tat
org.apache.maven.surefire.report.SmartStackTraceParser.<init>(SmartStackTraceParser.java:52)\n\tat
org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)\n\tat
org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)\n\tat
org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)\n\tat
org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)\n\tat
org.apache.maven.surefire.booter.ForkingRunListener.testError(ForkingRunListener.java:132)\n\tat
org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:111)\n\tat
org.apache.maven.surefire.junitcore.NonConcurrentRunListener.testFailure(NonConcurrentRunListener.java:111)\n\tat
org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)\n\tat
org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)\n\tat
org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)\n\tat
org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)\n\tat
org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)\n\tat
org.junit.runners.ParentRunner.run(ParentRunner.java:315)\n\tat
org.junit.runners.Suite.runChild(Suite.java:127)\n\tat
org.junit.runners.Suite.runChild(Suite.java:26)\n\tat
org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)\n\tat
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)\n\tat
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)\n\tat
org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)\n\tat
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)\n\tat
org.junit.runners.ParentRunner.run(ParentRunner.java:309)\n\tat
org.junit.runner.JUnitCore.run(JUnitCore.java:160)\n\tat
org.junit.runner.JUnitCore.run(JUnitCore.java:138)\n\tat
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createReqestAndRun(JUnitCoreWrapper.java:139)\n\tat
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:111)\n\tat
org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:84)\n\tat
org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:141)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\n\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\n\tat
java.lang.reflect.Method.invoke(Method.java:597)\n\tat
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)\n\tat
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:158)\n\tat
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)\n\tat
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)\n\tat
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)\n
at
org.apache.maven.plugin.surefire.booterclient.output.ForkClient.createReportEntry(ForkClient.java:210)
at
org.apache.maven.plugin.surefire.booterclient.output.ForkClient.consumeLine(ForkClient.java:120)
at
org.apache.maven.plugin.surefire.booterclient.output.ThreadedStreamConsumer$Pumper.run(ThreadedStreamConsumer.java:67)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NullPointerException: source is null
at
org.apache.maven.surefire.report.SimpleReportEntry.<init>(SimpleReportEntry.java:58)
at
org.apache.maven.surefire.report.CategorizedReportEntry.reportEntry(CategorizedReportEntry.java:53)
at
org.apache.maven.plugin.surefire.booterclient.output.ForkClient.createReportEntry(ForkClient.java:206)
... 3 more
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[WARNING] File encoding has not been set, using platform encoding utf-8, i.e.
build is platform dependent!
[INFO]
[INFO] --- maven-failsafe-plugin:2.14:verify (default) @ upload-service ---
[INFO] Failsafe report directory:
/Users/benson/x/oap/harvest/upload/upload-service/target/failsafe-reports
[WARNING] File encoding has not been set, using platform encoding utf-8, i.e.
build is platform dependent!
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
upload-service ---
[INFO] Installing
/Users/benson/x/oap/harvest/upload/upload-service/target/upload-service.war to
/Users/benson/.m2/repository/com/basistech/jug/upload-service/0.9.102-SNAPSHOT/upload-service-0.9.102-SNAPSHOT.war
[INFO] Installing /Users/benson/x/oap/harvest/upload/upload-service/pom.xml to
/Users/benson/.m2/repository/com/basistech/jug/upload-service/0.9.102-SNAPSHOT/upload-service-0.9.102-SNAPSHOT.pom
[INFO] Installing
/Users/benson/x/oap/harvest/upload/upload-service/target/upload-service-classes.jar
to
/Users/benson/.m2/repository/com/basistech/jug/upload-service/0.9.102-SNAPSHOT/upload-service-0.9.102-SNAPSHOT-classes.jar
[INFO] Installing
/Users/benson/x/oap/harvest/upload/upload-service/target/upload-service-tests.jar
to
/Users/benson/.m2/repository/com/basistech/jug/upload-service/0.9.102-SNAPSHOT/upload-service-0.9.102-SNAPSHOT-tests.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.188s
[INFO] Finished at: Fri Mar 15 20:21:53 EDT 2013
[INFO] Final Memory: 25M/81M
{noformat}
> Bizarre NoClassDefFoundError in failsafe
> ----------------------------------------
>
> Key: SUREFIRE-972
> URL: https://jira.codehaus.org/browse/SUREFIRE-972
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.14
> Reporter: Benson Margulies
>
> I'm tentatively stumped here and looking for debugging advice.
> {noformat}
> Running com.basistech.jug.upload.SolrMimicIT
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.112 sec <<<
> FAILURE!
> com.basistech.jug.upload.SolrMimicIT Time elapsed: 0.112 sec <<< ERROR!
> java.lang.NoClassDefFoundError: Could not initialize class
> com.basistech.jug.upload.SolrMimicIT
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> at
> org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:62)
> at
> org.apache.maven.surefire.report.SmartStackTraceParser.<init>(SmartStackTraceParser.java:52)
> at
> org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
> at
> org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
> at
> org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
> at
> org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
> at
> org.apache.maven.surefire.booter.ForkingRunListener.testError(ForkingRunListener.java:132)
> at
> org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:111)
> at
> org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
> at
> org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
> at
> org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
> at
> org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
> at
> org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:315)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
> Results :
> Tests in error:
> JUnit4Provider.invoke:124->executeTestSet:153->execute:264 û
> NoClassDefFound C...
> {noformat}
--
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