Thursday, October 20, 2011

HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Read timed out in BPEL

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
Problem:    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Read timed out in BPEL
BPEL process which works on DB adaptaer in BPEL 
Status synchronize BPEL instance is failing for few declarations intermittently
Symptoms:

Log files:
 Error in logs
messages><input><sendClearanceMessageInputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters"><sendClearanceMessageElement xmlns="http://impl.service.clearance.declaration.customs.pcfc.com/types/">
<declarationNumber>1050000327410</declarationNumber>
</sendClearanceMessageElement>
</part></sendClearanceMessageInputVariable></input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Read timed out</summary>
</part></remoteFault></fault></messages>

Node 2_SOA~OC4J_SOA~default_group~1.log
-----------------
<2010-01-13 15:31:32,390> <INFO> <declaration.collaxa.cube.ws> <AdapterFramework::Outbound> file:/u01/app/sit/bpel/domains/declaration/tmp/.bpel_EnqueueClearanceProcess_0.22.5.0_298f508cf1c437f24a56b651b1b2636b.tmp/SID_invoke.wsdl [ Enqueue_ptt::Enqueue(Clearance) ] - Using JCA Connection Pool - max size = <unbounded>
<2010-01-13 15:31:32,390> <WARN> <declaration.collaxa.cube.ws> <AdapterFramework::Outbound> file:/u01/app/sit/bpel/domains/declaration/tmp/.bpel_EnqueueClearanceProcess_0.22.5.0_298f508cf1c437f24a56b651b1b2636b.tmp/SID_invoke.wsdl [ Enqueue_ptt::Enqueue(Clearance) ] - JNDI lookup of 'eis/AQ/AQSIT' failed due to: eis/AQ/AQSIT not found
<2010-01-13 15:31:32,390> <INFO> <declaration.collaxa.cube.ws> <AdapterFramework::Outbound> Since unable to locate the JCA Resource Adapter deployed at 'eis/AQ/AQSIT', will then attempt to instantiate ManagedConnectionFactory oracle.tip.adapter.aq.AQManagedConnectionFactory directly.
<2010-01-13 15:31:32,391> <ERROR> <declaration.collaxa.cube.ws> <AdapterFramework::Outbound> file:/u01/app/sit/bpel/domains/declaration/tmp/.bpel_EnqueueClearanceProcess_0.22.5.0_298f508cf1c437f24a56b651b1b2636b.tmp/SID_invoke.wsdl [ Enqueue_ptt::Enqueue(Clearance) ] - Could not invoke operation 'Enqueue' against the 'AQ Adapter' due to: 
ORABPEL-11905
Error while obtaining handle to JDBC connection.
Error while obtaining handle to JDBC connection.
Please examine the log file to determine the problem.

<2010-01-13 15:31:32,391> <INFO> <declaration.collaxa.cube.ws> <AdapterFramework::Outbound> Change logging level for Logger 'declaration.collaxa.cube.ws' to DEBUG to see full error stack
<2010-01-13 15:31:32,391> <ERROR> <declaration.collaxa.cube.ws> <AdapterFramework::Outbound> file:/u01/app/sit/bpel/domains/declaration/tmp/.bpel_EnqueueClearanceProcess_0.22.5.0_298f508cf1c437f24a56b651b1b2636b.tmp/SID_invoke.wsdl [ Enqueue_ptt::Enqueue(Clearance) ] - Rolling back JCA LocalTransaction
<2010-01-13 15:31:32,392> <ERROR> <declaration.collaxa.cube.ws> <WSIFInvocationHandler::invoke> Fault happened: file:/u01/app/sit/bpel/domains/declaration/tmp/.bpel_EnqueueClearanceProcess_0.22.5.0_298f508cf1c437f24a56b651b1b2636b.tmp/SID_invoke.wsdl [ Enqueue_ptt::Enqueue(Clearance) ] - WSIF JCA Execute of operation 'Enqueue' failed due to: Error while obtaining handle to JDBC connection.
Error while obtaining handle to JDBC connection.
; nested exception is: 
ORABPEL-11905
Error while obtaining handle to JDBC connection.
Error while obtaining handle to JDBC connection.
Please examine the log file to determine the problem.

