[
https://issues.apache.org/jira/browse/WICKET-5375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-5375.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.12.0
7.0.0
> Improve ConcatBundleResource error handling when a resource is missing
> ----------------------------------------------------------------------
>
> Key: WICKET-5375
> URL: https://issues.apache.org/jira/browse/WICKET-5375
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.11.0
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 7.0.0, 6.12.0
>
>
> If a resource bundle cannot find any of its items them it fails with:
> Caused by: java.lang.NullPointerException
> at
> org.apache.wicket.resource.bundles.ConcatBundleResource.readAllResources(ConcatBundleResource.java:172)
> at
> org.apache.wicket.resource.bundles.ConcatBundleResource.getCacheableResourceStream(ConcatBundleResource.java:229)
> at
> org.apache.wicket.request.resource.caching.version.LastModifiedResourceVersion.getVersion(LastModifiedResourceVersion.java:41)
> at
> org.apache.wicket.request.resource.caching.version.RequestCycleCachedResourceVersion.getVersion(RequestCycleCachedResourceVersion.java:97)
> at
> org.apache.wicket.request.resource.caching.FilenameWithVersionResourceCachingStrategy.decorateUrl(FilenameWithVersionResourceCachingStrategy.java:102)
> at
> org.apache.wicket.core.request.mapper.BasicResourceReferenceMapper.mapHandler(BasicResourceReferenceMapper.java:238)
> at
> org.apache.wicket.request.mapper.ParentPathReferenceRewriter.mapHandler(ParentPathReferenceRewriter.java:91)
> at
> org.apache.wicket.request.mapper.CompoundRequestMapper.mapHandler(CompoundRequestMapper.java:215)
> at
> org.apache.wicket.request.cycle.RequestCycle.mapUrlFor(RequestCycle.java:433)
> Both
> org.apache.wicket.resource.bundles.ConcatBundleResource#collectResourceStreams
> and org.apache.wicket.resource.bundles.ConcatBundleResource#getCacheKey
> return null if any of the resources' streams cannot be loaded.
> It would be nice if Wicket logs an error explaining which resource is missing.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira