Hi,
While using maven-bundle-plugin, fairly regularly I see an error
(details given below) emitted by bnd. The jar file it complains about is
not fixed. Upon subsequent attempt, the error either disappears or it
complains about a different jar file. I am not the only person in my
team who is facing this weired problem. Has anyone else experienced such
a problem? Is there a work around or a solution? It appears to be a
problem in bnd. I will definitely report to bnd folks, but I thought of
checking with the large bnd user base that exists in this community. Who
knows, may be it is a problem that only happens when bnd runs inside
maven? I run maven with -Xmx=512m, so there is sufficient memory for the
program to execute.
[INFO] [bundle:bundle {execution: osgi-bundle}]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] jzentry == 0,
jzfile = 146415400,
total = 8,
name =
/space/ss141213/WS/gf/v3.tp2/javaee-api/javax.xml.soap/target/javax.xml.soap-10.0-tp-2-SNAPSHOT.jar,
i = 2,
message = invalid LOC header (bad signature)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.InternalError: jzentry == 0,
jzfile = 146415400,
total = 8,
name =
/space/ss141213/WS/gf/v3.tp2/javaee-api/javax.xml.soap/target/javax.xml.soap-10.0-tp-2-SNAPSHOT.jar,
i = 2,
message = invalid LOC header (bad signature)
at java.util.zip.ZipFile$3.nextElement(ZipFile.java:429)
at java.util.zip.ZipFile$3.nextElement(ZipFile.java:415)
at aQute.lib.osgi.ZipResource.build(ZipResource.java:41)
at aQute.lib.osgi.ZipResource.build(ZipResource.java:32)
at aQute.lib.osgi.Jar.<init>(Jar.java:35)
at
org.apache.felix.bundleplugin.BundlePlugin.getClasspath(BundlePlugin.java:676)
at
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:227)
at
org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:218)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
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
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 1 second
[INFO] Finished at: Fri Apr 25 14:26:29 IST 2008
[INFO] Final Memory: 24M/43M
[INFO]
------------------------------------------------------------------------
Thanks,
Sahoo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]