[jboss-jira] [JBoss JIRA] (DROOLS-3715) Zipkiemodule nullpointerexception

Tibor Zimányi (Jira) issues at jboss.org
Mon Mar 18 04:17:01 EDT 2019


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

Tibor Zimányi commented on DROOLS-3715:
---------------------------------------

[~lukaszkrot] could you please try with the latest master? I fixed the path for now here [1]. You need to rebuild the Drools repository to get the new jars. The fix is in drools-compiler module. I will leave the issue open for now to get a confirmation from you, that it is fixed also for your case. 

[1] https://github.com/kiegroup/drools/pull/2282

> Zipkiemodule nullpointerexception
> ---------------------------------
>
>                 Key: DROOLS-3715
>                 URL: https://issues.jboss.org/browse/DROOLS-3715
>             Project: Drools
>          Issue Type: Bug
>    Affects Versions: 7.16.0.Final, 7.17.0.Final
>            Reporter: Łukasz Szmolke
>            Assignee: Tibor Zimányi
>            Priority: Major
>
> o   During ZipKieModule loading in “org.drools.compiler.kie.builder.impl.ZipKieModule:142” nullpointerexception is thrown:
>  
>     urlPath = urlPath.substring( urlPath.lastIndexOf( '!' ) + 1 );
>     ArrayList<ZipEntry> entries = new ArrayList<>();
>     // read jar file from uber-jar
>     InputStream in = this.getClass().getResourceAsStream(urlPath); // nullpointerexception
>  
> For example full UrlPath on windows to internal .jar is:
> C:\Users\xbbnv0c\IdeaProjects\ais-data-exchange\data-exchange-app\target\data-exchange-app-1.0.1-SNAPSHOT.jar!\BOOT-INF\lib\data-exchange-brms-1.0.1-SNAPSHOT.jar
> So the result of this first line will be:
> \BOOT-INF\lib\data-exchange-brms-1.0.1-SNAPSHOT.jar
> It will be perfect, but during accessing internal resource file separator should be “/” not “\”. So InputStream in = null.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jboss-jira mailing list