[JBoss JIRA] (JBTM-1766) STM test failure with emma: Failed tests: testTransaction(org.jboss.stm.types.AtomicIntegerUnitTest): expected:<1> but was:<0>
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1766?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson updated JBTM-1766:
--------------------------------
Steps to Reproduce:
./build.sh -PcodeCoverage clean install -pl STM -Dtest=AtomicIntegerUnitTest#testTransaction
was:
./build.sh -PcodeCoverage clean install -pl STM/
> STM test failure with emma: Failed tests: testTransaction(org.jboss.stm.types.AtomicIntegerUnitTest): expected:<1> but was:<0>
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBTM-1766
> URL: https://issues.jboss.org/browse/JBTM-1766
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: STM, Testing
> Reporter: Tom Jenkinson
> Assignee: Mark Little
> Priority: Minor
> Fix For: 5.0.0.M4
>
>
> Most tests run OK, just this one:
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.548 sec <<< FAILURE!
> testTransaction(org.jboss.stm.types.AtomicIntegerUnitTest) Time elapsed: 0.328 sec <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<1> but was:<0>
> at junit.framework.Assert.fail(Assert.java:50)
> at junit.framework.Assert.failNotEquals(Assert.java:287)
> at junit.framework.Assert.assertEquals(Assert.java:67)
> at junit.framework.Assert.assertEquals(Assert.java:199)
> at junit.framework.Assert.assertEquals(Assert.java:205)
> at org.jboss.stm.types.AtomicIntegerUnitTest.testTransaction(AtomicIntegerUnitTest.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> at junit.framework.TestCase.runBare(TestCase.java:134)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:124)
> at junit.framework.TestSuite.runTest(TestSuite.java:243)
> at junit.framework.TestSuite.run(TestSuite.java:238)
> at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
> at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
> at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Could it be caused by emma altering the bytecode (which it has to do)?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (JBTM-1766) STM test failure with emma: Failed tests: testTransaction(org.jboss.stm.types.AtomicIntegerUnitTest): expected:<1> but was:<0>
by Mark Little (JIRA)
[ https://issues.jboss.org/browse/JBTM-1766?page=com.atlassian.jira.plugin.... ]
Mark Little commented on JBTM-1766:
-----------------------------------
It seems that in the test ...
act.begin();
ai.set(1);
assertEquals(ai.get(), 1);
act.abort();
The invocation of act.abort() is not happening when using emma! act is set correctly, but for some reason the method isn't being called.
> STM test failure with emma: Failed tests: testTransaction(org.jboss.stm.types.AtomicIntegerUnitTest): expected:<1> but was:<0>
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBTM-1766
> URL: https://issues.jboss.org/browse/JBTM-1766
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: STM, Testing
> Reporter: Tom Jenkinson
> Assignee: Mark Little
> Priority: Minor
> Fix For: 5.0.0.M4
>
>
> Most tests run OK, just this one:
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.548 sec <<< FAILURE!
> testTransaction(org.jboss.stm.types.AtomicIntegerUnitTest) Time elapsed: 0.328 sec <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<1> but was:<0>
> at junit.framework.Assert.fail(Assert.java:50)
> at junit.framework.Assert.failNotEquals(Assert.java:287)
> at junit.framework.Assert.assertEquals(Assert.java:67)
> at junit.framework.Assert.assertEquals(Assert.java:199)
> at junit.framework.Assert.assertEquals(Assert.java:205)
> at org.jboss.stm.types.AtomicIntegerUnitTest.testTransaction(AtomicIntegerUnitTest.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at junit.framework.TestCase.runTest(TestCase.java:168)
> at junit.framework.TestCase.runBare(TestCase.java:134)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:124)
> at junit.framework.TestSuite.runTest(TestSuite.java:243)
> at junit.framework.TestSuite.run(TestSuite.java:238)
> at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
> at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
> at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Could it be caused by emma altering the bytecode (which it has to do)?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (JBTM-1772) Cannot build with emma as dependency on adinn.jar?
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1772?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson commented on JBTM-1772:
-------------------------------------
Hi Mark,
It is automated for a normal build, you were attempting a partial build, i.e. a specific module.
So for example:
./build.sh -PcodeCoverage
That would automatically have done everything you needed and you should not have seen an error.
But as you did:
./build.sh clean install -PcodeCoverage -pl STM
i.e. a specific module, then the build can't do the install of that module for you so you have to install the module by hand (once).
> Cannot build with emma as dependency on adinn.jar?
> --------------------------------------------------
>
> Key: JBTM-1772
> URL: https://issues.jboss.org/browse/JBTM-1772
> Project: JBoss Transaction Manager
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Build System, Testing
> Affects Versions: 5.0.0.M4
> Environment: Mac OS 10.7
> Reporter: Mark Little
> Assignee: Tom Jenkinson
> Priority: Blocker
>
> When trying to build STM with emma as per 1766 instructions, I get the following build time error:
> /Users/marklittle/github/narayana/tools/maven/bin/mvn -s tools/maven/conf/settings.xml -Dorson.jar.location=/Users/marklittle/github/narayana/ext/ -Demma.jar.location=/Users/marklittle/github/narayana/ext/emma.jar clean install -PcodeCoverage -pl STM
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Narayana: STM 5.0.0.M4-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ core ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ core ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/marklittle/github/narayana/STM/src/main/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ core ---
> [INFO] Compiling 40 source files to /Users/marklittle/github/narayana/STM/target/classes
> [INFO]
> [INFO] --- emma-maven-plugin:1.0-alpha-3:instrument (default) @ core ---
> Downloading: http://repository.jboss.org/nexus/content/groups/public/emma/emma/2.0.122...
> Downloading: http://repo.maven.apache.org/maven2/emma/emma/2.0.12224-adinn/emma-2.0.12...
> [WARNING] The POM for emma:emma:jar:2.0.12224-adinn is missing, no dependency information available
> Downloading: http://repository.jboss.org/nexus/content/groups/public/emma/emma/2.0.122...
> Downloading: http://repo.maven.apache.org/maven2/emma/emma/2.0.12224-adinn/emma-2.0.12...
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4.095s
> [INFO] Finished at: Sun Jun 09 15:31:51 BST 2013
> [INFO] Final Memory: 23M/207M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:emma-maven-plugin:1.0-alpha-3:instrument (default) on project core: Execution default of goal org.codehaus.mojo:emma-maven-plugin:1.0-alpha-3:instrument failed: Plugin org.codehaus.mojo:emma-maven-plugin:1.0-alpha-3 or one of its dependencies could not be resolved: Could not find artifact emma:emma:jar:2.0.12224-adinn in jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (JBTM-1772) Cannot build with emma as dependency on adinn.jar?
by Mark Little (JIRA)
[ https://issues.jboss.org/browse/JBTM-1772?page=com.atlassian.jira.plugin.... ]
Mark Little commented on JBTM-1772:
-----------------------------------
Is this not something that the build can automate?
> Cannot build with emma as dependency on adinn.jar?
> --------------------------------------------------
>
> Key: JBTM-1772
> URL: https://issues.jboss.org/browse/JBTM-1772
> Project: JBoss Transaction Manager
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Build System, Testing
> Affects Versions: 5.0.0.M4
> Environment: Mac OS 10.7
> Reporter: Mark Little
> Assignee: Tom Jenkinson
> Priority: Blocker
>
> When trying to build STM with emma as per 1766 instructions, I get the following build time error:
> /Users/marklittle/github/narayana/tools/maven/bin/mvn -s tools/maven/conf/settings.xml -Dorson.jar.location=/Users/marklittle/github/narayana/ext/ -Demma.jar.location=/Users/marklittle/github/narayana/ext/emma.jar clean install -PcodeCoverage -pl STM
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Narayana: STM 5.0.0.M4-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ core ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ core ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory /Users/marklittle/github/narayana/STM/src/main/resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ core ---
> [INFO] Compiling 40 source files to /Users/marklittle/github/narayana/STM/target/classes
> [INFO]
> [INFO] --- emma-maven-plugin:1.0-alpha-3:instrument (default) @ core ---
> Downloading: http://repository.jboss.org/nexus/content/groups/public/emma/emma/2.0.122...
> Downloading: http://repo.maven.apache.org/maven2/emma/emma/2.0.12224-adinn/emma-2.0.12...
> [WARNING] The POM for emma:emma:jar:2.0.12224-adinn is missing, no dependency information available
> Downloading: http://repository.jboss.org/nexus/content/groups/public/emma/emma/2.0.122...
> Downloading: http://repo.maven.apache.org/maven2/emma/emma/2.0.12224-adinn/emma-2.0.12...
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4.095s
> [INFO] Finished at: Sun Jun 09 15:31:51 BST 2013
> [INFO] Final Memory: 23M/207M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:emma-maven-plugin:1.0-alpha-3:instrument (default) on project core: Execution default of goal org.codehaus.mojo:emma-maven-plugin:1.0-alpha-3:instrument failed: Plugin org.codehaus.mojo:emma-maven-plugin:1.0-alpha-3 or one of its dependencies could not be resolved: Could not find artifact emma:emma:jar:2.0.12224-adinn in jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (JBTM-1755) Spurious warning messages?
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1755?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson updated JBTM-1755:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Spurious warning messages?
> --------------------------
>
> Key: JBTM-1755
> URL: https://issues.jboss.org/browse/JBTM-1755
> Project: JBoss Transaction Manager
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Build System
> Affects Versions: 5.0.0.M3
> Reporter: Mark Little
> Assignee: Tom Jenkinson
> Priority: Minor
> Fix For: 5.0.0.M4
>
>
> [WARNING] The following patterns were never triggered in this artifact inclusion filter:
> o 'org.jboss.narayana.jts:narayana-jts-idlj'
> [WARNING] The following patterns were never triggered in this artifact exclusion filter:
> o '*:javadoc'
> o '**'
> [WARNING] The following patterns were never triggered in this artifact inclusion filter:
> o 'org.jboss.narayana.arjunacore:arjunacore-services'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months