[jira] (SUREFIRE-962) SmartStackTraceParser cannot handle manipulated stack traces gracefully

2013-02-23 Thread Andreas Gudian (JIRA)

 [ 
https://jira.codehaus.org/browse/SUREFIRE-962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Gudian closed SUREFIRE-962.
---

Resolution: Fixed

 SmartStackTraceParser cannot handle manipulated stack traces gracefully
 ---

 Key: SUREFIRE-962
 URL: https://jira.codehaus.org/browse/SUREFIRE-962
 Project: Maven Surefire
  Issue Type: Bug
 Environment: 2.13, 2.14-SNAPSHOT
Reporter: Sebastian Schuth
Assignee: Andreas Gudian
 Fix For: 2.14


 Following setup:
 cucumber-jvm runs specs using a JUnit Test case.
 In case of an error, surefire seems to try to be smart and parses the stack 
 trace cucumber-jvm has, well, somewhat manipulated. 
 As far as i can tell, {{SmartStackTraceParser}} is not able to handle 
 manipulated stack traces gracefully.
 This leads to following maven output:
 {code}
 [ERROR] Failed to execute goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test 
 (default-test) on project customer: Execution default-test of goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test failed: 
 There was an error in the forked process
 [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: 
 java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
 Destinations get exchanged; nested exception is java.lang.RuntimeException: 
 java.lang.ClassNotFoundException: Scenario: Destinations get exchanged
 [ERROR] java.lang.RuntimeException: java.lang.ClassNotFoundException: 
 Scenario: Destinations get exchanged
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.init(SmartStackTraceParser.java:53)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.testFailed(ForkingRunListener.java:138)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:107)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
 [ERROR] at 
 org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
 [ERROR] at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:83)
 [ERROR] at cucumber.runtime.Runtime.runStep(Runtime.java:278)
 [ERROR] at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
 [ERROR] at 
 cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
 [ERROR] at 
 cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
 [ERROR] at 
 cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 {code}
 Version 2.12.3 can handle the manipulated stack trace.
 To be clear: i am not really sure if this is an error within surefire or if 
 cucumber-jvm should just keep its hands off the stack trace it produces, but 
 the behavior of surefire changed between 2.12 and 2.13, so this may be worth 
 fixing.
 If you are interested in fixing this, i will happily create a project for 
 reproducing the error. 

--
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


[jira] (SUREFIRE-962) SmartStackTraceParser cannot handle manipulated stack traces gracefully

2013-02-23 Thread Andreas Gudian (JIRA)

 [ 
https://jira.codehaus.org/browse/SUREFIRE-962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Gudian reassigned SUREFIRE-962:
---

Assignee: Andreas Gudian

 SmartStackTraceParser cannot handle manipulated stack traces gracefully
 ---

 Key: SUREFIRE-962
 URL: https://jira.codehaus.org/browse/SUREFIRE-962
 Project: Maven Surefire
  Issue Type: Bug
 Environment: 2.13, 2.14-SNAPSHOT
Reporter: Sebastian Schuth
Assignee: Andreas Gudian
 Fix For: 2.14


 Following setup:
 cucumber-jvm runs specs using a JUnit Test case.
 In case of an error, surefire seems to try to be smart and parses the stack 
 trace cucumber-jvm has, well, somewhat manipulated. 
 As far as i can tell, {{SmartStackTraceParser}} is not able to handle 
 manipulated stack traces gracefully.
 This leads to following maven output:
 {code}
 [ERROR] Failed to execute goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test 
 (default-test) on project customer: Execution default-test of goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test failed: 
 There was an error in the forked process
 [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: 
 java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
 Destinations get exchanged; nested exception is java.lang.RuntimeException: 
 java.lang.ClassNotFoundException: Scenario: Destinations get exchanged
 [ERROR] java.lang.RuntimeException: java.lang.ClassNotFoundException: 
 Scenario: Destinations get exchanged
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.init(SmartStackTraceParser.java:53)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.testFailed(ForkingRunListener.java:138)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:107)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
 [ERROR] at 
 org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
 [ERROR] at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:83)
 [ERROR] at cucumber.runtime.Runtime.runStep(Runtime.java:278)
 [ERROR] at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
 [ERROR] at 
 cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
 [ERROR] at 
 cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
 [ERROR] at 
 cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 {code}
 Version 2.12.3 can handle the manipulated stack trace.
 To be clear: i am not really sure if this is an error within surefire or if 
 cucumber-jvm should just keep its hands off the stack trace it produces, but 
 the behavior of surefire changed between 2.12 and 2.13, so this may be worth 
 fixing.
 If you are interested in fixing this, i will happily create a project for 
 reproducing the error. 

