You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/05/18 13:26:54 UTC

[Bug 59566] New: NPE from StandardJarScanner for JARs without a manifest

https://bz.apache.org/bugzilla/show_bug.cgi?id=59566

            Bug ID: 59566
           Summary: NPE from StandardJarScanner for JARs without a
                    manifest
           Product: Tomcat 8
           Version: 8.0.35
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Util
          Assignee: dev@tomcat.apache.org
          Reporter: derbeth@interia.pl

To reproduce:
1. Download the JAR from
http://mvnrepository.org/artifact/javax.inject/javax.inject/1 and copy it to
apache-tomcat-8.0.35/lib/
2. Start Tomcat

Caused by: java.lang.NullPointerException: null
    at
org.apache.tomcat.util.scan.StandardJarScanner.processManifest(StandardJarScanner.java:369)
    at
org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:324)
    at
org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:273)
    at
org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1887)
    at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1127)
    at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)
    at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:306)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
    at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5171)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    ... 6 common frames omitted


The JAR does not contain META-INF/ and jar.getManifest() returns null.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 59566] NPE from StandardJarScanner for JARs without a manifest

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59566

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Already reported to the dev list and fixed for the next release.

There are multiple potential work-arounds. The simplest is to skip the scan for
that JAR.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 59566] NPE from StandardJarScanner for JARs without a manifest

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59566

Remy Maucherat <re...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexanderv@gmx.net

--- Comment #2 from Remy Maucherat <re...@apache.org> ---
*** Bug 59606 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org