• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Weblogic / Oracle XA Exception  RSS feed

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm getting the following exception when I try to begin a transaction

<21/10/2005 17h09min25s GMT-03:00> <Warning> <Common> <BEA-000631> <Unknown reso
urce "weblogic.jdbc.common.internal.ConnectionEnv@58eb15" being released to pool
"LocalPool". Printing out current pool contents.>
java.rmi.RemoteException: EJB Exception: ; nested exception is:
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get
JDBC Connection; nested exception is java.sql.SQLException: Unexpected exceptio
n while enlisting XAConnection java.sql.SQLException: XA error: XAER_PROTO : Rou
tine was invoked in an inproper context start() failed on resource 'LocalPool':
XAER_PROTO : Routine was invoked in an inproper context
at oracle.jdbc.xa.OracleXAResource.checkError(I)V(OracleXAResource.java:
at oracle.jdbc.xa.client.OracleXAResource.start(Ljavax.transaction.xa.Xi
at weblogic.jdbc.wrapper.VendorXAResource.start(Ljavax.transaction.xa.Xi
at weblogic.jdbc.jta.DataSource.start(Ljavax.transaction.xa.Xid;I)V(Data
at weblogic.transaction.internal.XAServerResourceInfo.start(Lweblogic.tr
at weblogic.transaction.internal.XAServerResourceInfo.xaStart(Lweblogic.
at weblogic.transaction.internal.XAServerResourceInfo.enlist(Lweblogic.t
ransaction.internal.ServerTransactionImpl Z(XAServerResourceInfo.java:240)
at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Lj
avax.transaction.xa.XAResource Z(ServerTransactionImpl.java:463)

I'm using Orace 10g and Weblogic 8.1 sp4
I also updated Weblogic oracle driver with the one that comes with 10g.

I ran xainit.sql and made the grants.

Any ideas?
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Santosh Maskar:
Possible reason for your exception
1. Make sure that your database has enabled the XA support http://e-docs.bea.com/wls/docs81/jta/thirdpartytx.html#1084836
2. Make sure that your connection have the 'SupportsLocalTransaction="true" '

Can you paste your connection pool properties.

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!