--
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


[jira] (SUREFIRE-962) SmartStackTraceParser cannot handle manipulated stack traces gracefully

2013-02-23 Thread Sebastian Schuth (JIRA)

[ 
https://jira.codehaus.org/browse/SUREFIRE-962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=320392#comment-320392
 ] 

Sebastian Schuth commented on SUREFIRE-962:
---

Ok, my bad ? looked like it was the stack trace. Actually, i wasn't able to 
find the source code to have a look myself. I guess it would be possible to 
find it, but its not as easy as it should be, at least for someone with my web 
search abilities ;)


Thanks for fixing! ? I will check out the 2.14-SNAPSHOT version asap.


 SmartStackTraceParser cannot handle manipulated stack traces gracefully
 ---

 Key: SUREFIRE-962
 URL: https://jira.codehaus.org/browse/SUREFIRE-962
 Project: Maven Surefire
  Issue Type: Bug
 Environment: 2.13, 2.14-SNAPSHOT
Reporter: Sebastian Schuth
Assignee: Andreas Gudian
 Fix For: 2.14


 Following setup:
 cucumber-jvm runs specs using a JUnit Test case.
 In case of an error, surefire seems to try to be smart and parses the stack 
 trace cucumber-jvm has, well, somewhat manipulated. 
 As far as i can tell, {{SmartStackTraceParser}} is not able to handle 
 manipulated stack traces gracefully.
 This leads to following maven output:
 {code}
 [ERROR] Failed to execute goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test 
 (default-test) on project customer: Execution default-test of goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test failed: 
 There was an error in the forked process
 [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: 
 java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
 Destinations get exchanged; nested exception is java.lang.RuntimeException: 
 java.lang.ClassNotFoundException: Scenario: Destinations get exchanged
 [ERROR] java.lang.RuntimeException: java.lang.ClassNotFoundException: 
 Scenario: Destinations get exchanged
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.init(SmartStackTraceParser.java:53)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.testFailed(ForkingRunListener.java:138)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:107)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
 [ERROR] at 
 org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
 [ERROR] at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:83)
 [ERROR] at cucumber.runtime.Runtime.runStep(Runtime.java:278)
 [ERROR] at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
 [ERROR] at 
 cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
 [ERROR] at 
 cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
 [ERROR] at 
 cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 {code}
 Version 2.12.3 can handle the manipulated stack trace.
 To be clear: i am not really sure if this is an error within surefire or if 
 cucumber-jvm should just keep its hands off the stack trace it produces, but 
 the behavior of surefire changed between 2.12 and 2.13, so this may be worth 
 fixing.
 If you are interested in fixing this, i will happily create a project for 
 reproducing the error. 

--
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


[jira] (SUREFIRE-962) SmartStackTraceParser cannot handle manipulated stack traces gracefully

2013-02-22 Thread Andreas Gudian (JIRA)

[ 
https://jira.codehaus.org/browse/SUREFIRE-962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=320341#comment-320341
 ] 

Andreas Gudian commented on SUREFIRE-962:
-

Thanks for the example! It turned out that it's not the stack trace that was 
the problem, but the display name of the test description. Usually, it 
contains the test class name, in this case it was something different.

