ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patrosk <sunita_pa...@rediffmail.com>
Subject Re: problem invoking a external webservice..please help
Date Fri, 21 Sep 2007 13:09:22 GMT

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 <sunita_patro@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.


Mime
View raw message