wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: NPEs when locating resources after upgrading to Wicket 6.13.0
Date Mon, 13 Jan 2014 13:10:59 GMT
Hi,

Please check your logs for : "Argument 'delegate' may not be null."

This is what
g.Args.notNull(Args.java:41)
> at
> org.apache.wicket.util.resource.ResourceStreamWrapper.<init>(
ResourceStreamWrapper.java:36)
> at

should actually throw.

I am looking why it could be null.

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 13, 2014 at 3:02 PM, Thomas Heigl <thomas@umschalt.com> wrote:

> Hey all,
>
> I just tried to upgrade to Wicket 6.13.0 because of the new JQuery version
> packaged with it. It breaks some of our resource mounting functionality
> that has been working since 1.4x and some package resources cannot be found
> anymore. Have there been changes to resource mounting in this release?
>
> A sample exception looks like this:
>
> org.apache.wicket.WicketRuntimeException: An error occurred while
> > generating an Url for handler
> > 'ResourceReferenceRequestHandler{resourceReference=scope:
> > com.synexit.friendsic.view.wicket.staticcontent.StaticContentBase; name:
> > /images/alt_neu_v2.jpg; locale: null; style: null; variation: null,
> > pageParameters=}'
> > at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
> > at
> >
> org.apache.wicket.util.resource.ResourceStreamWrapper.<init>(ResourceStreamWrapper.java:36)
> > at
> >
> org.apache.wicket.request.resource.PackageResource$ProcessingResourceStream.<init>(PackageResource.java:476)
> > at
> >
> org.apache.wicket.request.resource.PackageResource$ProcessingResourceStream.<init>(PackageResource.java:472)
> > at
> >
> org.apache.wicket.request.resource.PackageResource.internalGetResourceStream(PackageResource.java:465)
> > at
> >
> org.apache.wicket.request.resource.PackageResource.getCacheableResourceStream(PackageResource.java:395)
> > at
> >
> org.apache.wicket.request.resource.PackageResource.getCacheKey(PackageResource.java:227)
> > at
> >
> org.apache.wicket.request.resource.caching.version.RequestCycleCachedResourceVersion.getVersion(RequestCycleCachedResourceVersion.java:81)
> > 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.util.tester.BaseWicketTester$TestRequestMapper.mapHandler(BaseWicketTester.java:2758)
> > at
> >
> org.apache.wicket.request.cycle.RequestCycle.mapUrlFor(RequestCycle.java:429)
> > at
> >
> org.apache.wicket.request.cycle.RequestCycle.urlFor(RequestCycle.java:529)
> > at
> >
> org.apache.wicket.request.cycle.RequestCycle.urlFor(RequestCycle.java:492)
>
>
> The resource is there and works perfectly with Wicket 6.12.0.
>
> Any ideas?
>
> Cheers,
>
> Thomas
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message