| Summary: | Frequent test errors in Jetty :: OSGI :: Test module | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Michael Gorovoy <mgorovoy> | ||||||
| Component: | osgi | Assignee: | Hugues Malphettes <hmalphettes> | ||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | jetty-inbox | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 7.2.x | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
These issues occur on Ubuntu 10.10 Maverick Meerkat with following version of java and maven. $ java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode) $ mvn --version Apache Maven 3.0 (r1004208; 2010-10-04 07:50:56-0400) Java version: 1.6.0_24 Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.35-28-generic" arch: "amd64" Family: "unix" java.lang.RuntimeException: org.ops4j.pax.runner.platform.PlatformException: [mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/1.2.0] is not a valid bundle at org.ops4j.pax.runner.Run.startPlatform(Run.java:675) ... Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:135) at java.util.jar.JarFile.<init>(JarFile.java:114) at org.ops4j.pax.runner.platform.internal.PlatformImpl.validateBundle(PlatformImpl.java:764) Looks like a corrupted download of a jar. Attempting a workspace wipe-out. However I don't see that jar in the workspace: I am not sure that I can delete it to fix this. Cleaning the workspace did fix it: https://hudson.eclipse.org/hudson/job/jetty/961/console Created attachment 195891 [details]
More Surefire test logss
Hugues, I'm continuing to get these test failures on my local machine, even after physically removing the pax-exam modules from both .m2 repository and nexus on my machine to force them to be downloaded from central. I would appreciate any guidance that you could provide to enable me to debug this issue. -Michael Yes Jesse warned me that he changed the version number of the maven-bundle-plugin. The way the manifest are generated is changed. I started to work on that yesterday night but did not complete it. OK should be back to normal now.
3 or 4 hours total and the one line to add for the new maven-bundle-plugin version support was:
<Export-Package>${bundle-symbolic-name}.*;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</Export-Package>
I'm still having the same error locally even with your latest change. Any guidance will be greatly appreciated. I can see it still fail on bamboo@codehaus although it is passing on hudson@eclipse. Here is what I do: cd jetty-trunk mvn clean install -DskipTests=true cd jetty-osgi/test-jetty-osgi mvn clean test Any stack trace or error msg? Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.824 sec <<< FAILURE! testHttpService(org.eclipse.jetty.osgi.boot.TestJettyOSGiBootCore) Time elapsed: 0.685 sec <<< ERROR! java.lang.RuntimeException: org.ops4j.pax.runner.platform.PlatformException: [mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/1.2.0] is not a valid bundle at org.ops4j.pax.runner.Run.startPlatform(Run.java:675) at org.ops4j.pax.runner.Run.start(Run.java:220) at org.ops4j.pax.runner.Run.start(Run.java:176) at org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.start(PaxRunnerTestContainer.java:264) at org.ops4j.pax.exam.junit.internal.JUnit4TestMethod.invoke(JUnit4TestMethod.java:142) at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:105) at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86) at org.ops4j.pax.exam.junit.internal.JUnit4MethodRoadie.runBeforesThenTestThenAfters(JUnit4MethodRoadie.java:60) at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84) at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49) at org.ops4j.pax.exam.junit.JUnit4TestRunner.invokeTestMethod(JUnit4TestRunner.java:246) at org.ops4j.pax.exam.junit.JUnit4TestRunner.runMethods(JUnit4TestRunner.java:196) at org.ops4j.pax.exam.junit.JUnit4TestRunner$2.run(JUnit4TestRunner.java:186) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44) at org.ops4j.pax.exam.junit.JUnit4TestRunner.run(JUnit4TestRunner.java:182) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101) 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 org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at $Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) Caused by: org.ops4j.pax.runner.platform.PlatformException: [mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/1.2.0] is not a valid bundle at org.ops4j.pax.runner.platform.internal.PlatformImpl.validateBundle(PlatformImpl.java:775) at org.ops4j.pax.runner.platform.internal.PlatformImpl.download(PlatformImpl.java:651) at org.ops4j.pax.runner.platform.internal.PlatformImpl.downloadBundles(PlatformImpl.java:407) at org.ops4j.pax.runner.platform.internal.PlatformImpl.start(PlatformImpl.java:186) at org.ops4j.pax.runner.Run.startPlatform(Run.java:671) ... 27 more Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:135) at java.util.jar.JarFile.<init>(JarFile.java:114) at org.ops4j.pax.runner.platform.internal.PlatformImpl.validateBundle(PlatformImpl.java:764) ... 31 more Michael, let me know if it is still happening. I can't reproduce it and the tests pass on hudson@eclipse and bamboo@codehaus |
Created attachment 191840 [details] Surefire test logs Tests in error: listBundles(org.eclipse.jetty.osgi.boot.TestJettyOSGiBootWithJsp) testHttpService(org.eclipse.jetty.osgi.boot.TestJettyOSGiBootCore) ls