{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon-sdk/issues/433","labels_url":"https://api.github.com/repos/ceylon/ceylon-sdk/issues/433/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon-sdk/issues/433/comments","events_url":"https://api.github.com/repos/ceylon/ceylon-sdk/issues/433/events","html_url":"https://github.com/ceylon/ceylon-sdk/issues/433","id":111138359,"number":433,"title":"ceylon.transaction tests fail","user":{"login":"FroMage","id":179265,"avatar_url":"https://avatars.githubusercontent.com/u/179265?v=3","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon-sdk/labels/BUG","name":"BUG","color":"fc2929"},{"url":"https://api.github.com/repos/ceylon/ceylon-sdk/labels/transaction","name":"transaction","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon-sdk/milestones/8","html_url":"https://github.com/ceylon/ceylon-sdk/milestones/1.2","labels_url":"https://api.github.com/repos/ceylon/ceylon-sdk/milestones/8/labels","id":807572,"number":8,"title":"1.2","description":"","creator":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":68,"state":"open","created_at":"2014-09-30T00:35:53Z","updated_at":"2015-10-13T09:09:57Z","due_on":"2014-10-28T23:00:00Z","closed_at":null},"comments":5,"created_at":"2015-10-13T09:09:57Z","updated_at":"2015-10-13T13:27:10Z","closed_at":null,"body":"We have two issues:\r\n\r\n```\r\ntest.ceylon.transaction::localTxnTest - error (java.lang.LinkageError: loader constraint violation: loader (instance of ceylon/modules/jboss/runtime/CeylonModuleClassLoader) previously initiated loading for a different type with name \"javax/transaction/xa/XAResource\")\r\ntest.ceylon.transaction::sqlTest1 - error (java.lang.NoClassDefFoundError: Could not initialize class com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple)\r\n```\r\n\r\nThis seems to be caused by a modularity issue. Once it is resolved, I have:\r\n\r\n```\r\ntest.ceylon.transaction::sqlTest2b - error (javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.)\r\ntest.ceylon.transaction::sqlTest3 - failure (ceylon.language.AssertionError \"Assertion failed\r\n\tviolated entry.item + 1 == c\")\r\n```\r\n\r\nDue to:\r\n\r\n```\r\nrunning: test.ceylon.transaction::sqlTest2b\r\nDebug: ARJUNA016047: Could not serialize a Serializable XAResource! \r\nDebug: ARJUNA012082: BasicAction::prepare - creating intentions list failed for {0} \r\nDebug: ARJUNA012073: BasicAction.End() - prepare phase of action-id {0} failed. \r\nDebug: ARJUNA012075: Action Aborting \r\njavax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.\r\n\tat com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1212)\r\n\tat com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)\r\n\tat ceylon.transaction.ConcreteTransactionManager$ConcreteTransaction.commit(ConcreteTransactionManager.ceylon:175)\r\n\tat test.ceylon.transaction.runTxn_.runTxn(ds.ceylon:135)\r\n\tat test.ceylon.transaction.sqlTest2b_.sqlTest2b(ds.ceylon:202)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.AppliedFunction.$call$(AppliedFunction.java:286)\r\n\tat com.redhat.ceylon.compiler.java.Util.apply(Util.java:1450)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.Metamodel.apply(Metamodel.java:1801)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.AppliedFunction.apply(AppliedFunction.java:438)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.FreeFunction.invoke(FreeFunction.java:232)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.FreeFunction.invoke(FreeFunction.java:221)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.FreeFunction.invoke(FreeFunction.java:214)\r\n\tat ceylon.test.core.DefaultTestExecutor.invokeFunction$priv$(DefaultTestExecutor.ceylon:237)\r\n\tat ceylon.test.core.DefaultTestExecutor.access$100(DefaultTestExecutor.ceylon:20)\r\n\tat ceylon.test.core.DefaultTestExecutor$4.$call$(DefaultTestExecutor.ceylon:205)\r\n\tat ceylon.test.core.DefaultTestExecutor$2.$call$(DefaultTestExecutor.ceylon:172)\r\n\tat ceylon.test.core.DefaultTestExecutor$3.$call$(DefaultTestExecutor.ceylon:179)\r\n\tat ceylon.test.core.DefaultTestExecutor$1.$call$(DefaultTestExecutor.ceylon:152)\r\n\tat ceylon.test.core.DefaultTestExecutor.execute(DefaultTestExecutor.ceylon:32)\r\n\tat ceylon.test.core.DefaultTestRunner$5$1.next(DefaultTestRunner.ceylon:60)\r\n\tat ceylon.language.Array.createArrayFromIterable(Array.java:157)\r\n\tat ceylon.language.Array.<init>(Array.java:106)\r\n\tat ceylon.language.Iterable$impl.sequence(Iterable.ceylon:251)\r\n\tat ceylon.language.impl.BaseIterable.sequence(bases.ceylon)\r\n\tat ceylon.test.core.DefaultTestRunner.run(DefaultTestRunner.ceylon:60)\r\n\tat com.redhat.ceylon.testjvm.Runner.run(tool.ceylon:84)\r\n\tat com.redhat.ceylon.testjvm.run_.run(tool.ceylon:36)\r\n\tat com.redhat.ceylon.testjvm.run_.main(tool.ceylon)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat ceylon.modules.api.runtime.SecurityActions.invokeRunInternal(SecurityActions.java:57)\r\n\tat ceylon.modules.api.runtime.SecurityActions.invokeRun(SecurityActions.java:48)\r\n\tat ceylon.modules.api.runtime.AbstractRuntime.invokeRun(AbstractRuntime.java:75)\r\n\tat ceylon.modules.api.runtime.AbstractRuntime.execute(AbstractRuntime.java:122)\r\n\tat ceylon.modules.api.runtime.AbstractRuntime.execute(AbstractRuntime.java:106)\r\n\tat ceylon.modules.Main.execute(Main.java:69)\r\n\tat ceylon.modules.Main.main(Main.java:42)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.jboss.modules.Module.run(Module.java:312)\r\n\tat org.jboss.modules.Main.main(Main.java:460)\r\n\tat ceylon.modules.bootstrap.CeylonRunTool.run(CeylonRunTool.java:244)\r\n\tat ceylon.modules.bootstrap.CeylonTestTool.run(CeylonTestTool.java:173)\r\n\tat com.redhat.ceylon.common.tools.CeylonTool.run(CeylonTool.java:491)\r\n\tat com.redhat.ceylon.common.tools.CeylonTool.execute(CeylonTool.java:380)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.redhat.ceylon.launcher.Launcher.runInJava7Checked(Launcher.java:114)\r\n\tat com.redhat.ceylon.launcher.Launcher.run(Launcher.java:41)\r\n\tat com.redhat.ceylon.launcher.Launcher.run(Launcher.java:34)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.redhat.ceylon.launcher.Bootstrap.run(Bootstrap.java:55)\r\n\tat com.redhat.ceylon.launcher.Bootstrap.main(Bootstrap.java:32)\r\nrunning: test.ceylon.transaction::sqlTest3\r\nDebug: ARJUNA016047: Could not serialize a Serializable XAResource! \r\nDebug: ARJUNA012082: BasicAction::prepare - creating intentions list failed for {0} \r\nDebug: ARJUNA012073: BasicAction.End() - prepare phase of action-id {0} failed. \r\nDebug: ARJUNA012075: Action Aborting \r\nDebug: ARJUNA016045: attempted rollback of {0} ({1}) failed with exception code {2} javax.transaction.xa.XAException: Transaction \"XID_131077_00000000000000000000FFFF7F0001010000A135561CC9980000002F0000000000000000_00000000000000000000FFFF7F0001010000A135561CC9980000002E31\" not found; SQL statement:\r\nROLLBACK TRANSACTION XID_131077_00000000000000000000ffff7f0001010000a135561cc9980000002f0000000000000000_00000000000000000000ffff7f0001010000a135561cc9980000002e31 [90129-168]\r\nDebug: ARJUNA012091: Top-level abort of action {0} received {1} from {2} \r\nceylon.language.AssertionError \"Assertion failed\r\n\tviolated entry.item + 1 == c\"\r\n\tat test.ceylon.transaction.sqlTest3_.sqlTest3(ds.ceylon:251)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.AppliedFunction.$call$(AppliedFunction.java:286)\r\n\tat com.redhat.ceylon.compiler.java.Util.apply(Util.java:1450)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.Metamodel.apply(Metamodel.java:1801)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.AppliedFunction.apply(AppliedFunction.java:438)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.FreeFunction.invoke(FreeFunction.java:232)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.FreeFunction.invoke(FreeFunction.java:221)\r\n\tat com.redhat.ceylon.compiler.java.runtime.metamodel.FreeFunction.invoke(FreeFunction.java:214)\r\n\tat ceylon.test.core.DefaultTestExecutor.invokeFunction$priv$(DefaultTestExecutor.ceylon:237)\r\n\tat ceylon.test.core.DefaultTestExecutor.access$100(DefaultTestExecutor.ceylon:20)\r\n\tat ceylon.test.core.DefaultTestExecutor$4.$call$(DefaultTestExecutor.ceylon:205)\r\n\tat ceylon.test.core.DefaultTestExecutor$2.$call$(DefaultTestExecutor.ceylon:172)\r\n\tat ceylon.test.core.DefaultTestExecutor$3.$call$(DefaultTestExecutor.ceylon:179)\r\n\tat ceylon.test.core.DefaultTestExecutor$1.$call$(DefaultTestExecutor.ceylon:152)\r\n\tat ceylon.test.core.DefaultTestExecutor.execute(DefaultTestExecutor.ceylon:32)\r\n\tat ceylon.test.core.DefaultTestRunner$5$1.next(DefaultTestRunner.ceylon:60)\r\n\tat ceylon.language.Array.createArrayFromIterable(Array.java:157)\r\n\tat ceylon.language.Array.<init>(Array.java:106)\r\n\tat ceylon.language.Iterable$impl.sequence(Iterable.ceylon:251)\r\n\tat ceylon.language.impl.BaseIterable.sequence(bases.ceylon)\r\n\tat ceylon.test.core.DefaultTestRunner.run(DefaultTestRunner.ceylon:60)\r\n\tat com.redhat.ceylon.testjvm.Runner.run(tool.ceylon:84)\r\n\tat com.redhat.ceylon.testjvm.run_.run(tool.ceylon:36)\r\n\tat com.redhat.ceylon.testjvm.run_.main(tool.ceylon)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat ceylon.modules.api.runtime.SecurityActions.invokeRunInternal(SecurityActions.java:57)\r\n\tat ceylon.modules.api.runtime.SecurityActions.invokeRun(SecurityActions.java:48)\r\n\tat ceylon.modules.api.runtime.AbstractRuntime.invokeRun(AbstractRuntime.java:75)\r\n\tat ceylon.modules.api.runtime.AbstractRuntime.execute(AbstractRuntime.java:122)\r\n\tat ceylon.modules.api.runtime.AbstractRuntime.execute(AbstractRuntime.java:106)\r\n\tat ceylon.modules.Main.execute(Main.java:69)\r\n\tat ceylon.modules.Main.main(Main.java:42)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.jboss.modules.Module.run(Module.java:312)\r\n\tat org.jboss.modules.Main.main(Main.java:460)\r\n\tat ceylon.modules.bootstrap.CeylonRunTool.run(CeylonRunTool.java:244)\r\n\tat ceylon.modules.bootstrap.CeylonTestTool.run(CeylonTestTool.java:173)\r\n\tat com.redhat.ceylon.common.tools.CeylonTool.run(CeylonTool.java:491)\r\n\tat com.redhat.ceylon.common.tools.CeylonTool.execute(CeylonTool.java:380)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.redhat.ceylon.launcher.Launcher.runInJava7Checked(Launcher.java:114)\r\n\tat com.redhat.ceylon.launcher.Launcher.run(Launcher.java:41)\r\n\tat com.redhat.ceylon.launcher.Launcher.run(Launcher.java:34)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat com.redhat.ceylon.launcher.Bootstrap.run(Bootstrap.java:55)\r\n\tat com.redhat.ceylon.launcher.Bootstrap.main(Bootstrap.java:32)\r\n```"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon-sdk/issues/comments/147713741","html_url":"https://github.com/ceylon/ceylon-sdk/issues/433#issuecomment-147713741","issue_url":"https://api.github.com/repos/ceylon/ceylon-sdk/issues/433","id":147713741,"user":{"login":"mmusgrov","id":493492,"avatar_url":"https://avatars.githubusercontent.com/u/493492?v=3","gravatar_id":"","url":"https://api.github.com/users/mmusgrov","html_url":"https://github.com/mmusgrov","followers_url":"https://api.github.com/users/mmusgrov/followers","following_url":"https://api.github.com/users/mmusgrov/following{/other_user}","gists_url":"https://api.github.com/users/mmusgrov/gists{/gist_id}","starred_url":"https://api.github.com/users/mmusgrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmusgrov/subscriptions","organizations_url":"https://api.github.com/users/mmusgrov/orgs","repos_url":"https://api.github.com/users/mmusgrov/repos","events_url":"https://api.github.com/users/mmusgrov/events{/privacy}","received_events_url":"https://api.github.com/users/mmusgrov/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T13:27:10Z","updated_at":"2015-10-13T13:27:10Z","body":"Hey, I wasn't naming any names ;-)"}}