You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Igor Petruk (JIRA)" <ji...@codehaus.org> on 2011/04/19 17:07:22 UTC
[jira] Created: (SUREFIRE-728) Surefire 2.8, surefire-junit4-2.8,
junit 4.6, Spring 3.0.5 - AbstractMethodError
Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5 - AbstractMethodError
--------------------------------------------------------------------------------
Key: SUREFIRE-728
URL: http://jira.codehaus.org/browse/SUREFIRE-728
Project: Maven Surefire
Issue Type: Bug
Components: Maven Surefire Plugin
Affects Versions: 2.8
Environment: Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5, Windows XP
Reporter: Igor Petruk
When used the following versions of the software I get the following report on each test
-------------------------------------------------------------------------------
Test set: somepackage.SomeTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
somepackage.SomeTest Time elapsed: 0 sec <<< ERROR!
java.lang.AbstractMethodError
at org.springframework.test.context.TestContextManager.afterTestClass(TestContextManager.java:448)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:77)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (SUREFIRE-728) Surefire 2.8, surefire-junit4-2.8,
junit 4.6, Spring 3.0.5 - AbstractMethodError
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold closed SUREFIRE-728.
---------------------------------------
Resolution: Cannot Reproduce
Assignee: Kristian Rosenvold
Given the exact same versions of the software, I cannot reproduce this issue.
I think you are picking up some different version of junit, probably the one that is packaged with the spring framework instead of the stock junit:junit version. run mvn dependency:tree an examine which versions of junit you are using.
> Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5 - AbstractMethodError
> --------------------------------------------------------------------------------
>
> Key: SUREFIRE-728
> URL: http://jira.codehaus.org/browse/SUREFIRE-728
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.8
> Environment: Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5, Windows XP
> Reporter: Igor Petruk
> Assignee: Kristian Rosenvold
>
> When used the following versions of the software I get the following report on each test
> -------------------------------------------------------------------------------
> Test set: somepackage.SomeTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
> somepackage.SomeTest Time elapsed: 0 sec <<< ERROR!
> java.lang.AbstractMethodError
> at org.springframework.test.context.TestContextManager.afterTestClass(TestContextManager.java:448)
> at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:77)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-728) Surefire 2.8, surefire-junit4-2.8,
junit 4.6, Spring 3.0.5 - AbstractMethodError
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264177#action_264177 ]
Kristian Rosenvold commented on SUREFIRE-728:
---------------------------------------------
IN SUREFIRE-729 you managed to show enough of your actual plugin configuration to reveal that you are forcing the 4.7 provider. As can be seen here, http://maven.apache.org/plugins/maven-surefire-plugin/examples/providers.html, when you force the provider you are responsible for ensuring that the proper framework version is on the classpath. Which it is not.
> Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5 - AbstractMethodError
> --------------------------------------------------------------------------------
>
> Key: SUREFIRE-728
> URL: http://jira.codehaus.org/browse/SUREFIRE-728
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.8
> Environment: Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5, Windows XP
> Reporter: Igor Petruk
> Assignee: Kristian Rosenvold
>
> When used the following versions of the software I get the following report on each test
> -------------------------------------------------------------------------------
> Test set: somepackage.SomeTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
> somepackage.SomeTest Time elapsed: 0 sec <<< ERROR!
> java.lang.AbstractMethodError
> at org.springframework.test.context.TestContextManager.afterTestClass(TestContextManager.java:448)
> at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:77)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-728) Surefire 2.8, surefire-junit4-2.8,
junit 4.6, Spring 3.0.5 - AbstractMethodError
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264178#action_264178 ]
Kristian Rosenvold commented on SUREFIRE-728:
---------------------------------------------
You are forcing the junit 4.7 provider and using junit 4.6 ?
> Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5 - AbstractMethodError
> --------------------------------------------------------------------------------
>
> Key: SUREFIRE-728
> URL: http://jira.codehaus.org/browse/SUREFIRE-728
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.8
> Environment: Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5, Windows XP
> Reporter: Igor Petruk
> Assignee: Kristian Rosenvold
>
> When used the following versions of the software I get the following report on each test
> -------------------------------------------------------------------------------
> Test set: somepackage.SomeTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
> somepackage.SomeTest Time elapsed: 0 sec <<< ERROR!
> java.lang.AbstractMethodError
> at org.springframework.test.context.TestContextManager.afterTestClass(TestContextManager.java:448)
> at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:77)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-728) Surefire 2.8, surefire-junit4-2.8,
junit 4.6, Spring 3.0.5 - AbstractMethodError
Posted by "Igor Petruk (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263939#action_263939 ]
Igor Petruk commented on SUREFIRE-728:
--------------------------------------
I cannot use JUnit 4.7+ with the according provider, because it does not see my tests at all. It is probably is also a bug.
Everything works just fine in Eclipse.
> Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5 - AbstractMethodError
> --------------------------------------------------------------------------------
>
> Key: SUREFIRE-728
> URL: http://jira.codehaus.org/browse/SUREFIRE-728
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.8
> Environment: Surefire 2.8, surefire-junit4-2.8, junit 4.6, Spring 3.0.5, Windows XP
> Reporter: Igor Petruk
>
> When used the following versions of the software I get the following report on each test
> -------------------------------------------------------------------------------
> Test set: somepackage.SomeTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
> somepackage.SomeTest Time elapsed: 0 sec <<< ERROR!
> java.lang.AbstractMethodError
> at org.springframework.test.context.TestContextManager.afterTestClass(TestContextManager.java:448)
> at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:77)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
> at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
> at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
> at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira