[
https://issues.apache.org/jira/browse/TAP5-2448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14487345#comment-14487345
]
Sven Homburg commented on TAP5-2448:
------------------------------------
Sorry, but the latest fix doesn't working form me
Caused by: java.lang.RuntimeException: Unable to read message catalog from
classpath:org/apache/tapestry5/core.properties: java.io.IOException: Cannot
open a steam for a resource that references a directory inside a JAR file
(jar:file:/home/sven/Development/sts-intranet/target/exploded/sts-intranet/WEB-INF/lib/tapestry-core-5.4-beta-31.jar!/org/apache/tapestry5/core.properties).
{code}
if ("jar".equals(url.getProtocol())){
// TAP5-2448: make sure that the URL does not reference a directory
if (new URL(url.toString() + "/") != null)
{
throw new IOException("Cannot open a steam for a resource that
references a directory inside a JAR file (" + url + ").");
}
}
{code}
i think {{new URL(url.toString() + "/")}} is never null ;)
> Asset.getClientURL() throws NPE if the Asset is a Folder within a SubModule
> JAR file
> ------------------------------------------------------------------------------------
>
> Key: TAP5-2448
> URL: https://issues.apache.org/jira/browse/TAP5-2448
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.4
> Reporter: Martin Papy
> Assignee: Jochen Kemnade
> Fix For: 5.4
>
> Attachments: NPE_Stack_Trace.txt, folder.zip
>
>
> If you inject in a Field an Asset and if this Asset is actually a Folder that
> is embedded into a JAR SubModule used by the main Tapestry WebApp then the
> method toClientURL() returns a NPE.
> The issue does not happen when the SubModule is not yet a JAR file. Exemple :
> when you are running Tomcat from Eclipse and let Eclipse manage the
> dependency ( I am using the Sysdeo plugin to add dependencies to the source
> folders of the SubModule instead of the JAR file. ).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)