java.io.FileNotFoundException: C:\Program Files (x86)\Jenkins\jobs\Dashboard\builds\2012-10-08_16-58-57\violations\file\Dashboard.API.CcsApi+<>c__DisplayClass2a.xml (The filename, directory name, or volume label syntax is incorrect)

Jenkins JIRA | Jared Szechy | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I receive the following exception when the violations report is being published. ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception java.io.FileNotFoundException: C:\Program Files (x86)\Jenkins\jobs\Dashboard\builds\2012-10-08_16-58-57\violations\file\Dashboard.API.CcsApi+<>c__DisplayClass2a.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at hudson.FilePath.write(FilePath.java:1478) at hudson.plugins.violations.generate.ExecuteFilePath.execute(ExecuteFilePath.java:40) at hudson.plugins.violations.generate.GenerateXML.execute(GenerateXML.java:47) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:122) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:25) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Since this is a windows system the filename contains invalid characters. The filenames need to be encoded or formatted properly for a Windows system. I've attached the output from fxcop.

    Jenkins JIRA | 4 years ago | Jared Szechy
    java.io.FileNotFoundException: C:\Program Files (x86)\Jenkins\jobs\Dashboard\builds\2012-10-08_16-58-57\violations\file\Dashboard.API.CcsApi+<>c__DisplayClass2a.xml (The filename, directory name, or volume label syntax is incorrect)
  2. 0

    I receive the following exception when the violations report is being published. ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception java.io.FileNotFoundException: C:\Program Files (x86)\Jenkins\jobs\Dashboard\builds\2012-10-08_16-58-57\violations\file\Dashboard.API.CcsApi+<>c__DisplayClass2a.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at hudson.FilePath.write(FilePath.java:1478) at hudson.plugins.violations.generate.ExecuteFilePath.execute(ExecuteFilePath.java:40) at hudson.plugins.violations.generate.GenerateXML.execute(GenerateXML.java:47) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:122) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:25) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Since this is a windows system the filename contains invalid characters. The filenames need to be encoded or formatted properly for a Windows system. I've attached the output from fxcop.

    Jenkins JIRA | 4 years ago | Jared Szechy
    java.io.FileNotFoundException: C:\Program Files (x86)\Jenkins\jobs\Dashboard\builds\2012-10-08_16-58-57\violations\file\Dashboard.API.CcsApi+<>c__DisplayClass2a.xml (The filename, directory name, or volume label syntax is incorrect)
  3. 0

    I have the same Problem as described in http://issues.jenkins-ci.org/browse/JENKINS-3529 My Exception is: ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception java.io.FileNotFoundException: C:\hudson\jobs\Test .Net Project\builds\2010-04-23_13-33-16\violations\file\RegExSearch\C:\hudson\jobs\Test .Net Project\workspace\RegExSearch\RegExSearch\Program.cs.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(Unknown Source) at java.io.FileOutputStream.<init>(Unknown Source) at hudson.FilePath.write(FilePath.java:1235) at hudson.plugins.violations.generate.ExecuteFilePath.execute(ExecuteFilePath.java:40) at hudson.plugins.violations.generate.GenerateXML.execute(GenerateXML.java:47) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:124) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27) at hudson.FilePath.act(FilePath.java:747) at hudson.FilePath.act(FilePath.java:729) at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:584) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1267) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122)

    Jenkins JIRA | 7 years ago | broec
    java.io.FileNotFoundException: C:\hudson\jobs\Test .Net Project\builds\2010-04-23_13-33-16\violations\file\RegExSearch\C:\hudson\jobs\Test .Net Project\workspace\RegExSearch\RegExSearch\Program.cs.xml (The filename, directory name, or volume label syntax is incorrect)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I checked and the pylint result file is located at alfa/test/pylint.txt and I configured the Violations Plugin to use **/alfa/test/pylint.txt as pyling xml file. When you run the job it will fail with the error below. I have to mention that "ZenALF.py" is a file from the root of the workspace, but really don't know how the violations plugin managed to create this horrible path, that looks like a concatenation of at least 3 different things. ERROR: Publisher hudson.plugins.violations.ViolationsPublisher aborted due to exception java.io.FileNotFoundException: C:\.hudson\jobs\alf-ps\builds\2010-09-10_19-28-30\violations\file\C:\.hudson\jobs\alf-ps\workspace\ZenALF.py.xml (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at hudson.FilePath.write(FilePath.java:1241) at hudson.plugins.violations.generate.ExecuteFilePath.execute(ExecuteFilePath.java:40) at hudson.plugins.violations.generate.GenerateXML.execute(GenerateXML.java:47) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:124) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27) at hudson.FilePath.act(FilePath.java:753) at hudson.FilePath.act(FilePath.java:735) at hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1276) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:124) Finished: FAILURE

    Jenkins JIRA | 7 years ago | Sorin Sbarnea
    java.io.FileNotFoundException: C:\.hudson\jobs\alf-ps\builds\2010-09-10_19-28-30\violations\file\C:\.hudson\jobs\alf-ps\workspace\ZenALF.py.xml (The filename, directory name, or volume label syntax is incorrect)
  6. 0

    Jenkins dev - Violations plugin giving FileNotFoundException

    nabble.com | 1 year ago
    java.io.FileNotFoundException: c:\hudson_home\jobs\FooProduct\builds\2007-10-09_13-16-12\violations\file\:\data\FooProduct\source\java\com\foo\Bar.java.xml (The filename, directory name, or volume label syntax is incorrect)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    C:\Program Files (x86)\Jenkins\jobs\Dashboard\builds\2012-10-08_16-58-57\violations\file\Dashboard.API.CcsApi+<>c__DisplayClass2a.xml (The filename, directory name, or volume label syntax is incorrect)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(Unknown Source)
    3. java.io.FileOutputStream.<init>(Unknown Source)
    3 frames
  3. Hudson
    FilePath.write
    1. hudson.FilePath.write(FilePath.java:1478)
    1 frame
  4. hudson.plugins.violations
    ViolationsCollector.invoke
    1. hudson.plugins.violations.generate.ExecuteFilePath.execute(ExecuteFilePath.java:40)
    2. hudson.plugins.violations.generate.GenerateXML.execute(GenerateXML.java:47)
    3. hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:122)
    4. hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:25)
    4 frames
  5. Hudson
    FilePath.act
    1. hudson.FilePath.act(FilePath.java:842)
    2. hudson.FilePath.act(FilePath.java:824)
    2 frames
  6. hudson.plugins.violations
    ViolationsPublisher.perform
    1. hudson.plugins.violations.ViolationsPublisher.perform(ViolationsPublisher.java:74)
    1 frame
  7. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
    3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
    4. hudson.model.Build$BuildExecution.post2(Build.java:183)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
    6. hudson.model.Run.execute(Run.java:1527)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:236)
    9 frames