[jboss-jira] [JBoss JIRA] (WFCORE-3816) ExtensionIndexService throws NPE while reading extensions on the IBM jdk

Stuart Douglas (JIRA) issues at jboss.org
Fri May 11 21:10:00 EDT 2018


    [ https://issues.jboss.org/browse/WFCORE-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575113#comment-13575113 ] 

Stuart Douglas commented on WFCORE-3816:
----------------------------------------

What does the stack trace look like? I are you sure it is that the manifest is null?

> ExtensionIndexService throws NPE while reading extensions on the IBM jdk
> ------------------------------------------------------------------------
>
>                 Key: WFCORE-3816
>                 URL: https://issues.jboss.org/browse/WFCORE-3816
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 5.0.0.Alpha7
>         Environment: {noformat}
> java version "1.8.0_161"
> Java(TM) SE Runtime Environment (build 8.0.5.11 - pxa6480sr5fp11-20180326_01(SR5 FP11))
> IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64 Compressed References 20180309_380776 (JIT enabled, AOT enabled)
> OpenJ9   - 49fcaf39
> OMR      - 5cbbadf
> IBM      - 4453dac)
> JCL - 20180319_01 based on Oracle jdk8u161-b12
> {noformat}
>            Reporter: Petr Kremensky
>            Assignee: Petr Kremensky
>
> 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:
> {code:java}
> File jar = new File(<jar>)
> final JarFile jarFile = new JarFile(jar);
> final Manifest manifest = jarFile.getManifest();
> final Attributes mainAttributes = manifest.getMainAttributes();
> ...
> {code}
> The latest [IBM jdk 8.0-5.11|https://developer.ibm.com/javasdk/downloads/sdk8/] (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



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list