I did a quick fix that now returns the not-so-smart localizedMessage of the 
exception.

 SmartStackTraceParser cannot handle manipulated stack traces gracefully
 ---

 Key: SUREFIRE-962
 URL: https://jira.codehaus.org/browse/SUREFIRE-962
 Project: Maven Surefire
  Issue Type: Bug
 Environment: 2.13, 2.14-SNAPSHOT
Reporter: Sebastian Schuth
 Fix For: 2.14


 Following setup:
 cucumber-jvm runs specs using a JUnit Test case.
 In case of an error, surefire seems to try to be smart and parses the stack 
 trace cucumber-jvm has, well, somewhat manipulated. 
 As far as i can tell, {{SmartStackTraceParser}} is not able to handle 
 manipulated stack traces gracefully.
 This leads to following maven output:
 {code}
 [ERROR] Failed to execute goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test 
 (default-test) on project customer: Execution default-test of goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test failed: 
 There was an error in the forked process
 [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: 
 java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
 Destinations get exchanged; nested exception is java.lang.RuntimeException: 
 java.lang.ClassNotFoundException: Scenario: Destinations get exchanged
 [ERROR] java.lang.RuntimeException: java.lang.ClassNotFoundException: 
 Scenario: Destinations get exchanged
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.init(SmartStackTraceParser.java:53)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.testFailed(ForkingRunListener.java:138)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:107)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
 [ERROR] at 
 org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
 [ERROR] at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:83)
 [ERROR] at cucumber.runtime.Runtime.runStep(Runtime.java:278)
 [ERROR] at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
 [ERROR] at 
 cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
 [ERROR] at 
 cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
 [ERROR] at 
 cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 {code}
 Version 2.12.3 can handle the manipulated stack trace.
 To be clear: i am not really sure if this is an error within surefire or if 
 cucumber-jvm should just keep its hands off the stack trace it produces, but 
 the behavior of surefire changed between 2.12 and 2.13, so this may be worth 
 fixing.
 If you are interested in fixing this, i will happily create a project for 
 reproducing the error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (SUREFIRE-962) SmartStackTraceParser cannot handle manipulated stack traces gracefully

2013-02-14 Thread Sebastian Schuth (JIRA)

[ 
https://jira.codehaus.org/browse/SUREFIRE-962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=319150#comment-319150
 ] 

Sebastian Schuth edited comment on SUREFIRE-962 at 2/14/13 2:10 AM:


Yep, here you go:

https://github.com/schuth/cucumber-jvm/tree/reproduce-SUREFIRE-962

The reproduce-SUREFIRE-962 branch should show you the error when doing a 
{{mvn test}} within {{examples/java-helloworld}}.

Let me know if you have any problems.

And yes, i know that this is not a tiny test-project, but just forking the 
cucumber-jvm example was too tempting :)

Thanks.

  was (Author: sschuth):
Yep, here you go:

https://github.com/schuth/cucumber-jvm/tree/reproduce-SUREFIRE-962

The reproduce-SUREFIRE-962 branch should show you the error when doing a 
{{mvn test}}.

Let me know if you have any problems.

And yes, i know that this is not a tiny test-project, but just forking the 
cucumber-jvm example was too tempting :)

Thanks.
  
 SmartStackTraceParser cannot handle manipulated stack traces gracefully
 ---

 Key: SUREFIRE-962
 URL: https://jira.codehaus.org/browse/SUREFIRE-962
 Project: Maven Surefire
  Issue Type: Bug
 Environment: 2.13, 2.14-SNAPSHOT
