Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3816

ExtensionIndexService throws NPE while reading extensions on the IBM jdk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.0.0.Beta2
    • 5.0.0.Alpha7
    • Server
    • None

      https://github.com/wildfly/wildfly-core/blob/5.0.0.Alpha7/server/src/main/java/org/jboss/as/server/moduleservice/ExtensionIndexService.java#L94 reads extensions from jars manifest like:

      File jar = new File(<jar>)
      final JarFile jarFile = new JarFile(jar);
      final Manifest manifest = jarFile.getManifest();
      final Attributes mainAttributes = manifest.getMainAttributes();
      ...
      

      The latest IBM jdk 8.0-5.11 (and possible some of previous releases) contains some jars [1] where manifest.getMainAttributes(); throws NPE, causing deploy operation of archive with Extension-List to fail, see WFLY-10349.

      [1]
      ibm-java-8.0-5.11/jre/lib/ext/traceformat.jar: java.lang.NullPointerException
      ibm-java-8.0-5.11/jre/lib/ext/dtfj.jar: java.lang.NullPointerException
      ibm-java-8.0-5.11/jre/lib/ext/dtfjview.jar: java.lang.NullPointerException

            pkremens@redhat.com Petr Kremensky (Inactive)
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: