Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ERROR: 'Routine was invoked in an improper context' in WLS 11G

900266May 20 2012 — edited May 24 2012
Hi All,

We are using WLS 11g patch1(10.3.2). DB is oracle 11G.

Now we get an SQLException 'Routine was invoked in an inproper context' as below:

Caused by: java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_PROTO start() failed on resource 'Datasource_base_domain': XAER_PROTO : Routine was invoked in an inproper context
oracle.jdbc.xa.OracleXAException
at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1028)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:238)
at weblogic.jdbc.wrapper.VendorXAResource.start(VendorXAResource.java:50)
at weblogic.jdbc.jta.DataSource.start(DataSource.java:721)
at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1201)
at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1134)
at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:275)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:516)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:443)
at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1506)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1415)
at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:438)
at weblogic.jdbc.jta.DataSource.connect(DataSource.java:395)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:355)
...........

Has anyone got such exception before?

I googled and found nothing useful. Somebody says it's a bug in WLS 9.0, but we are using 10.3.2.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2012
Added on May 20 2012
2 comments
4,501 views