I've committed an improvement with
https://issues.apache.org/jira/browse/WICKET-5472

Martin Grigorov
Wicket Training and Consulting


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

> Hey Martin,
>
> I don't have time to create a quickstart at the moment. If you can't find
> the problem without it I'll try to do it in the next days.
>
> The resource is definitely there and downgrading to 6.12.0 fixes the
> problem immediately.
>
> Thomas
>
>
> On Mon, Jan 13, 2014 at 2:15 PM, Martin Grigorov <mgrigo...@apache.org
> >wrote:
>
> > Please put a breakpoint at
> >
> >
> https://github.com/apache/wicket/blob/wicket-6.x/wicket-core/src/main/java/org/apache/wicket/request/resource/PackageResource.java?source=cc#L431
> >
> > It seems " /images/alt_neu_v2.jpg; locale: null; style: null; variation:
> > null" does not exists. Only in this case the resource stream would be
> null.
> >
> > Unfortunately this happens in a private method and I don't see how to
> > workaround it.
> > Please create a ticket with a quickstart.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Mon, Jan 13, 2014 at 3:10 PM, Martin Grigorov <mgrigo...@apache.org
> > >wrote:
> >
> > > 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 <tho...@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
> > >>
> > >
> > >
> >
>

Reply via email to