Bug 1035775 - NPE when searching for pom.xml
Summary: NPE when searching for pom.xml
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER6
: 6.0.0
Assignee: Mario Fusco
QA Contact: Radovan Synek
URL:
Whiteboard:
Depends On:
Blocks: 1035780 1036556
TreeView+ depends on / blocked
 
Reported: 2013-11-28 12:59 UTC by Ivo Bek
Modified: 2014-08-06 20:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
BPMS 6.0.0.ER5
Last Closed: 2014-08-06 20:19:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
springapp.war (4.53 MB, application/java-archive)
2013-11-28 12:59 UTC, Ivo Bek
no flags Details
springframework.zip (2.74 MB, application/zip)
2013-11-28 13:00 UTC, Ivo Bek
no flags Details
server log (8.85 KB, text/x-log)
2013-11-28 13:01 UTC, Ivo Bek
no flags Details

Description Ivo Bek 2013-11-28 12:59:27 UTC
Created attachment 830217 [details]
springapp.war

Description of problem:

I have an own spring application war and during deployment the kie search for a pom.properties. Though the pom.properties is there, it cannot find it (I'll file another BZ for that), so it tries to generate one from pom.xml but it will never happen due to a NPE.

I get NPE on the line https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java#L228

it's the line (for ( File folder = new File( rootPath ); folder != null; folder = new File( folder.getParent() ) ) {)

How reproducible:

Steps to Reproduce:
1. Unzip the attached springframework.zip into bpms6er5/modules/system/layers/base/org
2. Deploy the attached springapp.war
3. See NPE during the deployment

Comment 1 Ivo Bek 2013-11-28 13:00:59 UTC
Created attachment 830229 [details]
springframework.zip

Comment 2 Ivo Bek 2013-11-28 13:01:20 UTC
Created attachment 830230 [details]
server log

Comment 3 Pedro Zapata 2013-11-29 16:26:55 UTC
I can't see any dependency to kie/drools/jbpm added to jboss-deployment-structure.xml or any jar inside WEB-INF/lib. 

Is there any instruction missing of how to run the example?

I'm not sure but probably the following lines should be added to the <dependencies> tag to at least the get right classes in the classpath.

 <module name="org.kie" />
 <module name="org.drools" />
 <module name="org.jbpm" />
 <module name="org.kie.lib" />

Comment 4 Ivo Bek 2013-12-02 09:32:42 UTC
Hi Pedro,

I put the modules into jboss-deployment-structure.xml but it didn't help. To reproduce the issue, it's enough to just deploy the attached springapp.war. Of course, follow all the steps in description above. Or what instruction do you miss? I assume it obvious to start BPMS 6.0.0.ER5 before the deployment.

Comment 6 Radovan Synek 2014-01-08 14:29:03 UTC
Verified with BRMS-6.0.0.ER7


Note You need to log in before you can comment on or make changes to this bug.