Details
-
Bug
-
Resolution: Done
-
Critical
-
6.0.0
Description
Description of problem:
Kie-spring is unable to create a KIE Module when run in EAP 6.1.1, the NPE below is thrown:
java.lang.NullPointerException: null
at java.io.File.<init>(File.java:277)
at org.drools.compiler.kie.builder.impl.ClasspathKieProject.getPomProperties(ClasspathKieProject.java:228)
at org.kie.spring.KModuleBeanFactoryPostProcessor.postProcessBeanFactory(KModuleBeanFactoryPostProcessor.java:93)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:653)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at org.jboss.qa.brms.test.SpringContainerTest.getApplicationContext(SpringContainerTest.java:46)
at org.jboss.qa.brms.test.SpringContainerTest.getApplicationContext(SpringContainerTest.java:36)
at org.jboss.qa.brms.bre.spring.EventListenersTest.getSession(EventListenersTest.java:81)
at org.jboss.qa.brms.bre.spring.EventListenersTest.testProcessEventMemoryListener(EventListenersTest.java:66)
It seems this problem is a part of the problem described in BZ 996144, which was fixed in ER3.
Please see the attached server.log part, it shows that KIE Builder tries to load pom.properties from one of the EAP modules instead of the application WAR:
(http-/127.0.0.1:8080-1) Unable to load pom.properties tried recursing down from/home/mwinkler/QA/jenkins/WORKSPACE/jboss-eap-6.1/modules/system/layers/base/sun/jdk/main/service-loader-resources/
null
Version-Release number of selected component (if applicable):
Drools 6.0.0-SNAPSHOT
BRMS 6.0.0 ER5
EAP 6.1.1
This worked in ER4, marking as a regression.
How reproducible:
I wanted to check this against the test drools-jboss-integration/src/test/java/org/drools/jboss/integration/spring/KieSpringTest.java (it was used to reproduce the problem in ER3), but the test seems currently broken (Arquillian throws a ClassNotFoundException when the test is run).
If the test could be fixed, it would probably reproduce the issue (when run with profile 'arquillian-jbossas-managed'). Please let me know, if there was a problem with fixing this test, I would provide another reproducer.
Attachments
Issue Links
- is blocked by
-
RHBRMS-755 NPE when searching for pom.xml
- Closed