Bug 1035775

Summary: NPE when searching for pom.xml
Product: [Retired] JBoss BRMS Platform 6 Reporter: Ivo Bek <ibek>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: etirelli, ibek, pzapataf
Target Milestone: ER6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
BPMS 6.0.0.ER5
Last Closed: 2014-08-06 20:19:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1035780, 1036556    
Attachments:
Description Flags
springapp.war
none
springframework.zip
none
server log none

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