Bug 1029015 - SY Quickstart rules-interview-container gives NPE when tested through SOAPUI
Summary: SY Quickstart rules-interview-container gives NPE when tested through SOAPUI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: SwitchYard
Version: 6.0.0 GA
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ER8
: 6.0.0
Assignee: David Ward
QA Contact: lvaskova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-11 13:29 UTC by Bernard Tison
Modified: 2014-06-16 23:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-1832 0 Blocker Closed SY Quickstart rules-interview-container gives NPE when tested through SOAPUI 2018-02-14 15:08:05 UTC

Description Bernard Tison 2013-11-11 13:29:18 UTC
Description of problem:


The SY quickstart rules-interview-container is deployed to Fuse Service Works 6.0.0 Beta (mvn jboss-as:deploy).
When testing with SoapUI, a NPE is thrown.

Environment: Linux (Fedora 19), OpenJDK 1.7.0_45


How reproducible:


Steps to Reproduce:
1. Install FSW 6.0.0 Beta
2. Deploy the rules-interview-container quickstart
3. Test the exposed web service with SoapUI.
   * Endpoint URL http://localhost:8080/rules-interview-container/Interview
   * Request xml:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:switchyard-quickstart:rules-interview-container:0.1.0">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:verify>
         <applicant>
            <age>20</age>
            <name>bernard</name>
         </applicant>
      </urn:verify>
   </soapenv:Body>
</soapenv:Envelope>    

Actual results:
NPE 

Caused by: java.lang.NullPointerException
	at org.drools.compiler.kie.builder.impl.KieContainerImpl.newStatelessKieSession(KieContainerImpl.java:359) [drools-compiler-6.0.0-redhat-4.jar:6.0.0-redhat-4]
	at org.drools.compiler.kie.builder.impl.KieContainerImpl.newStatelessKieSession(KieContainerImpl.java:350) [drools-compiler-6.0.0-redhat-4.jar:6.0.0-redhat-4]
	at org.switchyard.component.common.knowledge.session.KnowledgeContainerSessionFactory.newStatelessKieSession(KnowledgeContainerSessionFactory.java:97)
	at org.switchyard.component.common.knowledge.session.KnowledgeContainerSessionFactory.newStatelessSession(KnowledgeContainerSessionFactory.java:62)
	at org.switchyard.component.common.knowledge.exchange.KnowledgeExchangeHandler.newStatelessSession(KnowledgeExchangeHandler.java:140)
	at org.switchyard.component.rules.exchange.RulesExchangeHandler.handleOperation(RulesExchangeHandler.java:90) [switchyard-component-rules-1.1.0.M3-redhat-2.jar:1.1.0.M3-redhat-2]
	at org.switchyard.component.common.knowledge.exchange.KnowledgeExchangeHandler.handleMessage(KnowledgeExchangeHandler.java:253)


Additional info:
When deploying the service, the following errors appear in the JBoss AS console:

