Hi everyone.

I'm testing some stuff on apache ODE, and compilation goes great, but the
process fails to be deployed with the following message in the logs:
"
...

DEBUG - GeronimoLog.debug(66) | Register process:
serviceId={http://localhost:8080/ode/processes/Test.wsdl}TestService:TestPort,
process=BpelProcess[{http://localhost:8080/ode/processes/Test}Test-26]
DEBUG - GeronimoLog.debug(66) | Activating
{http://localhost:8080/ode/processes/Test}Test-26
DEBUG - GeronimoLog.debug(66) | Create AxisService:
service={http://localhost:8080/ode/processes/Test.wsdl}TestService
port=TestPort WSDL=Test.wsdl BPEL=Test.bpel
ERROR - GeronimoLog.error(108) | 
java.lang.NullPointerException
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:246)
        at
org.apache.ode.axis2.hooks.ODEAxisService.createService(ODEAxisService.java:88)
        at
org.apache.ode.axis2.BindingContextImpl.createService(BindingContextImpl.java:119)
        at
org.apache.ode.axis2.BindingContextImpl.activateMyRoleEndpoint(BindingContextImpl.java:77)
        at org.apache.ode.bpel.engine.BpelProcess.activate(BpelProcess.java:570)
        at
org.apache.ode.bpel.engine.BpelEngineImpl.registerProcess(BpelEngineImpl.java:323)
        at
org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.java:312)
        at org.apache.ode.axis2.ODEServer.handleEvent(ODEServer.java:613)
        at org.apache.ode.axis2.ODEServer.access$100(ODEServer.java:83)
        at
org.apache.ode.axis2.ODEServer$ProcessStoreListenerImpl.onProcessStoreEvent(ODEServer.java:589)
        at
org.apache.ode.store.ProcessStoreImpl.fireEvent(ProcessStoreImpl.java:531)
        at
org.apache.ode.store.ProcessStoreImpl.fireStateChange(ProcessStoreImpl.java:537)
        at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:305)
        at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:169)
        at
org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:167)
        at
org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
        at
org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:258)
WARN - GeronimoLog.warn(96) | Deployment failed within the engine, store
undeploying process.
org.apache.ode.bpel.iapi.ContextException: Could not activate endpoint for
service {http://localhost:8080/ode/processes/Test.wsdl}TestService and port
TestPort
        at
org.apache.ode.axis2.BindingContextImpl.activateMyRoleEndpoint(BindingContextImpl.java:82)
        at org.apache.ode.bpel.engine.BpelProcess.activate(BpelProcess.java:570)
        at
org.apache.ode.bpel.engine.BpelEngineImpl.registerProcess(BpelEngineImpl.java:323)
        at
org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.java:312)
        at org.apache.ode.axis2.ODEServer.handleEvent(ODEServer.java:613)
        at org.apache.ode.axis2.ODEServer.access$100(ODEServer.java:83)
        at
org.apache.ode.axis2.ODEServer$ProcessStoreListenerImpl.onProcessStoreEvent(ODEServer.java:589)
        at
org.apache.ode.store.ProcessStoreImpl.fireEvent(ProcessStoreImpl.java:531)
        at
org.apache.ode.store.ProcessStoreImpl.fireStateChange(ProcessStoreImpl.java:537)
        at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:305)
        at 
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:169)
        at
org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.java:167)
        at
org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPoller.java:60)
        at
org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(DeploymentPoller.java:258)
Caused by: org.apache.axis2.AxisFault
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:291)
        at
org.apache.ode.axis2.hooks.ODEAxisService.createService(ODEAxisService.java:88)
        at
org.apache.ode.axis2.BindingContextImpl.createService(BindingContextImpl.java:119)
        at
org.apache.ode.axis2.BindingContextImpl.activateMyRoleEndpoint(BindingContextImpl.java:77)
        ... 13 more
Caused by: java.lang.NullPointerException
        at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:246)
        ... 16 more
...
"




So, basically its not being able to create the service endpoint. (the
examples with the ODE release deploy fine though) Anyone got some pointers?

Here's the test descriptor:
"
<deploy 
        xmlns="http://www.apache.org/ode/schemas/dd/2007/03"; 
        xmlns:main="http://localhost:8080/ode/processes/Test"; 
        xmlns:this="http://localhost:8080/ode/processes/Test.wsdl"; 
        xmlns:ws0="urn:LoadToDB">

        <process name="main:Test">
                <active>true</active>
                <provide partnerLink="TestPartnerLink">
                        <service name="this:TestService" port="TestPort"/>
                </provide>
                <invoke partnerLink="LoadToDBPartnerLink">
                        <service name="ws0:LoadToDBService" 
port="LoadToDBPort"/>
                </invoke>
                <cleanup on="always"/>
        </process>
</deploy>
"

(LoadToDB is an external service and since no problems seem to be associated
with it I wont post it's wsdl).




the WSDL is for the TestService is:

"
<?xml version="1.0"?>
<wsdl:definitions 
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
        targetNamespace="http://localhost:8080/ode/processes/Test.wsdl"; 
        xmlns:tns="http://localhost:8080/ode/processes/Test.wsdl"; 
        xmlns="http://schemas.xmlsoap.org/wsdl/"; 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
        xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype";>

        <wsdl:message name="TestMessage">
                <wsdl:part name="input" type="xsd:string"/>
        </wsdl:message>


        <wsdl:portType name="TestPortType">
                <wsdl:operation name="Test">
                        <wsdl:input message="tns:TestMessage" name="input"/>
                        <wsdl:output message="tns:TestMessage" name="output"/>
                </wsdl:operation>
        </wsdl:portType>


        <wsdl:binding name="TestSoapBinding" type="TestPortType">
                <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
                <wsdl:operation name="Test">
                        <soap:operation soapAction="" style="document">
                                <wsdl:input>
                                        <soap:body 
namespace="http://localhost:8080/ode/processes/Test.wsdl";
use="literal"/>
                                </wsdl:input>
                                <wsdl:output>
                                        <soap:body 
namespace="http://localhost:8080/ode/processes/Test.wsdl";
use="literal"/>
                                </wsdl:output>
                        </soap:operation>
                </wsdl:operation>
        </wsdl:binding>


        <wsdl:service name="TestService">
                <wsdl:port name="TestPort" binding="TestSoapBinding">
                        <soap:address 
location="http://localhost:8080/ode/processes/Test"/>
                </wsdl:port>
        </wsdl:service>

        <plnk:partnerLinkType name="TestLinkType">
                <plnk:role name="TestService" portType="tns:TestPortType"/>
        </plnk:partnerLinkType>

</wsdl:definitions>
"





BPEL namespaces

<process 
name="Test"
targetNamespace="http://localhost:8080/ode/processes/Test"; 
xmlns:tns="http://localhost:8080/ode/processes/Test"; 
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"; 
xmlns:main="http://localhost:8080/ode/processes/Test"; 
xmlns:this="http://localhost:8080/ode/processes/Test.wsdl";
xmlns:ws0="urn:LoadToDB" 
xmlns:sa="http://10.10.4.34/medcollector/services/ScheduleAgain.wsdl";
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">

In my BPEL test I import the Test.wsdl with 

<import location="Test.wsdl"
namespace="http://localhost:8080/ode/processes/Test.wsdl";
importType="http://schemas.xmlsoap.org/wsdl/"/>


Define the partner link with 
<partnerLink name="TestPartnerLink" partnerLinkType="this:TestLinkType"
myRole="TestService"/>

and the use a receive and a reply on that partner link and it's associated
variable.

Any ideas why the endpoint is failing? I'd appreciate any insight very much
:)

Thanks in advance.


-- 
View this message in context: 
http://old.nabble.com/Could-not-activate-endpoint-for-service-tp28165674p28165674.html
Sent from the Apache Ode User mailing list archive at Nabble.com.

Reply via email to