Reporter: Sebastian Schuth

 Following setup:
 cucumber-jvm runs specs using a JUnit Test case.
 In case of an error, surefire seems to try to be smart and parses the stack 
 trace cucumber-jvm has, well, somewhat manipulated. 
 As far as i can tell, {{SmartStackTraceParser}} is not able to handle 
 manipulated stack traces gracefully.
 This leads to following maven output:
 {code}
 [ERROR] Failed to execute goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test 
 (default-test) on project customer: Execution default-test of goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test failed: 
 There was an error in the forked process
 [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: 
 java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
 Destinations get exchanged; nested exception is java.lang.RuntimeException: 
 java.lang.ClassNotFoundException: Scenario: Destinations get exchanged
 [ERROR] java.lang.RuntimeException: java.lang.ClassNotFoundException: 
 Scenario: Destinations get exchanged
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.init(SmartStackTraceParser.java:53)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.testFailed(ForkingRunListener.java:138)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:107)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
 [ERROR] at 
 org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
 [ERROR] at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:83)
 [ERROR] at cucumber.runtime.Runtime.runStep(Runtime.java:278)
 [ERROR] at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
 [ERROR] at 
 cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
 [ERROR] at 
 cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
 [ERROR] at 
 cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 {code}
 Version 2.12.3 can handle the manipulated stack trace.
 To be clear: i am not really sure if this is an error within surefire or if 
 cucumber-jvm should just keep its hands off the stack trace it produces, but 
 the behavior of surefire changed between 2.12 and 2.13, so this may be worth 
 fixing.
 If you are interested in fixing this, i will happily create a project for 
 reproducing the error. 

--
This message is automatically generated by JIRA.
If 

[jira] (SUREFIRE-962) SmartStackTraceParser cannot handle manipulated stack traces gracefully

2013-02-14 Thread Kristian Rosenvold (JIRA)

 [ 
https://jira.codehaus.org/browse/SUREFIRE-962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Rosenvold updated SUREFIRE-962:


Fix Version/s: 2.14

 SmartStackTraceParser cannot handle manipulated stack traces gracefully
 ---

 Key: SUREFIRE-962
 URL: https://jira.codehaus.org/browse/SUREFIRE-962
 Project: Maven Surefire
  Issue Type: Bug
 Environment: 2.13, 2.14-SNAPSHOT
Reporter: Sebastian Schuth
 Fix For: 2.14


 Following setup:
 cucumber-jvm runs specs using a JUnit Test case.
 In case of an error, surefire seems to try to be smart and parses the stack 
 trace cucumber-jvm has, well, somewhat manipulated. 
 As far as i can tell, {{SmartStackTraceParser}} is not able to handle 
 manipulated stack traces gracefully.
 This leads to following maven output:
 {code}
 [ERROR] Failed to execute goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test 
 (default-test) on project customer: Execution default-test of goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test failed: 
 There was an error in the forked process
 [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: 
 java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
 Destinations get exchanged; nested exception is java.lang.RuntimeException: 
 java.lang.ClassNotFoundException: Scenario: Destinations get exchanged
 [ERROR] java.lang.RuntimeException: java.lang.ClassNotFoundException: 
 Scenario: Destinations get exchanged
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.init(SmartStackTraceParser.java:53)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.testFailed(ForkingRunListener.java:138)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:107)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
 [ERROR] at 
 org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
 [ERROR] at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:83)
 [ERROR] at cucumber.runtime.Runtime.runStep(Runtime.java:278)
 [ERROR] at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
 [ERROR] at 
 cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
 [ERROR] at 
 cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
 [ERROR] at 
 cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 {code}
 Version 2.12.3 can handle the manipulated stack trace.
 To be clear: i am not really sure if this is an error within surefire or if 
 cucumber-jvm should just keep its hands off the stack trace it produces, but 
 the behavior of surefire changed between 2.12 and 2.13, so this may be worth 
 fixing.
 If you are interested in fixing this, i will happily create a project for 
 reproducing the error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (SUREFIRE-962) SmartStackTraceParser cannot handle manipulated stack traces gracefully

2013-02-11 Thread Sebastian Schuth (JIRA)
Sebastian Schuth created SUREFIRE-962:
-

 Summary: SmartStackTraceParser cannot handle manipulated stack 
traces gracefully
 Key: SUREFIRE-962
 URL: https://jira.codehaus.org/browse/SUREFIRE-962
 Project: Maven Surefire
  Issue Type: Bug
 Environment: 2.13, 2.14-SNAPSHOT
