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.

  • Could not normalize path for file '\ ...'
    via Stack Overflow by Terry
    ,
  • Could not normalize path for file '\ …'1
    via Stack Overflow by Terry
    ,
  • error starting tomcat 7 from eclipse
    via Stack Overflow by Victor Elizondo
    ,
  • error starting tomcat 7 from eclipse
    via by Unknown author,
  • Multiple Targets Fail
    via areca by wbeulink
    ,
  • We have a plan with a build job and a tests job. - At the end of the build job, we publish a shared artifact of a folder containing test data (files and folders with special characters like BCZEAZrzetrygf216578986%µ%µ%£¨£P¨122&é''(-èè_ç_àçàè)新規フォルダ or 新規フォルダAZER.JPG). - In the test job, we have an artifact dependency to retrieve these test data but the job fails with following error {code} INFO | jvm 1 | 2016/01/04 15:43:35 | 2016-01-04 15:43:35,936 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Remote Agent INFO | jvm 1 | 2016/01/04 15:43:35 | 2016-01-04 15:43:35,936 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.v2.build.task.InitializeBuild INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,936 INFO [0-BAM::B uild-Agent9::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] PLAN - BRANCH - Unit tests #6 (PROJ-KEY57-UT-6) VCS sync started INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,968 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [CheckoutDirectoriesSnapshotHelper] Build working directory is D:\DATA\Bamboo\Builds\PROJ-KEY57-UT INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] Executing build PLAN - BRANCH - Unit tests #6 (PROJ-KEY57-UT-6) INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] Preparing artifact 'Binaries' for use at bin/ INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [AbstractArtifactManager] Trying to retrieve artifact with: class com.atlassian.bamboo.build.artifact BambooRemoteArtifactHandler INFO | jvm 1 | 2016/01/04 15:45:02 | 2016-01-04 15:45:02,001 INFO [remoteEventRebroadcasterMessageListenerContainer-1] [RemoteEventRebroadcasterMessageListener] ExecutableQueueUpdate: addToQueue INFO | jvm 1 | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 ERROR [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [BambooArtifactHttpTransport] INFO | jvm 1 | 2016/01/04 15:45:48 | java.io.IOException: Invalid argument INFO | jvm 1 | 2016/01/04 15:45:48 | at java.io.WinNTFileSystem.canonicalize0(Native Method) INFO | jvm 1 | 2016/01/04 15:45:48 | at java.io.Win32FileSystem.canonicalize(Unknown Source) INFO | jvm 1 | 2016/01/04 15:45:48 | at java.io.File.getCanonicalPath(Unknown Source) INFO | jvm 1 | 2016/01/04 15:45:48 | at java.io.File.getCanonicalFile(Unknown Source) INFO | jvm 1 | 2016/01/04 15:45:48 | at com.atlassian.bamboo.util.BambooFileUtils.newFileUnderParent(BambooFileUtils.java:620) INFO | jvm 1 | 2016/01/04 15:45:48 | at com.atlassian.bamboo.v2.build.agent.messages.ArtifactStreams.deserialiseStreamToDir(ArtifactStreams.java:76) INFO | jvm 1 | 2016/01/04 15:45:48 | at com.atlassian.bamboo.build.artifact.BambooArtifactHttpTransport.retrieve(BambooArtifactHttpTransport.java:238) [BLABLABLABLABLA] INFO | jvm 1 | 2016/01/04 15:45:48 | at java.lang.Thread.run(UnknownSource) INFO | jvm 1 | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 WARN [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] Failure in artifact preparation phase during processing of: Subscription for Shared artifact: [Binaries], pattern: [**/*] anchored at: [bin], destination: [bin] INFO | jvm 1 | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 WARN [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] 1 error(s) found when performing pre-build actions. INFO | jvm 1 | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] PLAN - BRANCH - Unit tests #6 (PROJ-KEY57-UT-6) execution finished {code} As a workaround, we generate a zip and use this zip file as an artifact but it would be great if bamboo is able to handle these files seamlessly
    via by Gregoire Pailler,
  • We have a plan with a build job and a tests job. - At the end of the build job, we publish a shared artifact of a folder containing test data (files and folders with special characters like BCZEAZrzetrygf216578986%µ%µ%£¨£P¨122&é''(-èè_ç_àçàè)新規フォルダ or 新規フォルダAZER.JPG). - In the test job, we have an artifact dependency to retrieve these test data but the job fails with following error {code} INFO | jvm 1 | 2016/01/04 15:43:35 | 2016-01-04 15:43:35,936 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [BuildAgentControllerImpl] Remote Agent INFO | jvm 1 | 2016/01/04 15:43:35 | 2016-01-04 15:43:35,936 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.v2.build.task.InitializeBuild INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,936 INFO [0-BAM::B uild-Agent9::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] PLAN - BRANCH - Unit tests #6 (PROJ-KEY57-UT-6) VCS sync started INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,968 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [CheckoutDirectoriesSnapshotHelper] Build working directory is D:\DATA\Bamboo\Builds\PROJ-KEY57-UT INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] Executing build PLAN - BRANCH - Unit tests #6 (PROJ-KEY57-UT-6) INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] Preparing artifact 'Binaries' for use at bin/ INFO | jvm 1 | 2016/01/04 15:43:36 | 2016-01-04 15:43:35,999 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [AbstractArtifactManager] Trying to retrieve artifact with: class com.atlassian.bamboo.build.artifact BambooRemoteArtifactHandler INFO | jvm 1 | 2016/01/04 15:45:02 | 2016-01-04 15:45:02,001 INFO [remoteEventRebroadcasterMessageListenerContainer-1] [RemoteEventRebroadcasterMessageListener] ExecutableQueueUpdate: addToQueue INFO | jvm 1 | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 ERROR [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [BambooArtifactHttpTransport] INFO | jvm 1 | 2016/01/04 15:45:48 | java.io.IOException: Invalid argument INFO | jvm 1 | 2016/01/04 15:45:48 | at java.io.WinNTFileSystem.canonicalize0(Native Method) INFO | jvm 1 | 2016/01/04 15:45:48 | at java.io.Win32FileSystem.canonicalize(Unknown Source) INFO | jvm 1 | 2016/01/04 15:45:48 | at java.io.File.getCanonicalPath(Unknown Source) INFO | jvm 1 | 2016/01/04 15:45:48 | at java.io.File.getCanonicalFile(Unknown Source) INFO | jvm 1 | 2016/01/04 15:45:48 | at com.atlassian.bamboo.util.BambooFileUtils.newFileUnderParent(BambooFileUtils.java:620) INFO | jvm 1 | 2016/01/04 15:45:48 | at com.atlassian.bamboo.v2.build.agent.messages.ArtifactStreams.deserialiseStreamToDir(ArtifactStreams.java:76) INFO | jvm 1 | 2016/01/04 15:45:48 | at com.atlassian.bamboo.build.artifact.BambooArtifactHttpTransport.retrieve(BambooArtifactHttpTransport.java:238) [BLABLABLABLABLA] INFO | jvm 1 | 2016/01/04 15:45:48 | at java.lang.Thread.run(UnknownSource) INFO | jvm 1 | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 WARN [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] Failure in artifact preparation phase during processing of: Subscription for Shared artifact: [Binaries], pattern: [**/*] anchored at: [bin], destination: [bin] INFO | jvm 1 | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 WARN [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [PrepareBuildTask] 1 error(s) found when performing pre-build actions. INFO | jvm 1 | 2016/01/04 15:45:48 | 2016-01-04 15:45:48,176 INFO [0-BAM::Build-Agent9::Agent:pool-3-thread-1] [RemoteExecutionPhaseServiceImpl] PLAN - BRANCH - Unit tests #6 (PROJ-KEY57-UT-6) execution finished {code} As a workaround, we generate a zip and use this zip file as an artifact but it would be great if bamboo is able to handle these files seamlessly
    via by Gregoire Pailler,
    • java.io.IOException: Invalid argument at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428) at java.io.File.getCanonicalPath(File.java:618) at java.io.File.getCanonicalFile(File.java:643) at org.gradle.api.internal.file.AbstractFileResolver.normalise(AbstractFileResolver.java:98)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    17 more bugmates