Skip to content

asset-pipeline FileNotFoundException due to bug in Spring 4.3.8 #10616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 of 4 tasks
zyro23 opened this issue Apr 30, 2017 · 4 comments
Closed
3 of 4 tasks

asset-pipeline FileNotFoundException due to bug in Spring 4.3.8 #10616

zyro23 opened this issue Apr 30, 2017 · 4 comments

Comments

@zyro23
Copy link
Contributor

zyro23 commented Apr 30, 2017

cause is a spring-core-4.3.8 issue (so this is more or less just for reference):

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

  1. create a fresh 3.2.9 app (with asset-pipeline)
  2. build a non-development war file (e.g. production)
  3. run the war file (e.g. java -jar myapp.war)

Expected Behaviour

http://localhost:8080 should display index page including assets without errors

Actual Behaviour

java.io.FileNotFoundException: Jar URL cannot be resolved to absolute file path because it does not reside in the file system: war:file:/app/app.war*/assets/application-5b03a8ffbc33a9d0a6338728ac19c718.css
        at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:215)
        at org.springframework.core.io.AbstractFileResolvingResource.getFileForLastModifiedCheck(AbstractFileResolvingResource.java:67)
        at org.springframework.core.io.AbstractResource.lastModified(AbstractResource.java:153)
        at org.springframework.core.io.AbstractFileResolvingResource.lastModified(AbstractFileResolvingResource.java:169)
        at asset.pipeline.AssetPipelineFilter.doFilterInternal(AssetPipelineFilter.groovy:131)

Environment Information

  • Operating System: win x64
  • Grails Version: 3.2.9
  • JDK Version: oracle 8u121
  • Container Version (If Applicable): embedded

Example Application

n/a

@graemerocher
Copy link
Contributor

@graemerocher
Copy link
Contributor

I'll leave open as we await a third party fix

@graemerocher
Copy link
Contributor

Downgraded to Spring 4.3.7 in the meantime

@graemerocher graemerocher changed the title 3.2.9 - asset-pipeline FileNotFoundException for non-development war deployments asset-pipeline FileNotFoundException due to bug in Spring 4.3.8 May 4, 2017
@graemerocher graemerocher removed this from the grails-3.2.10 milestone May 4, 2017
@todoubaba
Copy link
Contributor

Spring Framework 4.3.9 is released, spring-projects/spring-boot#9280

@graemerocher graemerocher added this to the grails-3.2.11 milestone Jun 12, 2017
graemerocher added a commit that referenced this issue Jun 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants