You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by patrosk <su...@rediffmail.com> on 2007/09/20 12:29:35 UTC
problem invoking a external webservice..please help
Hi,
i have ODE1.1 running on servicemix3.1.
I have a HelloWorld service running on tomcat. I created a BPEL service,
which invokes the HelloWorld running on tomcat. And the BPEL service i want
expose as a http endpoint on JBI.
I am getting the following exception, Please help me out, I am struggling
since more than a day. I am attaching here my service-assembly.
http://www.nabble.com/file/p12794584/test2-sa.zip test2-sa.zip
'ERROR - JacobVPU - Method "run" in class
"org.apache.ode.bpel.runtime.INVOKE"
threw an unexpected exception.
org.apache.ode.bpel.iapi.ContextException: Unknown endpoint:
{urn:/HelloWorld.wsdl}HelloWorldService
:HelloWorld
at
org.apache.ode.jbi.JbiEndpointReference.getServiceEndpoint(JbiEndpointReference.java:99)
at
org.apache.ode.jbi.JbiEndpointReference.toXML(JbiEndpointReference.java:64)
at
org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:792)
at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:96)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
at
org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:836
)
at
org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(PartnerLinkMyRoleImpl.java:
193)
at
org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
at
org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:306)
at
org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:318)
at
org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:364)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:335)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:334)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:173)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:333)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:330)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
ERROR - BpelEngineImpl - Scheduled job failed;
jobDetail={type=INVOKE_INTERNAL, mexi
d=hqejbhcnphr2lpj1grlre0, pid={urn:/test2.bpel}test2-17}
java.lang.RuntimeException: org.apache.ode.bpel.iapi.ContextException:
Unknown endpoint: {urn:/Hello
World.wsdl}HelloWorldService:HelloWorld
at
org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
at
org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:836
)
at
org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(PartnerLinkMyRoleImpl.java:
193)
at
org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
at
org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:306)
at
org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:318)
at
org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:364)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:335)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:334)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:173)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:333)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:330)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.ode.bpel.iapi.ContextException: Unknown endpoint:
{urn:/HelloWorld.wsdl}HelloW
orldService:HelloWorld
--
View this message in context: http://www.nabble.com/problem-invoking-a-external-webservice..please-help-tf4486707.html#a12794584
Sent from the Apache Ode User mailing list archive at Nabble.com.
Re: problem invoking a external webservice..please help
Posted by patrosk <su...@rediffmail.com>.
No my service on tomcat is not getting called. The servicemix.log looks
something like this,
Called Flow send
15:46:41,157 | DEBUG | pool-flow.seda.servicemix-http-thread-1 | SedaQueue
| .jbi.nmr.flow.seda.SedaQueue$1 132 |
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@93f40f dequeued
exchange: InOut[
id: ID:10.192.56.109-1152790d11a-2:0
status: Active
role: provider
service: {urn:/HelloWorld.wsdl}HelloWorldService
endpoint: HelloWorld
operation: {urn:/HelloWorld.wsdl}sayHi
in: <?xml version="1.0" encoding="UTF-8"?><message><str>hi</str></message>
]
15:46:41,157 | DEBUG | pool-flow.seda.servicemix-http-thread-1 |
HttpComponent | emix.common.AsyncBaseLifeCycle 419 | Received
exchange: status: Active, role: provider
15:46:41,157 | DEBUG | pool-flow.seda.servicemix-http-thread-1 |
HttpComponent | emix.common.AsyncBaseLifeCycle 487 | Retrieved
correlation id: null
15:46:41,939 | DEBUG | pool-flow.seda.servicemix-http-thread-1 |
DeliveryChannelImpl | .messaging.DeliveryChannelImpl 413 | Send
ID:10.192.56.109-1152790d11a-2:0 in DeliveryChannel{servicemix-http}
15:46:41,939 | DEBUG | pool-flow.seda.servicemix-http-thread-1 | SedaFlow
| emix.jbi.nmr.flow.AbstractFlow 121 | Called Flow send
15:46:41,939 | DEBUG | pool-flow.seda.servicemix-http-thread-2 | SedaQueue
| .jbi.nmr.flow.seda.SedaQueue$1 132 |
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@12feafc dequeued
exchange: InOut[
id: ID:10.192.56.109-1152790d11a-2:0
status: Active
role: consumer
service: {urn:/HelloWorld.wsdl}HelloWorldService
endpoint: HelloWorld
operation: {urn:/HelloWorld.wsdl}sayHi
in: <?xml version="1.0" encoding="UTF-8"?><message><str>hi</str></message>
fault: <?xml version="1.0" encoding="UTF-8"?><ns2:hostname
xmlns:ns2="http://xml.apache.org/axis/">HB253-J9WZL1S</ns2:hostname>
]
15:46:41,939 | DEBUG | Thread-8 | DeliveryChannelImpl |
.messaging.DeliveryChannelImpl 265 | Accepting
ID:10.192.56.109-1152790d11a-2:0 in DeliveryChannel{OdeBpelEngine}
15:46:42,033 | DEBUG | pool-4-thread-2 | DeliveryChannelImpl |
.messaging.DeliveryChannelImpl 413 | Send ID:10.192.56.109-1152790d11a-2:0
in DeliveryChannel{OdeBpelEngine}
15:46:42,033 | DEBUG | pool-4-thread-2 | SedaFlow |
emix.jbi.nmr.flow.AbstractFlow 121 | Called Flow send
15:46:42,033 | DEBUG | pool-flow.seda.servicemix-http-thread-3 | SedaQueue
| .jbi.nmr.flow.seda.SedaQueue$1 132 |
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@2ea4b1 dequeued
exchange: InOut[
id: ID:10.192.56.109-1152790d11a-2:0
status: Done
role: provider
service: {urn:/HelloWorld.wsdl}HelloWorldService
endpoint: HelloWorld
operation: {urn:/HelloWorld.wsdl}sayHi
in: <?xml version="1.0" encoding="UTF-8"?><message><str>hi</str></message>
fault: <?xml version="1.0" encoding="UTF-8"?><ns2:hostname
xmlns:ns2="http://xml.apache.org/axis/">HB253-J9WZL1S</ns2:hostname>
]
Any simple example calling an external web service will really help me
solving my issue.
One more doubt i have is, the outside HelloWorld service, am exposing it as
http endpoint, as u said in last mail, so does it expose the external
service at the same location, eg: in my sample
"http://localhost:8085/axis/HelloWorld.jws", but this location is outside
the service. My servicemix is running at 8080, the tomcat running on 8085.
How a service running at 8085 can be exposed on servicemix, which is running
at 8080.
I feeling there is something going wrong, either in the helloworld-http
component or the deploy.xml of the BPEL process.
Just to try out whther, the Bpelprocess is fine, i tried to deploy the
test2-process(which contains the bpel process) on ODE running on tomcat. Am
attching here that http://www.nabble.com/file/p12820365/test2-process.zip
test2-process.zip .
Again it deploys fine, but when i invoke, following exception comes,
Sep 21, 2007 6:28:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 18222 ms
DEBUG - GeronimoLog.debug(66) | The system is checking for the operation
using t
he following WSAAction: ""
DEBUG - GeronimoLog.debug(66) | Checking for Operation using SOAP message
body's
first child's local name : JobSubmit
DEBUG - GeronimoLog.debug(66) | Found operation
org.apache.axis2.description.InO
utAxisOperation@190ffa7
DEBUG - GeronimoLog.debug(66) | Received request message for
test2.{urn:/test2.w
sdl}JobSubmit
DEBUG - GeronimoLog.debug(66) | Starting transaction.
DEBUG - GeronimoLog.debug(66) | Routed: svcQname
{urn:/test2.wsdl}Test2Service -
-> BpelProcess[{urn:/test2.bpel}test2-4]
DEBUG - GeronimoLog.debug(66) | ODE routed to operation Operation:
name=JobSubmi
t
style=REQUEST_RESPONSE,1
Input: name=TestInput
Message: name={urn:/test2.wsdl}InputMessage
Part: name=hellostring
typeName={http://www.w3.org/2001/XMLSchema}string
Output: name=TestOutput
Message: name={urn:/test2.wsdl}OutputMessage
Part: name=result
typeName={http://www.w3.org/2001/XMLSchema}string from service
{urn:/test2.wsdl}
Test2Service
ERROR - GeronimoLog.error(108) | Exception occured while invoking ODE
org.apache.ode.axis2.OdeFault: SOAP body does not contain expected part
wrapper:
service {urn:/test2.wsdl}Test2Service port Test2Port wrapper JobSubmit
at
org.apache.ode.axis2.util.SoapMessageConverter.extractSoapBodyParts(S
oapMessageConverter.java:369)
at
org.apache.ode.axis2.util.SoapMessageConverter.parseSoapRequest(SoapM
essageConverter.java:303)
at
org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java
:107)
at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODE
MessageReceiver.java:69)
at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODE
MessageReceiver.java:50)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:96)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:275)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
20)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:104)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:261)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:581)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
7)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: SOAP body does not contain
expect
ed part wrapper: service {urn:/test2.wsdl}Test2Service port Test2Port
wrapper Jo
bSubmit
at
org.apache.ode.axis2.Messages.msgSoapBodyDoesNotContainExpectedPartWr
apper(Messages.java:239)
... 23 more
DEBUG - GeronimoLog.debug(66) | Releasing mex hqejbhcnphr2lt74sn73ox
WARN - GeronimoLog.warn(96) | Unexpected exception from beforeCompletion;
transa
ction will roll back
<0.9.7-incubating nonfatal general error>
org.apache.openjpa.persistence.Persist
enceException: java.sql.SQLException
at
org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictiona
ry.java:3784)
at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java
:97)
at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java
:83)
at
org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java
:59)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.connect(JDBCStoreMana
ger.java:727)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.retainConnection(JDBC
StoreManager.java:197)
at
org.apache.openjpa.kernel.DelegatingStoreManager.retainConnection(Del
egatingStoreManager.java:163)
at
org.apache.openjpa.kernel.BrokerImpl.retainConnection(BrokerImpl.java
:3662)
at
org.apache.openjpa.kernel.BrokerImpl.beginStoreManagerTransaction(Bro
kerImpl.java:1244)
at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:1923)
at
org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1863)
at
org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java
:1781)
at
org.apache.geronimo.transaction.manager.TransactionImpl.beforeComplet
ion(TransactionImpl.java:515)
at
org.apache.geronimo.transaction.manager.TransactionImpl.rollback(Tran
sactionImpl.java:471)
at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.rollba
ck(TransactionManagerImpl.java:276)
at
org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java
:139)
at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODE
MessageReceiver.java:69)
at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODE
MessageReceiver.java:50)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe
ssageReceiver.java:96)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:275)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
20)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:104)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:261)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:581)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
7)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.sql.SQLException
at
org.tranql.connector.jdbc.DataSource.getConnection(DataSource.java:61
)
at
org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(Delega
tingDataSource.java:106)
at
org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(Decora
tingDataSource.java:87)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.connectInternal(JDBCS
toreManager.java:738)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.connect(JDBCStoreMana
ger.java:723)
... 31 more
Caused by: Could not enlist resource in rolled back transaction
at
org.apache.geronimo.connector.outbound.TransactionEnlistingIntercepto
r.getConnection(TransactionEnlistingInterceptor.java:62)
at
org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.
getConnection(TransactionCachingInterceptor.java:87)
at
org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.ge
tConnection(ConnectionHandleInterceptor.java:43)
at
org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(
TCCLInterceptor.java:39)
at
org.apache.geronimo.connector.outbound.AbstractConnectionManager.allo
cateConnection(AbstractConnectionManager.java:61)
at
org.tranql.connector.jdbc.DataSource.getConnection(DataSource.java:56
)
... 35 more
Caused by: javax.transaction.RollbackException: Transaction is marked for
rollba
ck
at
org.apache.geronimo.transaction.manager.TransactionImpl.enlistResourc
e(TransactionImpl.java:167)
at
org.apache.geronimo.connector.outbound.TransactionEnlistingIntercepto
r.getConnection(TransactionEnlistingInterceptor.java:54)
... 40 more
Alex Boisvert wrote:
>
> Does your webservice deployed in Tomcat get called? Does it return
> anything? I can't really test without the entire environment...
>
> alex
>
>
> On 9/20/07, patrosk <su...@rediffmail.com> wrote:
>>
>>
>> HI Alex, Thanks for looking into my issue.
>>
>> The way you said, i tried that also. But again something is going wrong i
>> guess. Attached the assembly with changes.
>> http://www.nabble.com/file/p12810662/test2-sa.zip test2-sa.zip
>> It deploys fine, but when I invoke from my soap client, after around
>> 30secs
>> it comes with response,
>>
>> <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
>> "
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> <soapenv:Body>
>> <soapenv:Fault>
>> <faultcode
>> xmlns:ns1="http://xml.apache.org/axis/">ns1:HTTP</faultcode>
>> <faultstring>(0)Found</faultstring>
>> <detail>
>> <string>return code: 0
>> </string>
>> <ns2:HttpErrorCode
>> xmlns:ns2="http://xml.apache.org/axis/">0</ns2:HttpErrorCode>
>> </detail>
>> </soapenv:Fault>
>> </soapenv:Body>
>> </soapenv:Envelope>
>>
>> On the servicemix console i am not getting any exception, but it just
>> comes
>> with following message :
>>
>> INFO - Query - This query on type "class
>> org.apache.ode.dao.jpa.ProcessDAO
>> Impl" must load the entire candidate class extent and evaluate the query
>> in-memory. This may be ver
>> y slow. The query must be executed in memory because OpenJPA is
>> configured
>> with IgnoreCache=false a
>> nd FlushBeforeQueries=false and there are dirty instances that may affect
>> the query's outcome in the
>> cache.
>> INFO - Query - This query on type "class
>> org.apache.ode.dao.jpa.ScopeDAOIm
>> pl" must load the entire candidate class extent and evaluate the query
>> in-memory. This may be very
>> slow. The query must be executed in memory because OpenJPA is configured
>> with IgnoreCache=false and
>> FlushBeforeQueries=false and there are dirty instances that may affect
>> the
>> query's outcome in the c
>> ache.
>>
>> What would be missing here?
>> Thanks
>> Sunita
>>
>
>
--
View this message in context: http://www.nabble.com/problem-invoking-a-external-webservice..please-help-tf4486707.html#a12820365
Sent from the Apache Ode User mailing list archive at Nabble.com.
Re: problem invoking a external webservice..please help
Posted by Alex Boisvert <bo...@intalio.com>.
Does your webservice deployed in Tomcat get called? Does it return
anything? I can't really test without the entire environment...
alex
On 9/20/07, patrosk <su...@rediffmail.com> wrote:
>
>
> HI Alex, Thanks for looking into my issue.
>
> The way you said, i tried that also. But again something is going wrong i
> guess. Attached the assembly with changes.
> http://www.nabble.com/file/p12810662/test2-sa.zip test2-sa.zip
> It deploys fine, but when I invoke from my soap client, after around
> 30secs
> it comes with response,
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <soapenv:Fault>
> <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:HTTP</faultcode>
> <faultstring>(0)Found</faultstring>
> <detail>
> <string>return code: 0
> </string>
> <ns2:HttpErrorCode
> xmlns:ns2="http://xml.apache.org/axis/">0</ns2:HttpErrorCode>
> </detail>
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>
>
> On the servicemix console i am not getting any exception, but it just
> comes
> with following message :
>
> INFO - Query - This query on type "class
> org.apache.ode.dao.jpa.ProcessDAO
> Impl" must load the entire candidate class extent and evaluate the query
> in-memory. This may be ver
> y slow. The query must be executed in memory because OpenJPA is
> configured
> with IgnoreCache=false a
> nd FlushBeforeQueries=false and there are dirty instances that may affect
> the query's outcome in the
> cache.
> INFO - Query - This query on type "class
> org.apache.ode.dao.jpa.ScopeDAOIm
> pl" must load the entire candidate class extent and evaluate the query
> in-memory. This may be very
> slow. The query must be executed in memory because OpenJPA is configured
> with IgnoreCache=false and
> FlushBeforeQueries=false and there are dirty instances that may affect the
> query's outcome in the c
> ache.
>
> What would be missing here?
> Thanks
> Sunita
>
Re: problem invoking a external webservice..please help
Posted by patrosk <su...@rediffmail.com>.
HI Alex, Thanks for looking into my issue.
The way you said, i tried that also. But again something is going wrong i
guess. Attached the assembly with changes.
http://www.nabble.com/file/p12810662/test2-sa.zip test2-sa.zip
It deploys fine, but when I invoke from my soap client, after around 30secs
it comes with response,
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:HTTP</faultcode>
<faultstring>(0)Found</faultstring>
<detail>
<string>return code: 0
</string>
<ns2:HttpErrorCode
xmlns:ns2="http://xml.apache.org/axis/">0</ns2:HttpErrorCode>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
On the servicemix console i am not getting any exception, but it just comes
with following message :
INFO - Query - This query on type "class
org.apache.ode.dao.jpa.ProcessDAO
Impl" must load the entire candidate class extent and evaluate the query
in-memory. This may be ver
y slow. The query must be executed in memory because OpenJPA is configured
with IgnoreCache=false a
nd FlushBeforeQueries=false and there are dirty instances that may affect
the query's outcome in the
cache.
INFO - Query - This query on type "class
org.apache.ode.dao.jpa.ScopeDAOIm
pl" must load the entire candidate class extent and evaluate the query
in-memory. This may be very
slow. The query must be executed in memory because OpenJPA is configured
with IgnoreCache=false and
FlushBeforeQueries=false and there are dirty instances that may affect the
query's outcome in the c
ache.
What would be missing here?
Thanks
Sunita
Alex Boisvert wrote:
>
> Hi Sunita (?),
>
> Your assembly is missing a binding component to expose your remote
> HelloWorld service on the JBI bus.
>
> You need to
> 1) copy and edit your HelloWorld.wsdl to add the following XML fragment in
> the service/port:
> <smix:endpoint role="provider" defaultMep="in-out"/>
> (i see you've already done this for HelloWorld.wsdl inside the process
> component)
> 2) zip the resulting .wsdl to create a new binding component
> 3) add a <service-unit> entry for the binding component in your
> jbi.xml(with target component "servicemix-http")
> 4) add the zip to your service assembly
>
> Basically, any service that you invoke/provide outside of the JBI bus
> needs
> to have a corresponding binding component.
>
> cheers,
> alex
>
>
> On 9/20/07, patrosk <su...@rediffmail.com> wrote:
>>
>>
>> Hi,
>>
>> i have ODE1.1 running on servicemix3.1.
>>
>> I have a HelloWorld service running on tomcat. I created a BPEL service,
>> which invokes the HelloWorld running on tomcat. And the BPEL service i
>> want
>> expose as a http endpoint on JBI.
>>
>> I am getting the following exception, Please help me out, I am struggling
>> since more than a day. I am attaching here my service-assembly.
>> http://www.nabble.com/file/p12794584/test2-sa.zip test2-sa.zip
>>
>> 'ERROR - JacobVPU - Method "run" in class
>> "org.apache.ode.bpel.runtime.INVOKE"
>> threw an unexpected exception.
>> org.apache.ode.bpel.iapi.ContextException: Unknown endpoint:
>> {urn:/HelloWorld.wsdl}HelloWorldService
>> :HelloWorld
>> at
>> org.apache.ode.jbi.JbiEndpointReference.getServiceEndpoint(
>> JbiEndpointReference.java:99)
>> at
>> org.apache.ode.jbi.JbiEndpointReference.toXML(JbiEndpointReference.java
>> :64)
>> at
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(
>> BpelRuntimeContextImpl.java:792)
>>
>> at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:96)
>> at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at
>> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>> at
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(
>> BpelRuntimeContextImpl.java:836
>> )
>> at
>> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
>> PartnerLinkMyRoleImpl.java:
>> 193)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java
>> :306)
>> at
>> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
>> BpelEngineImpl.java:318)
>> at
>> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
>> BpelServerImpl.java:364)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
>> SimpleScheduler.java:335)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
>> SimpleScheduler.java:334)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(
>> SimpleScheduler.java:173)
>>
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
>> SimpleScheduler.java:333)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
>> SimpleScheduler.java:330)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
>> ThreadPoolExecutor.java:650)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
>> :675)
>> at java.lang.Thread.run(Thread.java:595)
>> ERROR - BpelEngineImpl - Scheduled job failed;
>> jobDetail={type=INVOKE_INTERNAL, mexi
>> d=hqejbhcnphr2lpj1grlre0, pid={urn:/test2.bpel}test2-17}
>> java.lang.RuntimeException: org.apache.ode.bpel.iapi.ContextException:
>> Unknown endpoint: {urn:/Hello
>> World.wsdl}HelloWorldService:HelloWorld
>> at
>> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
>> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>> at
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(
>> BpelRuntimeContextImpl.java:836
>> )
>> at
>> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
>> PartnerLinkMyRoleImpl.java:
>> 193)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
>> at
>> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java
>> :306)
>> at
>> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
>> BpelEngineImpl.java:318)
>> at
>> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
>> BpelServerImpl.java:364)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
>> SimpleScheduler.java:335)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
>> SimpleScheduler.java:334)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(
>> SimpleScheduler.java:173)
>>
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
>> SimpleScheduler.java:333)
>> at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
>> SimpleScheduler.java:330)
>> at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
>> ThreadPoolExecutor.java:650)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
>> :675)
>> at java.lang.Thread.run(Thread.java:595)
>> Caused by: org.apache.ode.bpel.iapi.ContextException: Unknown endpoint:
>> {urn:/HelloWorld.wsdl}HelloW
>> orldService:HelloWorld
>> --
>> View this message in context:
>> http://www.nabble.com/problem-invoking-a-external-webservice..please-help-tf4486707.html#a12794584
>> Sent from the Apache Ode User mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/problem-invoking-a-external-webservice..please-help-tf4486707.html#a12810662
Sent from the Apache Ode User mailing list archive at Nabble.com.
Re: problem invoking a external webservice..please help
Posted by Alex Boisvert <bo...@intalio.com>.
Hi Sunita (?),
Your assembly is missing a binding component to expose your remote
HelloWorld service on the JBI bus.
You need to
1) copy and edit your HelloWorld.wsdl to add the following XML fragment in
the service/port:
<smix:endpoint role="provider" defaultMep="in-out"/>
(i see you've already done this for HelloWorld.wsdl inside the process
component)
2) zip the resulting .wsdl to create a new binding component
3) add a <service-unit> entry for the binding component in your
jbi.xml(with target component "servicemix-http")
4) add the zip to your service assembly
Basically, any service that you invoke/provide outside of the JBI bus needs
to have a corresponding binding component.
cheers,
alex
On 9/20/07, patrosk <su...@rediffmail.com> wrote:
>
>
> Hi,
>
> i have ODE1.1 running on servicemix3.1.
>
> I have a HelloWorld service running on tomcat. I created a BPEL service,
> which invokes the HelloWorld running on tomcat. And the BPEL service i
> want
> expose as a http endpoint on JBI.
>
> I am getting the following exception, Please help me out, I am struggling
> since more than a day. I am attaching here my service-assembly.
> http://www.nabble.com/file/p12794584/test2-sa.zip test2-sa.zip
>
> 'ERROR - JacobVPU - Method "run" in class
> "org.apache.ode.bpel.runtime.INVOKE"
> threw an unexpected exception.
> org.apache.ode.bpel.iapi.ContextException: Unknown endpoint:
> {urn:/HelloWorld.wsdl}HelloWorldService
> :HelloWorld
> at
> org.apache.ode.jbi.JbiEndpointReference.getServiceEndpoint(
> JbiEndpointReference.java:99)
> at
> org.apache.ode.jbi.JbiEndpointReference.toXML(JbiEndpointReference.java
> :64)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(
> BpelRuntimeContextImpl.java:792)
>
> at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:96)
> at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(
> BpelRuntimeContextImpl.java:836
> )
> at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> PartnerLinkMyRoleImpl.java:
> 193)
> at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
> at
> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java
> :306)
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> BpelEngineImpl.java:318)
> at
> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> BpelServerImpl.java:364)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:335)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:334)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(
> SimpleScheduler.java:173)
>
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:333)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:330)
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> ThreadPoolExecutor.java:650)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
> :675)
> at java.lang.Thread.run(Thread.java:595)
> ERROR - BpelEngineImpl - Scheduled job failed;
> jobDetail={type=INVOKE_INTERNAL, mexi
> d=hqejbhcnphr2lpj1grlre0, pid={urn:/test2.bpel}test2-17}
> java.lang.RuntimeException: org.apache.ode.bpel.iapi.ContextException:
> Unknown endpoint: {urn:/Hello
> World.wsdl}HelloWorldService:HelloWorld
> at
> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
> at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
> at
> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(
> BpelRuntimeContextImpl.java:836
> )
> at
> org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeMyRole(
> PartnerLinkMyRoleImpl.java:
> 193)
> at
> org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:169)
> at
> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java
> :306)
> at
> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(
> BpelEngineImpl.java:318)
> at
> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(
> BpelServerImpl.java:364)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:335)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(
> SimpleScheduler.java:334)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(
> SimpleScheduler.java:173)
>
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:333)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(
> SimpleScheduler.java:330)
> at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> ThreadPoolExecutor.java:650)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
> :675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.ode.bpel.iapi.ContextException: Unknown endpoint:
> {urn:/HelloWorld.wsdl}HelloW
> orldService:HelloWorld
> --
> View this message in context:
> http://www.nabble.com/problem-invoking-a-external-webservice..please-help-tf4486707.html#a12794584
> Sent from the Apache Ode User mailing list archive at Nabble.com.
>
>