ActiveBpel Deployer

18 views
Skip to first unread message

Sana

unread,
Oct 4, 2013, 12:02:49 AM10/4/13
to bpel...@googlegroups.com
Hi

If the BPEL process is deployed on ActiveBpel engine. What changes do I need to make in my BpelUnit test suite ? The following bpts file gives me "NullPointer exception" upon running from eclipse. Do I have to change the preferences as well ?

<?xml version="1.0" encoding="UTF-8"?>

<tes:testSuite xmlns:ns3="http://j2ee.netbeans.org/wsdl/ASTROSearch/ASTROBookSearch" xmlns:bs="http://j2ee.netbeans.org/wsdl/ASTROBookStore/ASTROBookStore" xmlns:ns1="http://j2ee.netbeans.org/wsdl/VPOS_MPS/ASTROBookBank" xmlns:ns2="http://j2ee.netbeans.org/wsdl/ASTROBookCart" xmlns:ns4="http://xml.netbeans.org/schema/ASTROCartSCHEMA" xmlns:ns5="http://xml.netbeans.org/schema/ASTROSearchSCHEMA" xmlns:tes="http://www.bpelunit.org/schema/testSuite">

    <tes:name>suite.bpts</tes:name>

    <tes:baseURL>http://localhost:9999/ws</tes:baseURL>

    <tes:deployment>

        <tes:put type="activebpel" name="ASTROBookStore">

            <tes:wsdl>BookStoreProcess/ASTROBookStore.wsdl</tes:wsdl>

            <tes:property name="DeploymentAdminServiceURL">http://localhost:8081/active-bpel/services/DeployBPRService</tes:property>

            <tes:property name="BPRFile">BookStoreProcess/ASTRO.bpr</tes:property>

        </tes:put>

        <tes:partner name="ASTROBookCart_PLT" wsdl="BookStoreProcess/ASTROBookCart.wsdl"/>

        <tes:partner name="bankJPG_PLT" wsdl="BookStoreProcess/ASTROBookBank.wsdl"/>

        <tes:partner name="ASTROBookSearch_PLT" wsdl="BookStoreProcess/ASTROBookSearch.wsdl"/>

        <tes:partner name="ASTROBookStore_PLT" wsdl="BookStoreProcess/ASTROBookStore.wsdl"/>

    </tes:deployment>

    <tes:testCases>

        <tes:testCase name="1">

            <tes:clientTrack>

                <tes:sendOnly service="bs:ASTROBookStore_PLTService" port="ASTROBookStore_PLTServicePort" operation="login">

                    <tes:data>

                        <bs:customerId>Astroid</bs:customerId>

                        <bs:key>key</bs:key>

                    </tes:data>

                </tes:sendOnly>

            </tes:clientTrack>

            <tes:partnerTrack name="ASTROBookSearch_PLT">

                <tes:receiveOnly service="ns3:ASTROBookSearch_PLTService" port="ASTROBookSearch_PLTServicePort" operation="login"/>

                <tes:sendOnly service="ns3:ASTROBookSearch_CallbackPLTService" port="ASTROBookSearch_CallbackPLTServicePort" operation="loginErr">

                    <tes:data>

                        <ns3:key>key</ns3:key>

                    </tes:data>

                </tes:sendOnly>

            </tes:partnerTrack>

            <tes:partnerTrack name="ASTROBookStore_PLT">

                <tes:receiveOnly service="bs:ASTROBookStore_CallbackPLTService" port="ASTROBookStore_CallbackPLTServicePort" operation="loginError"/>

            </tes:partnerTrack>

        </tes:testCase>

    </tes:testCases>

</tes:testSuite>


Thanks


Antonio García Domínguez

unread,
Oct 4, 2013, 2:49:37 AM10/4/13
to bpel...@googlegroups.com
Hi Seema,

That looks OK to me. Do you have a stack trace for the NPE? That would be a big help for debugging the issue :-).

Best regards,
Antonio


--
Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "BPELUnit" sind.
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine Email an bpelunit+u...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out

Sana

unread,
Oct 4, 2013, 3:22:59 AM10/4/13
to bpel...@googlegroups.com
java.lang.NullPointerException
at net.bpelunit.framework.model.ProcessUnderTest.deploy(ProcessUnderTest.java:91)
at net.bpelunit.framework.model.test.TestSuite.setUp(TestSuite.java:177)
at net.bpelunit.framework.client.eclipse.launch.BPELLaunchConfigurationDelegate.launch(BPELLaunchConfigurationDelegate.java:138)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:923)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1126)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Antonio García Domínguez

unread,
Oct 7, 2013, 4:08:43 PM10/7/13
to bpel...@googlegroups.com
Hi Sana,

Sorry for the delay: I was busy writing a paper.

From the error, the only thing that could be null would be the fDeployer field in the ProcessUnderTest. Can you send me an example that reproduces the problem, so I can debug it?

Best regards,
Antonio



Sana

unread,
Oct 9, 2013, 8:13:46 AM10/9/13
to bpel...@googlegroups.com
The example along with the bpelunit test suite is attached . I am using bpelunit eclipse plugin and the example is deployed on activeBpel engine. 

Thanks for any help
BookStoreTest.zip
Reply all
Reply to author
Forward
0 new messages