java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When scenario name contains 'less than' (<) or 'greater than' (>) character and a file (a sceenshot with sanitized (\W to _) path) is embedded into a json report, the plugin throws FileNotFoundException when trying to parse such json report with embedded file. {code:java} Archiving artifacts [Cucumber Tests] Parsing results. [Cucumber Tests] parsing salai.test.merlin.json ERROR: Failed to archive cucumber reports java.io.IOException: Failed to copy C:\Windows\TEMP\cuke_7445626561105425964.embed to c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed at hudson.FilePath.copyTo(FilePath.java:1978) at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:136) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.io.FileNotFoundException: c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at hudson.FilePath.write(FilePath.java:1867) at hudson.FilePath.copyTo(FilePath.java:1971) ... 10 more {code}
    via by Ilya Kozhevnikov,
  • When scenario name contains 'less than' (<) or 'greater than' (>) character and a file (a sceenshot with sanitized (\W to _) path) is embedded into a json report, the plugin throws FileNotFoundException when trying to parse such json report with embedded file. {code:java} Archiving artifacts [Cucumber Tests] Parsing results. [Cucumber Tests] parsing salai.test.merlin.json ERROR: Failed to archive cucumber reports java.io.IOException: Failed to copy C:\Windows\TEMP\cuke_7445626561105425964.embed to c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed at hudson.FilePath.copyTo(FilePath.java:1978) at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:136) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.io.FileNotFoundException: c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at hudson.FilePath.write(FilePath.java:1867) at hudson.FilePath.copyTo(FilePath.java:1971) ... 10 more {code}
    via by Ilya Kozhevnikov,
  • GitHub comment 192#176275606
    via GitHub by awaemmanuel
    ,
  • sbt.ivy.home not always used
    via GitHub by yanns
    ,
    • java.io.IOException: Failed to copy C:\Windows\TEMP\cuke_7445626561105425964.embed to c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed at hudson.FilePath.copyTo(FilePath.java:1978) at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:136) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.io.FileNotFoundException: c:\foopath\jenkins\jobs\foo_job\builds\2016-01-25_12-43-38\cucumber\embed\foo-feature-name\foo-scenario-name->-10-days;;2\cuke_7445626561105425964.embed (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at hudson.FilePath.write(FilePath.java:1867) at hudson.FilePath.copyTo(FilePath.java:1971) ... 10 more

    Users with the same issue

    Matty
    1 times, last one,
    Unknown visitor1 times, last one,
    Axelo
    2 times, last one,
    Unknown visitor1 times, last one,
    bandoca
    1 times, last one,
    161 more bugmates