• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Weblogic / Oracle XA Exception

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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
oracle.jdbc.xa.OracleXAException
at oracle.jdbc.xa.OracleXAResource.checkError(I)V(OracleXAResource.java:
938)
at oracle.jdbc.xa.client.OracleXAResource.start(Ljavax.transaction.xa.Xi
d;I)V(OracleXAResource.java:244)
at weblogic.jdbc.wrapper.VendorXAResource.start(Ljavax.transaction.xa.Xi
d;I)V(VendorXAResource.java:50)
at weblogic.jdbc.jta.DataSource.start(Ljavax.transaction.xa.Xid;I)V(Data
Source.java:629)
at weblogic.transaction.internal.XAServerResourceInfo.start(Lweblogic.tr
ansaction.internal.ServerTransactionImpl;Ljavax.transaction.xa.Xid;I)V(XAServerR
esourceInfo.java:1140)
at weblogic.transaction.internal.XAServerResourceInfo.xaStart(Lweblogic.
transaction.internal.ServerTransactionImpl;I)V(XAServerResourceInfo.java:1072)
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic