java.io.IOException: Invalid argument

Atlassian JIRA | Gregoire Pailler | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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

    Atlassian JIRA | 1 year ago | Gregoire Pailler
    java.io.IOException: Invalid argument
  2. 0

    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

    Atlassian JIRA | 1 year ago | Gregoire Pailler
    java.io.IOException: Invalid argument
  3. 0

    error starting tomcat 7 from eclipse

    Stack Overflow | 3 years ago | Victor Elizondo
    java.io.IOException: Invalid argument
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    error starting tomcat 7 from eclipse

    soso.io | 1 year ago
    java.io.IOException: Invalid argument
  6. 0

    Multiple Targets Fail

    areca | 7 years ago | wbeulink
    com.application.areca.ApplicationException: com.application.areca.StoreException: Error during storage of fs02 : Invalid argument

  1. treefolk 2 times, last 3 weeks ago
17 unregistered visitors
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.IOException

    Invalid argument

    at java.io.WinNTFileSystem.canonicalize0()
  2. Java RT
    File.getCanonicalFile
    1. java.io.WinNTFileSystem.canonicalize0(Native Method)
    2. java.io.Win32FileSystem.canonicalize(Unknown Source)
    3. java.io.File.getCanonicalPath(Unknown Source)
    4. java.io.File.getCanonicalFile(Unknown Source)
    4 frames
  3. com.atlassian.bamboo
    BambooArtifactHttpTransport.retrieve
    1. com.atlassian.bamboo.util.BambooFileUtils.newFileUnderParent(BambooFileUtils.java:620)
    2. com.atlassian.bamboo.v2.build.agent.messages.ArtifactStreams.deserialiseStreamToDir(ArtifactStreams.java:76)
    3. com.atlassian.bamboo.build.artifact.BambooArtifactHttpTransport.retrieve(BambooArtifactHttpTransport.java:238)[BLABLABLABLABLA]
    3 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(UnknownSource)
    1 frame