[jboss-jira] [JBoss JIRA] Closed: (JBAS-4079) failing org.jboss.test.tm.test.Simple*LocalStressTestCase

Dimitris Andreadis (JIRA) jira-events at lists.jboss.org
Tue Feb 13 14:23:30 EST 2007


     [ http://jira.jboss.com/jira/browse/JBAS-4079?page=all ]

Dimitris Andreadis closed JBAS-4079.
------------------------------------

    Fix Version/s: JBossAS-5.0.0.Beta2
       Resolution: Done
         Assignee: Dimitris Andreadis  (was: Jonathan Halliday)

AFAIK, those tests targetted a local (client-side) JBossTM. That should be the transaction manager returned by the call to TransactionManagerLocator.getInstance().locate();

   public TransactionManager locate()
   {
      if (tm != null)
         return tm;

      TransactionManager result = tryJNDI();
      if (result == null)
         result = usePrivateAPI();
      if (result == null)
         throw new NestedRuntimeException("Unable to locate the transaction manager");
      
      return result;
   }
   protected TransactionManager tryJNDI()
   {
      try
      {
         InitialContext ctx = new InitialContext();
         tm = (TransactionManager) ctx.lookup(TransactionManagerService.JNDI_NAME);
         if (log.isTraceEnabled())
            log.trace("Got a transaction manager from jndi " + tm);
      }
      catch (NamingException e)
      {
         log.trace("Unable to lookup: " + TransactionManagerService.JNDI_NAME, e);
      }
      return tm;
   }

The error indicates that somehow a previous tests has set the local transaction manager (in JNDI?) to be the org.jboss.cache.transaction.DummyBaseTransactionManager.

I reverted the test to explicitly use the old JBossTM.

> failing org.jboss.test.tm.test.Simple*LocalStressTestCase
> ---------------------------------------------------------
>
>                 Key: JBAS-4079
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4079
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: Test Suite
>         Environment: Java Version 1.5.0_10 
> Java Vendor Sun Microsystems Inc. 
> Java VM Name Java HotSpot(TM) Client VM 
> Java VM Version 1.5.0_10-b03 
> Java VM Info mixed mode 
> OS Name Linux 
> OS Version 2.6.9-42.0.2.EL 
> OS Arch i386 
>            Reporter: Dimitris Andreadis
>         Assigned To: Dimitris Andreadis
>             Fix For: JBossAS-5.0.0.Beta2, JBossAS-4.2.0.CR1
>
>
> e.g.
> testSimpleTransactionLocalStressTestcase Error not supported
> javax.transaction.SystemException: not supported
> 	at org.jboss.cache.transaction.DummyBaseTransactionManager.setTransactionTimeout(DummyBaseTransactionManager.java:149)
> 	at org.jboss.test.tm.test.SimpleNoLockTransactionLocalStressTestCase.testSimpleTransactionLocalStressTestcase(SimpleNoLockTransactionLocalStressTestCase.java:36)
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list