Reporter: Sebastian Schuth


Following setup:

cucumber-jvm runs specs using a JUnit Test case.

In case of an error, surefire seems to try to be smart and parses the stack 
trace cucumber-jvm has, well, somewhat manipulated. 

As far as i can tell, {{SmartStackTraceParser}} is not able to handle 
manipulated stack traces gracefully.


This leads to following maven output:

{code}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test 
(default-test) on project customer: Execution default-test of goal 
org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test failed: There 
was an error in the forked process
[ERROR] org.apache.maven.surefire.testset.TestSetFailedException: 
java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
Destinations get exchanged; nested exception is java.lang.RuntimeException: 
java.lang.ClassNotFoundException: Scenario: Destinations get exchanged
[ERROR] java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
Destinations get exchanged
[ERROR] at 
org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
[ERROR] at 
org.apache.maven.surefire.report.SmartStackTraceParser.init(SmartStackTraceParser.java:53)
[ERROR] at 
org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
[ERROR] at 
org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
[ERROR] at 
org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
[ERROR] at 
org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
[ERROR] at 
org.apache.maven.surefire.booter.ForkingRunListener.testFailed(ForkingRunListener.java:138)
[ERROR] at 
org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:107)
[ERROR] at 
org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
[ERROR] at 
org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
[ERROR] at 
org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
[ERROR] at 
org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
[ERROR] at 
org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
[ERROR] at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:83)
[ERROR] at cucumber.runtime.Runtime.runStep(Runtime.java:278)
[ERROR] at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
[ERROR] at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
[ERROR] at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
[ERROR] at 
cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
[ERROR] at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
[ERROR] at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
{code}

Version 2.12.3 can handle the manipulated stack trace.

To be clear: i am not really sure if this is an error within surefire or if 
cucumber-jvm should just keep its hands off the stack trace it produces, but 
the behavior of surefire changed between 2.12 and 2.13, so this may be worth 
fixing.

If you are interested in fixing this, i will happily create a project for 
reproducing the error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (SUREFIRE-962) SmartStackTraceParser cannot handle manipulated stack traces gracefully

2013-02-11 Thread Kristian Rosenvold (JIRA)

[ 
https://jira.codehaus.org/browse/SUREFIRE-962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=319133#comment-319133
 ] 

Kristian Rosenvold commented on SUREFIRE-962:
-

Can you make a tiny test-project that demonstrates this? I think we should fix 
this ;)

 SmartStackTraceParser cannot handle manipulated stack traces gracefully
 ---

 Key: SUREFIRE-962
 URL: https://jira.codehaus.org/browse/SUREFIRE-962
 Project: Maven Surefire
  Issue Type: Bug
 Environment: 2.13, 2.14-SNAPSHOT
Reporter: Sebastian Schuth

 Following setup:
 cucumber-jvm runs specs using a JUnit Test case.
 In case of an error, surefire seems to try to be smart and parses the stack 
 trace cucumber-jvm has, well, somewhat manipulated. 
 As far as i can tell, {{SmartStackTraceParser}} is not able to handle 
 manipulated stack traces gracefully.
 This leads to following maven output:
 {code}
 [ERROR] Failed to execute goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test 
 (default-test) on project customer: Execution default-test of goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test failed: 
 There was an error in the forked process
 [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: 
 java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
 Destinations get exchanged; nested exception is java.lang.RuntimeException: 
 java.lang.ClassNotFoundException: Scenario: Destinations get exchanged
 [ERROR] java.lang.RuntimeException: java.lang.ClassNotFoundException: 
 Scenario: Destinations get exchanged
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.init(SmartStackTraceParser.java:53)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.testFailed(ForkingRunListener.java:138)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:107)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
 [ERROR] at 
 org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
 [ERROR] at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:83)
 [ERROR] at cucumber.runtime.Runtime.runStep(Runtime.java:278)
 [ERROR] at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
 [ERROR] at 
 cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
 [ERROR] at 
 cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
 [ERROR] at 
 cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 {code}
 Version 2.12.3 can handle the manipulated stack trace.
 To be clear: i am not really sure if this is an error within surefire or if 
 cucumber-jvm should just keep its hands off the stack trace it produces, but 
 the behavior of surefire changed between 2.12 and 2.13, so this may be worth 
 fixing.
 If you are interested in fixing this, i will happily create a project for 
 reproducing the error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (SUREFIRE-962) SmartStackTraceParser cannot handle manipulated stack traces gracefully

