Multi threads issue with JDBC running on BEA Weblogic 8.1 SP4

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

My problem briefly is, I am trying to update a specific column in a row on
MSSQL server 2005 database via MSSQL Server 2005 JDBC Driver (sqljdbc_1.0).
following are some facts I have may help you understand my issue:-
1- I downloaded this driver from Microsoft site and followed the instructions
in xa_install.txt to support xa for MSSQL Server 2005 and copied the
sqljdbc_xa.dll file to the BINN folder for the SQL server 2005 instance
2- MSDTC ==> Enable XA Transactions is checked and running with SQL Server
2005
3- When I do this update transaction from one thread, it works and
everything
going well and data stored successfully in the database but when I run
more than
one thread calling same update method, it fails with very some error
messages
like the following

<3/05/2006 03:56:53 PM EST> <Error> <JTA> <BEA-110412>
<Xid=BEA1-0001708D23130B1
99E5E(12523276),Status=Rolled back.
[Reason=weblogic.transaction.internal.AppSet
RollbackOnlyException],HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepli
esOwedOthers=0,seconds since begin=5,seconds
left=60,XAServerResourceInfo[weblog
ic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTS
XAResourceImpl]=(state=rolledback,assigned=APAENGC0009155),xar=weblogic.jdbc.wra
pper.JTSXAResourceImpl@ca6f2d,re-Registered =
false),SCInfo[VRDdomain+APAENGC000
9155]=(state=rolledback),properties=({weblogic.jdbc=t3://100.80.16.174:8080}),Coor
dinatorURL=APAENWSName+100.80.16.174:8080+VRDdomain+t3+) completed
heuristicall
y: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard,
(javax.transaction
..xa.XAException: Server failed to resume the transaction, desc:
380000016c.)) >



<3/05/2006 03:56:54 PM EST> <Warning> <JDBC> <BEA-001153> <Forcibly
releasing in
active connection
"weblogic.jdbc.wrapper.PoolConnection_com_microsoft_sqlserver_
jdbc_SQLServerConnection@2ef5" back into the connection pool "testPool".>
java.sql.SQLException: Cannot obtain connection: driverURL =
jdbc:weblogic:pool:
testPool, props = {enableTwoPhaseCommit=true, connectionPoolID=testPool,
jdbcTxDat
aSource=true, dataSourceName=TEST Tx Data Source}.
Nested Exception: java.lang.RuntimeException: Failed to setAutoCommit to
true fo
r pool connection.
at
weblogic.jdbc.wrapper.PoolConnection.init(Lweblogic.jdbc.common.inter
nal.ConnectionEnv;)V(PoolConnection.java:47)
at
weblogic.jdbc.pool.Driver.allocateConnection(Lweblogic.jdbc.common.in
ternal.ConnectionEnv;)Ljava.sql.Connection;(Driver.java:254)
at
weblogic.jdbc.pool.Driver.connect(Ljava.lang.String;Ljava.util.Proper
ties;)Ljava.sql.Connection;(Driver.java:164)
at
weblogic.jdbc.jts.Driver.getNonTxConnection(Ljava.lang.String;Ljava.u
til.Properties;)Ljava.sql.Connection;(Driver.java:509)
at
weblogic.jdbc.jts.Driver.connect(Ljava.lang.String;Ljava.util.Propert
ies;)Ljava.sql.Connection;(Driver.java:139)
at
weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava.sql.
Connection;(RmiDataSource.java:305)

so this is my problem and I hope you can help me guys specially
( Matt Neerincx and Joe Weinstein ), I appreciate any help.
Thank you in advance..
Kind Regards

.



Relevant Pages

  • Re: Multi threads issue with JDBC running on BEA Weblogic 8.1 SP4
    ... I am trying to update a specific column in a row on MSSQL server 2005 database via MSSQL Server 2005 JDBC Driver. ... 3- When I do this update transaction from one thread, it works and everything going well and data stored successfully in the database but when I run more than ... active connection ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Service Pack 2 and conections troubles
    ... I installed Service Pack 2 in my Windows XP, it has MSSQL Server 200 too, and since this moment the connection to the database couldn't be realize. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IDS 7 -> 11 upgrade problems
    ... couldn't connect at all with CSDK 2.9. ... If you are using a 1.1 Informix driver, I wouldn't be surprised if it ... more problematic than other connection technologies. ... to see if the database is throwing an error to the client? ...
    (comp.databases.informix)
  • Re: Syntax error in UPDATE statement.
    ... This is not an issue dealing with your database connection, it is your actual update SQL statement. ... Microsoft OLE DB Provider for ODBC Drivers ... > The following error message comes from the database driver software; ...
    (microsoft.public.frontpage.client)
  • Re: Syntax error in UPDATE statement.
    ... This is not an issue dealing with your database connection, it is your actual update SQL statement. ... Microsoft OLE DB Provider for ODBC Drivers ... > The following error message comes from the database driver software; ...
    (microsoft.public.frontpage)