You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2014/08/19 16:47:18 UTC

[jira] [Updated] (TAP5-2365) PlasticUtilsTests."Do not urlencode file paths" fails when using openjdk7

     [ https://issues.apache.org/jira/browse/TAP5-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Kemnade updated TAP5-2365:
---------------------------------

    Priority: Minor  (was: Major)

> PlasticUtilsTests."Do not urlencode file paths" fails when using openjdk7
> -------------------------------------------------------------------------
>
>                 Key: TAP5-2365
>                 URL: https://issues.apache.org/jira/browse/TAP5-2365
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: plastic
>    Affects Versions: 5.4
>            Reporter: Felix Scheffer
>            Priority: Minor
>
> PlasticUtilsTests."Do not urlencode file paths" fails on Ubuntu 14.04 (using openjdk7):
> {code}
> java.lang.IllegalArgumentException: URI is not hierarchical
> 	at java.io.File.<init>(File.java:418)
> 	at org.apache.tapestry5.internal.plastic.PlasticUtilsTests.Do not urlencode file paths(PlasticUtilsTests.groovy:28)
> {code}
> getClass().getClassLoader().getResource(".") returns 
> "jar:file:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/pulse-java.jar!/" which is obvisiouly not the expected result. 
> I am not sure but I think pulse-java.jar was not part of openjdk6 in ealier versions of Ubuntu. Removing pulse-java.jar solves the problem but I dont think that's a good solution.
> I think there are two issues here:
> a) There's something wrong with pulse-java.jar even though I have absolutely no clue what it is.
> b) Calling getResource(".") looks like a hack to me. "." is not a real resource.
> For more information on this issue:
> - http://stackoverflow.com/questions/16317789/thread-currentthread-getcontextclassloader-getresource-has-different-re
> - http://stackoverflow.com/questions/13901540/how-to-get-location-of-runnable-jar-file-when-run-from-gnome



--
This message was sent by Atlassian JIRA
(v6.2#6252)