I think jboss always gives you a real branch xid whereas the test code that is failing is supplying a xid with nothing in the branch. We should change the tests to make an xid, then get a branch from that xid to use with the xaresource.
Not sure when I'll have time to look... david jencks On 2002.09.19 22:35:32 -0400 Igor Fedorenko wrote: > > > Jamie Burns wrote: > > By way of reminder, the exception is: > > > > javax.transaction.xa.XAException > > at com.microsoft.jdbcx.base.BaseXAResource.checkXid(Unknown Source) > > at com.microsoft.jdbcx.base.BaseXAResource.start(Unknown Source) > > at > > org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnec > > tion.java:107) > > at > > org.jboss.test.jca.tm.XAResourceTest.testSimpleCommitXid(XAResourceTest.java > > :173) > > > > The checkXid method is failing with the value it is getting from > > XidImpl.getBranchQualifier(). XidImpl is returning a byte[0]. Ive > started > > comparing it to the JBoss 3.0 code and it looks pretty the same. Im > guessing > > that somewhere JBoss 3.0 was setting it to a non-zero length array. I > am > > going to look into it more closely over the weekend. > > Let me stress it one more time -- jboss does not manage xids in failed > tests, it's unit test itself. In fact, I believe jboss behaves > differently, for each transaction it creates "root" xid and all rm's > xids are branches of this root xid (i.e. branch qualifier is never > empty). I'll update test to do the same. Hmm, something must have > changed recently -- I can't successfully run XAResourceTest with oracle > anymore. Hope I'll have time to look at this tomorrow. > > > > > ----- Original Message ----- > > From: "Igor Fedorenko" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Saturday, September 07, 2002 2:18 PM > > Subject: Re: [JBoss-dev] XADataSource wrapper for JBoss 4 > > > > > > > >>There are two types of tests in this test suite. First type ("raw" > >>tests) manages xids and makes xa calls directly, second type ("tx" > >>tests) create instance of Transaction and use this instance to manage > xa > >>stuff. "Tx" tests are more important because they exercise actual > >>behaviour of jboss, while "raw" tests were meant to prove that very > >>basic xa functionality works. In your case all "raw" tests failed and > >>all "tx" tests succeeded. It is definitely a bug with raw tests but I > do > >>not know what could be wrong with them. > >> > >>Jamie Burns wrote: > >> > >>>Ok. The XAResourceUnitTestCase threw 3 errors. See attached report. > >>> > >>>There are sections for 3 adapters in the class. I have hsqldb-ds.xml > >>>(Firebird?) and mssql-xa-ds.xml installed. Apart from removing one of > >> > > them, > > > >>>how do you tell which one has failed? > >>> > >>>Thanks > >>> > >>>Jamie > >>> > >> > >> > >>-- > >>Igor Fedorenko > >>Think smart. Think automated. Think Dynamics. > >>www.thinkdynamics.com > >> > >> > >> > >>------------------------------------------------------- > >>This sf.net email is sponsored by: OSDN - Tired of that same old > >>cell phone? Get a new here for FREE! > >>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > >>_______________________________________________ > >>Jboss-development mailing list > >>[EMAIL PROTECTED] > >>https://lists.sourceforge.net/lists/listinfo/jboss-development > >> > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Jboss-development mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-development > > -- > Igor Fedorenko > Think smart. Think automated. Think Dynamics. > www.thinkdynamics.com > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development