Title: RE: [JBoss-user] Opta2000 for MS SQLServer2000 - com.inet.tds.XDataSource

I have noticed that, for Oracle, I get this XAER_NOTA exception as well. It seems that oracle requires the Xid class to have a global id byte array between 2-64 (Xid.MAXGTRIDSIZE) bytes, and a branch qualifier byte array between 2-64 (Xid.MAXBQUALSIZE) bytes. In jboss, when a new Xid is constructed, the branch qualifier is a 0 byte array, which gives me the XAER_NOTA on endResource.

After hacking up org.jboss.tm.XidImpl to always have at least 2 bytes for the gid and bqual, it works. Perhaps the same with SQLServer2k? Try having the gid and bqual byte arrays to always be MAXGTRIDSIZE (64) and MAXBQUALSIZE (64).

This is for jboss 2.2.2.

jord.

-----Original Message-----
From: Burkhard Vogel [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 7:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Opta2000 for MS SQLServer2000 -
com.inet.tds.XDataSource


Hi,
Is there a chance that this might clear the issue with the oracle
XADatasource???
Hoping...
Burkhard
----- Original Message -----
From: "Vincent Harcq" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Eric Fesler"
<[EMAIL PROTECTED]>; "HUB DEV" <[EMAIL PROTECTED]>; "Kais
Sellami" <[EMAIL PROTECTED]>; "Khaled Najeh"
<[EMAIL PROTECTED]>; "Yassine Moalla" <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 1:05 AM
Subject: RE: [JBoss-user] Opta2000 for MS SQLServer2000 -
com.inet.tds.XDataSource


> I jump into the sources...cross post the mail...
>
> TxCapsule line 523
>
>          try {
> =====>            doBeforeCompletion();        <=========
>             endResource(idx, flag);
>             return true;
>          } catch(XAException e) {
>
> doBeforeCompletion() was missing.
>
> The solution could it be so simple ?
>
> Vincent.
>
> PS: I have also see I am not the first in the archive...should have looked
> that before...
>
> Nintendo: If I am out of the problem, we should change the doco !
>
>
> > -----Message d'origine-----
> > De : [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]De la part de Vincent
> > Harcq
> > Envoy� : lundi 2 juillet 2001 0:40
> > � : User JBoss
> > Objet : [JBoss-user] Opta2000 for MS SQLServer2000 -
> > com.inet.tds.XDataSource
> >
> >
> > Hi,
> > I got an exception at deployment time of entity beans linked to a MS SQL
> > Server 2000 database when I use the configuration from the doc; which
> > isusing com.inet.tds.XDataSource instead of
> > org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl.
> > I found something for Oracle for the definition of XidClassName.  Is
there
> > something similar for Opta2000?  I have searched the Opta2000.jar
without
> > success.
> > I use the demo version wich is limitted to 2 connections.  Could
> > it be that?
> >
> > TIA.
> > Vincent.
> >
> > The Exception is :
> >
> > XAException: tx=XidImpl [FormatId=257, GlobalId=harcq//0, BranchQual=]
> > errorCode=XAER_NOTA
> > javax.transaction.xa.XAException: The Xid is not valid.(XidImpl
> > [FormatId=257, GlobalId=harcq//0, BranchQual=1]) resource
> > manager:com.inet.tds.k@64ab4d
> >      at com.inet.tds.k.if(Unknown Source)
> >      at com.inet.tds.k.for(Unknown Source)
> >      at com.inet.tds.k.end(Unknown Source)
> >      at org.jboss.tm.TxCapsule.endResource(TxCapsule.java:1129)
> >      at org.jboss.tm.TxCapsule.delistResource(TxCapsule.java:523)
> >      at
> > org.jboss.tm.TransactionImpl.delistResource(TransactionImpl.java:99)
> >      at
> > org.jboss.pool.jdbc.xa.XAConnectionFactory$2.closeConnection(XACon
> > nectionFac
> > tory.java:97)
> >      at
> > org.jboss.pool.jdbc.xa.XAConnectionFactory$2.connectionClosed(XACo
> > nnectionFa
> > ctory.java:82)
> >      at com.inet.pool.c.a(Unknown Source)
> >      at com.inet.tds.k.a(Unknown Source)
> >      at com.inet.pool.a.close(Unknown Source)
> >      at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCComman
> > d.java:190
> > )
> >      at
> > org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCo
> > mmand.java
> > :132)
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to