2013-02-11 Thread Sebastian Schuth (JIRA)

[ 
https://jira.codehaus.org/browse/SUREFIRE-962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=319150#comment-319150
 ] 

Sebastian Schuth commented on SUREFIRE-962:
---

Yep, here you go:

https://github.com/schuth/cucumber-jvm/tree/reproduce-SUREFIRE-962

The reproduce-SUREFIRE-962 branch should show you the error when doing a 
{{mvn test}}.

Let me know if you have any problems.

And yes, i know that this is not a tiny test-project, but just forking the 
cucumber-jvm example was too tempting :)

Thanks.

 SmartStackTraceParser cannot handle manipulated stack traces gracefully
 ---

 Key: SUREFIRE-962
 URL: https://jira.codehaus.org/browse/SUREFIRE-962
 Project: Maven Surefire
  Issue Type: Bug
 Environment: 2.13, 2.14-SNAPSHOT
Reporter: Sebastian Schuth

 Following setup:
 cucumber-jvm runs specs using a JUnit Test case.
 In case of an error, surefire seems to try to be smart and parses the stack 
 trace cucumber-jvm has, well, somewhat manipulated. 
 As far as i can tell, {{SmartStackTraceParser}} is not able to handle 
 manipulated stack traces gracefully.
 This leads to following maven output:
 {code}
 [ERROR] Failed to execute goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test 
 (default-test) on project customer: Execution default-test of goal 
 org.apache.maven.plugins:maven-surefire-plugin:2.14-SNAPSHOT:test failed: 
 There was an error in the forked process
 [ERROR] org.apache.maven.surefire.testset.TestSetFailedException: 
 java.lang.RuntimeException: java.lang.ClassNotFoundException: Scenario: 
 Destinations get exchanged; nested exception is java.lang.RuntimeException: 
 java.lang.ClassNotFoundException: Scenario: Destinations get exchanged
 [ERROR] java.lang.RuntimeException: java.lang.ClassNotFoundException: 
 Scenario: Destinations get exchanged
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.getClass(SmartStackTraceParser.java:67)
 [ERROR] at 
 org.apache.maven.surefire.report.SmartStackTraceParser.init(SmartStackTraceParser.java:53)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter.smartTrimmedStackTrace(JUnit4StackTraceWriter.java:72)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:329)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:313)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.toString(ForkingRunListener.java:259)
 [ERROR] at 
 org.apache.maven.surefire.booter.ForkingRunListener.testFailed(ForkingRunListener.java:138)
 [ERROR] at 
 org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:107)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134)
 [ERROR] at 
 org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128)
 [ERROR] at 
 org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23)
 [ERROR] at cucumber.runtime.junit.JUnitReporter.result(JUnitReporter.java:83)
 [ERROR] at cucumber.runtime.Runtime.runStep(Runtime.java:278)
 [ERROR] at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
 [ERROR] at 
 cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
 [ERROR] at 
 cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
 [ERROR] at 
 cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
 [ERROR] at 
 cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
 {code}
 Version 2.12.3 can handle the manipulated stack trace.
 To be clear: i am not really sure if this is an error within surefire or if 
 cucumber-jvm should just keep its hands off the stack trace it produces, but 
 the behavior of surefire changed between 2.12 and 2.13, so this may be worth 
 fixing.
 If you are interested in fixing this, i will happily create a project for 
 reproducing the error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira