[
https://issues.apache.org/jira/browse/TAP5-2448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14307060#comment-14307060
]
Jochen Kemnade commented on TAP5-2448:
--------------------------------------
So, the relevant part is:
{code}
Caused by: java.lang.NullPointerException
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at
org.apache.tapestry5.internal.TapestryInternalUtils.copy(TapestryInternalUtils.java:365)
at
org.apache.tapestry5.internal.services.assets.StreamableResourceSourceImpl.readStream(StreamableResourceSourceImpl.java:106)
at
org.apache.tapestry5.internal.services.assets.StreamableResourceSourceImpl.getStreamableResource(StreamableResourceSourceImpl.java:86)
at
org.apache.tapestry5.internal.services.assets.CSSURLRewriter.getStreamableResource(CSSURLRewriter.java:90)
at
org.apache.tapestry5.internal.services.assets.SRSMinimizingInterceptor.getStreamableResource(SRSMinimizingInterceptor.java:38)
at
org.apache.tapestry5.internal.services.assets.JavaScriptStackMinimizeDisabler.getStreamableResource(JavaScriptStackMinimizeDisabler.java:61)
at
org.apache.tapestry5.internal.services.assets.UTF8ForTextAssets.getStreamableResource(UTF8ForTextAssets.java:40)
at
org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor.getStreamableResource(SRSCachingInterceptor.java:55)
at
org.apache.tapestry5.internal.services.assets.SRSCompressingInterceptor.getStreamableResource(SRSCompressingInterceptor.java:38)
at
org.apache.tapestry5.internal.services.assets.SRSCachingInterceptor.getStreamableResource(SRSCachingInterceptor.java:48)
at $StreamableResourceSource_2f5b19fd6ebe.getStreamableResource(Unknown
Source)
at
org.apache.tapestry5.internal.services.AbstractAssetFactory$1.toClientURL(AbstractAssetFactory.java:87)
at org.libermundi.webapp.pages.Index.getFolderPathUrl(Index.java:64)
at $InternalPropertyConduit_2f5b19fd6f40.get(Unknown Source)
at
org.apache.tapestry5.internal.bindings.PropBinding.get(PropBinding.java:63)
... 93 more
{code}
> 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
> 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)