14:20:20,030 ERROR [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (MSC service thread 1-3) Unable to load pom.properties from/home/btison/work/fsw-sw/jboss-eap-6.1/standalone/tmp/vfs/tempec1d0e1ab74a6fed/content-55bf25007a64f615/switchyard-quickstart-rules-interview-container.jar as jarPath cannot be found
/home/btison/work/fsw-sw/jboss-eap-6.1/standalone/tmp/vfs/tempec1d0e1ab74a6fed/content-55bf25007a64f615/switchyard-quickstart-rules-interview-container.jar
14:20:20,031 ERROR [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (MSC service thread 1-3) Unable to load pom.properties from/home/btison/work/fsw-sw/jboss-eap-6.1/standalone/tmp/vfs/tempec1d0e1ab74a6fed/content-55bf25007a64f615/switchyard-quickstart-rules-interview-container.jar
/home/btison/work/fsw-sw/jboss-eap-6.1/standalone/tmp/vfs/tempec1d0e1ab74a6fed/content-55bf25007a64f615/switchyard-quickstart-rules-interview-container.jar (No such file or directory)
14:20:20,031 ERROR [org.drools.compiler.kie.builder.impl.ClasspathKieProject] (MSC service thread 1-3) Unable to build index of kmodule.xml url=vfs:/content/switchyard-quickstart-rules-interview-container.jar/META-INF/kmodule.xml
null

Comment 3 Keith Babo 2013-11-12 19:33:07 UTC
Confirmed on latest product branch of SY, so this issue still exists.

Comment 4 JBoss JIRA Server 2013-11-13 16:40:10 UTC
David Ward <dward> made a comment on jira SWITCHYARD-1832

Upon initial investigation, I've found that if you manually copy the application jar file into the as7 deployments/ directory, then the quickstart runs fine from SoapUI.  However, if you use the jboss-as:deploy approach to deployment, that's when you get this error for the rules-interview-container quickstart.

It's looking for a vfs path to a jar file that doesn't exist.  Instead, in the vfs/tmp/ directory, you will only see the extracted kmodule.xml file...

Notably, both deployment methodologies (copying into deployments/ dir, and using mvn) work with the rules-interview quickstart.

Comment 5 JBoss JIRA Server 2013-11-14 13:53:58 UTC
David Ward <dward> made a comment on jira SWITCHYARD-1832

I have created a reproducer application that showcases the problem.  Please refer to DROOLS-340.

Comment 6 JBoss JIRA Server 2013-11-15 15:30:44 UTC
David Ward <dward> made a comment on jira SWITCHYARD-1832

[~mfusco] emailed me a drools-compiler-6.0.0.CR5.jar file with the DROOLS-340 fix applied to it, and I tested it successfully.  So once SwitchYard upgrades to KIE/Drools/jBPM 6.0.0.Final (which will include his fix), we should be good.

There will still be a pull request associate with *this* jira at that time, though.  As we should remove the @Ignore annotations from the release/jboss-as7/tests/src/test/java/org/switchyard/test/quickstarts/RulesInterviewContainerQuickstartTest.java JUnit tests, and make sure everything is good there too.

Comment 7 JBoss JIRA Server 2013-11-15 15:31:39 UTC
David Ward <dward> made a comment on jira SWITCHYARD-1832

[~mfusco] emailed me a drools-compiler-6.0.0.CR5.jar file with the DROOLS-340 fix applied to it, and I tested it successfully.  So once SwitchYard upgrades to KIE/Drools/jBPM 6.0.0.Final (which will include his fix), we should be good.

There will still be a pull request associate with *this* jira at that time, though, as we should remove the @Ignore annotations from the release/jboss-as7/tests/src/test/java/org/switchyard/test/quickstarts/RulesInterviewContainerQuickstartTest.java JUnit tests, and make sure everything is good there too.

Comment 8 JBoss JIRA Server 2013-11-18 20:52:02 UTC
David Ward <dward> made a comment on jira SWITCHYARD-1832

This jira is dependent on SWITCHYARD-1840 having it's pull request processed first.

Comment 9 JBoss JIRA Server 2013-11-18 20:53:59 UTC
David Ward <dward> made a comment on jira SWITCHYARD-1832

https://github.com/jboss-switchyard/release/pull/318

Comment 10 JBoss JIRA Server 2013-11-19 23:28:09 UTC
Keith Babo <kbabo> made a comment on jira SWITCHYARD-1832

pushed to 1.x

Comment 11 Len DiMaggio 2013-12-20 18:29:25 UTC
Lenka - can you explain how this bug was not resolved and why it was re-opened?

Comment 12 Keith Babo 2013-12-20 19:04:25 UTC
I just tested this in ER8 and it works.  Moving back to ON_QA so that it can be tested with the ER8 build.

Comment 13 lvaskova 2013-12-21 10:54:58 UTC
Tested with wrong repo for the first time. Now it works.
Verified.

Comment 14 JBoss JIRA Server 2014-06-16 23:51:02 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1832 to Closed


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