tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (TOMEE-1778) XAPoolTest fails because lock on XA log file cannot be acquired
Date Thu, 14 Apr 2016 17:52:25 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-1778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15241605#comment-15241605
] 

Romain Manni-Bucau edited comment on TOMEE-1778 at 4/14/16 5:51 PM:
--------------------------------------------------------------------

We have DestroyableResource API for that, the transaction manager should impl it or we should
call doStop directly if that's a tx manager (see doDestroyResource in Assembler).

Side note: howl being optional it should still run if not in the classpath


was (Author: romain.manni-bucau):
We have DestroyableResource API for that, the transaction manager should impl it or we should
call doStop directly if that's a tx manager (see doDestroyResource in Assembler).

Side note: how being optional it should still run if not in the classpath

> XAPoolTest fails because lock on XA log file cannot be acquired
> ---------------------------------------------------------------
>
>                 Key: TOMEE-1778
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1778
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 7.0.0-M3
>         Environment: OSX Java 1.8.0_73
>            Reporter: Robert Panzer
>         Attachments: xapooltestpatch.diff
>
>
> When building the current master the XAPoolTest often fails for me because the lock on
the XA log file cannot be acquired.
> I think this is due to the XAPoolTest executed directly after the XADataSourceTest using
the same {{txMgr.logFileDir}}.
> {code}
> -------------------------------------------------------------------------------
> Test set: org.apache.openejb.resource.jdbc.XAPoolTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.741 sec <<<
FAILURE! - in org.apache.openejb.resource.jdbc.XAPoolTest
> check(org.apache.openejb.resource.jdbc.XAPoolTest)  Time elapsed: 0.585 sec  <<<
ERROR!
> org.apache.xbean.recipe.ConstructionException: Error invoking factory method: public
static org.apache.geronimo.transaction.manager.GeronimoTransactionManager org.apache.openejb.resource.GeronimoTransactionManagerFactory.create(java.lang.Integer,org.apache.openejb.util.Duration,boolean,byte[],java.lang.String,int,boolean,boolean,java.lang.Integer,org.apache.openejb.util.Duration,java.lang.String,java.lang.String,java.lang.String,int,int,int,int,int)
throws java.lang.Exception
> 	at org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:1007)
> 	at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
> 	at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> 	at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> 	at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> 	at org.apache.openejb.assembler.classic.Assembler.createTransactionManager(Assembler.java:3291)
> 	at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:556)
> 	at org.apache.openejb.testing.ApplicationComposers.startContainer(ApplicationComposers.java:1456)
> 	at org.apache.openejb.testing.ApplicationComposers.before(ApplicationComposers.java:378)
> 	at org.apache.openejb.testing.ApplicationComposers.evaluate(ApplicationComposers.java:1065)
> 	at org.apache.openejb.junit.DeployApplication.evaluate(DeployApplication.java:40)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> Caused by: org.objectweb.howl.log.LogConfigurationException: Unable to obtain lock on
/Users/robertpanzer/tomitribe/tomee/container/openejb-core/target/test-classes/target/test/xa/howl/howl_1.log
> 	at org.objectweb.howl.log.LogFile.open(LogFile.java:191)
> 	at org.objectweb.howl.log.LogFileManager.open(LogFileManager.java:784)
> 	at org.objectweb.howl.log.Logger.open(Logger.java:303)
> 	at org.objectweb.howl.log.xa.XALogger.open(XALogger.java:893)
> 	at org.apache.geronimo.transaction.log.HOWLLog.doStart(HOWLLog.java:258)
> 	at org.apache.openejb.resource.GeronimoTransactionManagerFactory.create(GeronimoTransactionManagerFactory.java:108)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:997)
> 	at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
> 	at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> 	at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> 	at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> 	at org.apache.openejb.assembler.classic.Assembler.createTransactionManager(Assembler.java:3291)
> 	at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:556)
> 	at org.apache.openejb.testing.ApplicationComposers.startContainer(ApplicationComposers.java:1456)
> 	at org.apache.openejb.testing.ApplicationComposers.before(ApplicationComposers.java:378)
> 	at org.apache.openejb.testing.ApplicationComposers.evaluate(ApplicationComposers.java:1065)
> 	at org.apache.openejb.junit.DeployApplication.evaluate(DeployApplication.java:40)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> {code}
> I can provide a patch that changes the log directory for this test and makes it pass
for me.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message