<2010-01-13 15:31:32,877> <ERROR> <declaration.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "delivery": Waiting for response has timed out. The conversation id is null. Please check the process instance for detail.
com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is null. Please check the process instance for detail.
at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:109)
at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52) 
.....


Node1_SOA~OC4J_SOA~default_group~1.log
---------------------
<2010-01-13 15:34:21,660> <ERROR> <declaration.collaxa.cube.ws> <WSIFInvocationHandler::invoke> Fault happened: file:/u02/app/sit/bpel/domains/declaration/tmp/.bpel_EnqueueClearanceProcess_0.22.5.0_298f508cf1c437f24a56b651b1b2636b.tmp/SID_invoke.wsdl [ Enqueue_ptt::Enqueue(Clearance) ] - WSIF JCA Execute of operation 'Enqueue' failed due to: Adapter Framework unable to create outbound JCA connection.
file:/u02/app/sit/bpel/domains/declaration/tmp/.bpel_EnqueueClearanceProcess_0.22.5.0_298f508cf1c437f24a56b651b1b2636b.tmp/SID_invoke.wsdl [ Enqueue_ptt::Enqueue(Clearance) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-11929
SQL error while creating managed (database) connection.
SQL error while creating managed (database) connection: Unable to get a physical connection from the database...there are no connections available.
Please examine the log file to determine the problem.
[Caused by: Unable to get a physical connection from the database...there are no connections available.]
; nested exception is: 
ORABPEL-12511
Adapter Framework unable to create outbound JCA connection.
file:/u02/app/sit/bpel/domains/declaration/tmp/.bpel_EnqueueClearanceProcess_0.22.5.0_298f508cf1c437f24a56b651b1b2636b.tmp/SID_invoke.wsdl [ Enqueue_ptt::Enqueue(Clearance) ] - : The Adapter Framework was unable to establish an outbound JCA connection due to the following issue: ORABPEL-11929
SQL error while creating managed (database) connection.
SQL error while creating managed (database) connection: Unable to get a physical connection from the database...there are no connections available.
Please examine the log file to determine the problem.
[Caused by: Unable to get a physical connection from the database...there are no connections available.]
Please examine the log file for any reasons. Enable DEBUG logging in the BPEL Console.

10/01/13 15:34:23 java.sql.SQLException: Unable to get a physical connection from the database...there are no connections available.
10/01/13 15:34:23 at oracle.oc4j.sql.spi.ManagedConnectionImpl$GenericConnectionUseStrategy.initForUse(ManagedConnectionImpl.java:1188)
10/01/13 15:34:23 at oracle.oc4j.sql.spi.ManagedConnectionImpl$OracleConnectionUseStrategy.initForUse(ManagedConnectionImpl.java:1233)
10/01/13 15:34:23 at oracle.oc4j.sql.spi.ManagedConnectionImpl.initForUse(ManagedConnectionImpl.java:156)
10/01/13 15:34:23 at oracle.oc4j.sql.spi.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:106)
10/01/13 15:34:23 at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:171) 
............

Solution:


you have a BPEL process that includes an outbound AQ Adapter, make sure that you have done the following on the production env;
1- created connector-factory in the $ORACLE_HOME/j2ee/OC4J_PSOA/application-deployments/default/DBAdapter/oc4j-ra.xml
Note, the connection factory name must match the JNDI Name in the *.wsdl file that was generated from the creation of the AQ Adapter.

2- Make sure that the Queue where you enqueue messages has been already created in the DB




Get Oracle Certifications for all Exams
Free Online Exams.com

4 comments:

Anonymous said...

generic xanax xanax bars drugs.com - xanax to buy online no prescription

Anonymous said...

xanax online symptoms of xanax overdose - xanax yellow bar r039

Anonymous said...

can you buy xanax online legally xanax side effects next day - xanax pills they look like

Anonymous said...

buy tramadol online tramadol withdrawal leg cramps - tramadol hcl para que sirve