dev@glassfish.java.net

Re: error in jmxremote_optional when building V3 from scratch

From: Bhakti Mehta <Bhakti.Mehta_at_Sun.COM>
Date: Mon, 14 Jul 2008 12:38:17 -0700

This is a random jvm issue which we have observed on certain hudson
builds. Kohsuke Terena have run into it and most of the times it is
resolved by setting the -Xmx value of MAVEN_OPTS to a different value
than your current one, see if that will help
I was looking for more info and think maybe it is related to
http://monaco.sfbay/detail.jsf?cr=4843994 ?
Regards,
Bhakti
Anissa Lam wrote:
>
> I cleaned up my ~/.m2/repository, and build v3 which i just checked out.
> Got the following error.
>
> Any idea ?
>
> thanks
> Anissa
>
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] Building jmxremote_optional repackaged as a module
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://download.java.net/maven/glassfish/org/jvnet/opendmk/jmxremote_optional/1.0_01-ea/jmxremote_optional-1.0_01-ea.pom
>
> 960b downloaded
> Downloading:
> http://download.java.net/maven/glassfish/org/jvnet/opendmk/jmxremote_optional/1.0_01-ea/jmxremote_optional-1.0_01-ea.jar
>
> 512K downloaded
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [jar:jar]
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] Building jar:
> /Users/anilam/Awork/V3/v3/distributions/external/jmxremote_optional/target/jmxremote_optional-repackaged-10.0-SNAPSHOT.jar
>
> [INFO] [bundle:bundle {execution: osgi-bundle}]
> [INFO] Expanding:
> /Users/anilam/Awork/V3/v3/distributions/external/jmxremote_optional/target/jmxremote_optional-repackaged-10.0-SNAPSHOT.jar
> into
> /Users/anilam/Awork/V3/v3/distributions/external/jmxremote_optional/target/classes
>
> [INFO] Preparing source:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [INFO] No goals needed for project - skipping
> [INFO] [source:jar {execution: attach-sources}]
> [INFO] Building jar:
> /Users/anilam/Awork/V3/v3/distributions/external/jmxremote_optional/target/jmxremote_optional-repackaged-10.0-SNAPSHOT-sources.jar
>
> [INFO] [install:install]
> [INFO] Installing
> /Users/anilam/Awork/V3/v3/distributions/external/jmxremote_optional/target/jmxremote_optional-repackaged-10.0-SNAPSHOT.jar
> to
> /Users/anilam/.m2/repository/org/glassfish/external/jmxremote_optional-repackaged/10.0-SNAPSHOT/jmxremote_optional-repackaged-10.0-SNAPSHOT.jar
>
> [INFO] Installing
> /Users/anilam/Awork/V3/v3/distributions/external/jmxremote_optional/target/jmxremote_optional-repackaged-10.0-SNAPSHOT-sources.jar
> to
> /Users/anilam/.m2/repository/org/glassfish/external/jmxremote_optional-repackaged/10.0-SNAPSHOT/jmxremote_optional-repackaged-10.0-SNAPSHOT-sources.jar
>
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] Building Glassfish MBeanServer support
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from glassfish-repository
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from glassfish-repository-wsinterop
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from java-dev-repository
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from repo1.maven.org
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from maven2.java.net
> [INFO] snapshot org.glassfish.common:internal-api:10.0-SNAPSHOT:
> checking for updates from maven2.java.net-backup
> [INFO] [hk2:hk2-compile]
> [INFO] Compiling 10 source files to
> /Users/anilam/Awork/V3/v3/common/mbeanserver/target/classes
> Note:
> /Users/anilam/Awork/V3/v3/common/mbeanserver/src/main/java/org/glassfish/admin/mbeanserver/AppserverMBeanServer.java
> uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note:
> /Users/anilam/Awork/V3/v3/common/mbeanserver/src/main/java/org/glassfish/admin/mbeanserver/Booter.java
> uses unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> [INFO] [bundle:manifest {execution: bundle-manifest}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] jzentry == 0,
> jzfile = 3698112,
> total = 7,
> name =
> /Users/anilam/Awork/V3/v3/distributions/external/jmxremote_optional/target/jmxremote_optional-repackaged-10.0-SNAPSHOT.jar,
>
> i = 2,
> message = invalid LOC header (bad signature)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.InternalError: jzentry == 0,
> jzfile = 3698112,
> total = 7,
> name =
> /Users/anilam/Awork/V3/v3/distributions/external/jmxremote_optional/target/jmxremote_optional-repackaged-10.0-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:670)
>
> 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: 5 minutes 2 seconds
> [INFO] Finished at: Mon Jul 14 12:21:42 PDT 2008
> [INFO] Final Memory: 40M/73M
> [INFO]
> ------------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>