You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Dennis Kieselhorst (JIRA)" <ji...@apache.org> on 2019/02/08 10:27:00 UTC

[jira] [Commented] (OWB-1280) NPE in filterExcludedJars

    [ https://issues.apache.org/jira/browse/OWB-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16763475#comment-16763475 ] 

Dennis Kieselhorst commented on OWB-1280:
-----------------------------------------

Please use the second patch, I've no rights to remove the first one which results in a subsequent error:
{noformat}
Caused by: org.apache.webbeans.exception.WebBeansDeploymentException: java.lang.UnsupportedOperationException: unsupported archive type: war:file:/D:/dev/opensource-projects/geronimo-openapi/geronimo-openapi-impl/target/meecrowave/temp/ROOT.war*/WEB-INF/classes/
    at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:159)
    at org.apache.meecrowave.openwebbeans.OWBTomcatWebScannerService.scan(OWBTomcatWebScannerService.java:134)
    at org.apache.meecrowave.tomcat.MeecrowaveContextConfig.webConfig(MeecrowaveContextConfig.java:118)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:768)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301)
    at org.apache.meecrowave.tomcat.MeecrowaveContextConfig.lifecycleEvent(MeecrowaveContextConfig.java:165)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5029)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    ... 109 more
Caused by: java.lang.UnsupportedOperationException: unsupported archive type: war:file:/D:/dev/opensource-projects/geronimo-openapi/geronimo-openapi-impl/target/meecrowave/temp/ROOT.war*/WEB-INF/classes/
    at org.apache.xbean.finder.archive.ClasspathArchive.archive(ClasspathArchive.java:87)
    at org.apache.webbeans.corespi.scanner.xbean.CdiArchive.<init>(CdiArchive.java:67)
    at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.initFinder(AbstractMetaDataDiscovery.java:115)
    at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:155)
    ... 117 more{noformat}

> NPE in filterExcludedJars
> -------------------------
>
>                 Key: OWB-1280
>                 URL: https://issues.apache.org/jira/browse/OWB-1280
>             Project: OpenWebBeans
>          Issue Type: Bug
>    Affects Versions: 2.0.10
>            Reporter: Dennis Kieselhorst
>            Priority: Major
>             Fix For: 2.0.11
>
>         Attachments: OWB-1280_fix_NPE.patch, OWB-1280_fix_NPE.patch
>
>
> {{I'm seeing this during geronimo-openapi TCK test on Windows (yeah, sometimes I have to work with this OS :)) for URL war:file:/D:/dev/opensource-projects/geronimo-openapi/geronimo-openapi-impl/target/meecrowave/temp/ROOT.war*/WEB-INF/classes/}}
> {noformat}
> Caused by: org.apache.webbeans.exception.WebBeansDeploymentException: java.lang.NullPointerException
>     at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:158)
>     at org.apache.meecrowave.openwebbeans.OWBTomcatWebScannerService.scan(OWBTomcatWebScannerService.java:134)
>     at org.apache.meecrowave.tomcat.MeecrowaveContextConfig.webConfig(MeecrowaveContextConfig.java:118)
>     at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:768)
>     at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301)
>     at org.apache.meecrowave.tomcat.MeecrowaveContextConfig.lifecycleEvent(MeecrowaveContextConfig.java:165)
>     at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
>     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5029)
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>     ... 109 more
> Caused by: java.lang.NullPointerException
>     at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.filterExcludedJars(AbstractMetaDataDiscovery.java:270)
>     at org.apache.meecrowave.openwebbeans.OWBTomcatWebScannerService.filterExcludedJars(OWBTomcatWebScannerService.java:271)
>     at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.registerBeanArchives(AbstractMetaDataDiscovery.java:216)
>     at org.apache.webbeans.web.scanner.WebScannerService.configure(WebScannerService.java:61)
>     at org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:153)
>     ... 117 more{noformat}
> Could we please add a null check?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)