Exception - Failed to add into filestore (1.9 and 1.10)


(x1000) #1

Trying to upgrade from 1.7 to either 1.9 or 1.10 I get an exception

Failed to add into filestore 'D:\.gradle\caches\modules-2\metadata-2.1\descriptors' at 'org.jboss.arquillian.container/arquillian-container-spi/1.1.1.Final/d2b3f914b7e286103dc8c6db6dd248f8/ivy.xml'

Full debug stacktrace of 1.9 at http://pastebin.com/4TcaVsv3

The folder exists, but there is no ivy.xml in it. Manually creating a file in this folder works without problems.


(Benjamin Muschko) #2

I just tried to reproduce your issue but couldn’t. This is my setup:

repositories {
    mavenCentral()
}
  configurations {
    arquillian
}
  dependencies {
    arquillian 'org.jboss.arquillian.container:arquillian-container-spi:1.1.1.Final'
}
  task copyLibs(type: Copy) {
    from configurations.arquillian
    into "$buildDir/libs"
}

Maybe you can try this out on your machine to see it that works for you (run the task copyLibs). If it does work, then I think we’d need to see some details of your build script.


(x1000) #3

Hi Benjamin,

thanks for getting back on this one. Your script works on my machine. We are fetching from a local ivy repo so I need to setup a test case for this.


(x1000) #4

Hi Benjamin,

i’ve prepared a test case for this:

Download 7z from http://ge.tt/2gqGjgG1/v/0?c Extract password ‘gradleWithPerforce’

Needs a windows machine: - In one cmd shell run “startPerforce.bat” which starts a test perforce server on port 1670 (keep this running). - In another shell run ‘gradle build’

This works with gradle 1.7, but fails with 1.9, 1.10, and 1.12 nightly.

E:\Temp\GradleIvyResolve>gradle --refresh-dependencies build
Build file 'E:\Temp\GradleIvyResolve\build.gradle': line 15
The ArtifactRepositoryContainer.add(DependencyResolver, Closure) method has been deprecated and is scheduled to be removed in Gradle 2.0.
:compileJava
  FAILURE: Build failed with an exception.
  * What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.slf4j:slf4j-log4j12:1.7.5.
  Required by:
      :GradleIvyResolve:unspecified
   > Failed to add into filestore 'D:\.gradle\caches\modules-2\metadata-2.1\descriptors' at 'org.slf4j/slf4j-log4j12/1.7.5/e42cd7cc8222da755ac37e0c7396c5c6/ivy.xml'
  * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  BUILD FAILED
  Total time: 3.594 secs

(Benjamin Muschko) #5

Unfortunately, I currently don’t have a Windows machine at hand. In the meantime can you give use the stack trace of this error (-s flag on the command line)?


(Benjamin Muschko) #6

This is the relevant stack trace.


(Benjamin Muschko) #7

We should ignore Ivy mediators instead of throwing an exception. I created a JIRA issue for it: GRADLE-3013.


(x1000) #8

Thanks for taking care of this one, I will try 1.12 nightly…


(Benjamin Muschko) #9

Thanks! Let us know if it works for you.


(x1000) #10

Works with gradle-1.12-20140205042405.

Thanks for the fix !