Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7023056

NPE from sun.security.util.ManifestEntryVerifier.verify during Maven build

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b138
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description

      FULL PRODUCT VERSION :
      java version "1.7.0-ea"
      Java(TM) SE Runtime Environment (build 1.7.0-ea-b130)
      Java HotSpot(TM) Server VM (build 21.0-b02, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux jglick-laptop 2.6.32-28-generic-pae #55-Ubuntu SMP Mon Jan 10 22:34:08 UTC 2011 i686 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      Running a Maven build of Glassfish sources fails using JDK 7.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Check out Glassfish trunk sources:

      https://svn.dev.java.net/svn/glassfish-svn/trunk/v3@43060

      Using Maven 3.0.3-RC1, do some setup:

      mvn -Prelease-phase1 -DskipTests=true install

      Now run:

      mvn -N validate

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      On JDK 6, the last step can give a normal error from Maven "Could not find artifact...". But no stack traces are printed.
      ACTUAL -
      On JDK 7, I see several stack traces which prevent the build from running:

      java.lang.NullPointerException
      at java.util.Hashtable.remove(Hashtable.java:474)
      at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:226)


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      [INFO] Scanning for projects...
      Feb 28, 2011 12:55:53 PM com.google.inject.internal.MessageProcessor visit
      INFO: An exception was caught and reported. Message: java.lang.NullPointerException
      java.lang.NullPointerException
      at java.util.Hashtable.remove(Hashtable.java:474)
      at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:226)
      at java.util.jar.JarVerifier.processEntry(JarVerifier.java:217)
      at java.util.jar.JarVerifier.update(JarVerifier.java:204)
      at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:425)
      at java.io.FilterInputStream.read(FilterInputStream.java:133)
      at java.util.jar.Manifest$FastInputStream.fill(Manifest.java:439)
      at java.util.jar.Manifest$FastInputStream.readLine(Manifest.java:375)
      at java.util.jar.Manifest$FastInputStream.readLine(Manifest.java:407)
      at java.util.jar.Attributes.read(Attributes.java:376)
      at java.util.jar.Manifest.read(Manifest.java:251)
      at java.util.jar.Manifest.<init>(Manifest.java:69)
      at org.sonatype.guice.bean.reflect.URLClassSpace.getClassPathEntries(URLClassSpace.java:293)
      at org.sonatype.guice.bean.reflect.URLClassSpace.expandClassPath(URLClassSpace.java:225)
      at org.sonatype.guice.bean.reflect.URLClassSpace.getClassPath(URLClassSpace.java:186)
      at org.sonatype.guice.bean.reflect.URLClassSpace.findEntries(URLClassSpace.java:128)
      at org.sonatype.guice.plexus.scanners.PlexusXmlScanner.scan(PlexusXmlScanner.java:94)
      at org.sonatype.guice.plexus.binders.PlexusXmlBeanModule.configure(PlexusXmlBeanModule.java:91)
      at org.sonatype.guice.plexus.binders.PlexusBindingModule.configure(PlexusBindingModule.java:66)
      at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
      at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
      at com.google.inject.spi.Elements.getElements(Elements.java:101)
      at com.google.inject.spi.Elements.getElements(Elements.java:78)
      at org.sonatype.guice.bean.binders.MergedModule.configure(MergedModule.java:54)
      at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
      at com.google.inject.spi.Elements.getElements(Elements.java:101)
      at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:132)
      at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
      at com.google.inject.Guice.createInjector(Guice.java:95)
      at com.google.inject.Guice.createInjector(Guice.java:72)
      at com.google.inject.Guice.createInjector(Guice.java:62)
      at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:450)
      at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java:430)
      at org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(DefaultProjectBuildingHelper.java:269)
      at org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled(DefaultModelBuildingListener.java:106)
      at org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire(ModelBuildingEventCatapult.java:43)
      at org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelBuilder.java:1041)
      at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:391)
      at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)
      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:536)
      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:542)
      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:542)
      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:328)
      at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
      at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:581)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:233)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:613)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)


      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              weijun Weijun Wang
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: