I've having trouble reproducing this is a test project, however if I return a standard value getCacheKey it seems to work, where returning null which as a I understand it means don't cache at all.
public String getCacheKey(MarkupContainer arg0, Class arg1) { return "1"; } I'll keep trying for a bit more... Jeremy On Tue, Mar 18, 2008 at 9:55 AM, Jeremy Levy <[EMAIL PROTECTED]> wrote: > We are having the same issue, it's happening on pages where we are > defining the markup at run time, by implementing > IMarkupResourceStreamProvider and IMarkupCacheKeyProvider. I'll create a > sample project to demonstrate.. > > Jeremy > > > > On Tue, Mar 18, 2008 at 9:36 AM, Johnnie <[EMAIL PROTECTED]> wrote: > > > > > Sorry, I don't have a test case, but the webapp was working fine until I > > substituted all 1.3.2 jars for the 1.3.1 jars, and that's all did, I > > didn't > > change a thing in my code. > > > > I've gone back and forth between the two versions and always get the > > same > > exception with 1.3.2, but 1.3.1 works fine. > > > > When I click on "display page view" I find the following: > > > > [Page class = my.package.ui.SignIn, id = 0, version = 0]: > > > > # Path Size Type Model Object > > 1 feedback 1,4K > > org.apache.wicket.markup.html.panel.FeedbackPanel > > 2 feedback:feedbackul 5,7K > > org.apache.wicket.markup.html.WebMarkupContainer > > 3 feedback:feedbackul:messages 5,7K > > org.apache.wicket.markup.html.list.ListView [] > > 4 localizer 1,7K my.package.ui.util.Localizer > > 5 localizer:en_GB 5,7K org.apache.wicket.markup.html.link.Link > > 6 localizer:en_US 5,7K org.apache.wicket.markup.html.link.Link > > 7 localizer:fr 5,7K org.apache.wicket.markup.html.link.Link > > 8 localizer:pt 5,7K org.apache.wicket.markup.html.link.Link > > 9 logout 1K my.package.ui.SignOut > > 10 logout:signout 5,7K org.apache.wicket.markup.html.link.Link > > 11 signInForm 5,7K my.package.ui.util.LocalizedForm > > 12 signInForm:password 1,1K > > org.apache.wicket.markup.html.form.PasswordTextField > > 13 signInForm:passwordLabel 5,7K > > org.apache.wicket.markup.html.basic.Label Password > > 14 signInForm:username 1K > > org.apache.wicket.markup.html.form.TextField > > 15 signInForm:usernameLabel 5,7K > > org.apache.wicket.markup.html.basic.Label Username > > 16 styler 1,4K my.package.ui.util.Styler > > 17 styler:avant-garde 5,7K > > org.apache.wicket.markup.html.link.Link > > 18 styler:classic 5,7K org.apache.wicket.markup.html.link.Link > > > > Hope it helps. > > > > Regards, > > > > Johnny > > > > > > Johan Compagner wrote: > > > > > > do you have a test case that you can attach to a jira issue > > > I guess this has something to do with the loading of markup changes > > (so > > > that > > > not everything is loaded for every possible locale but only for every > > real > > > file once) > > > > > > you seem to have a situtation that the key is null or couldnt be > > generated > > > It would be nice to have a test case of that > > > > > > johan > > > > > > > > > On Tue, Mar 18, 2008 at 12:30 PM, Johnnie <[EMAIL PROTECTED]> > > wrote: > > > > > >> > > >> Hi, > > >> > > >> I´ve upgraded from Wicket 1.3.1 to 1.3.2 and got the following > > exception: > > >> > > >> Unexpected RuntimeException > > >> > > >> Root cause: > > >> java.lang.NullPointerException > > >> at > > >> org.apache.wicket.util.concurrent.ConcurrentHashMap.hash( > > >> ConcurrentHashMap.java:299) > > >> at > > >> org.apache.wicket.util.concurrent.ConcurrentHashMap.put( > > >> ConcurrentHashMap.java:533) > > >> at > > >> org.apache.wicket.markup.MarkupCache$DefaultCacheImplementation.put( > > >> MarkupCache.java:711) > > >> at > > >> org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:437) > > >> at > > >> org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges( > > >> MarkupCache.java:520) > > >> at org.apache.wicket.markup.MarkupCache.getMarkup( > > MarkupCache.java > > >> :319) > > >> at > > >> > > >> > > org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.checkForMarkupInheritance > > >> (InheritedMarkupMarkupLoader.java:95) > > >> at > > >> > > org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup( > > >> InheritedMarkupMarkupLoader.java:63) > > >> at > > >> org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup( > > >> DefaultMarkupLoader.java:55) > > >> at > > >> org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:433) > > >> at > > >> org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges( > > >> MarkupCache.java:520) > > >> at org.apache.wicket.markup.MarkupCache.getMarkup( > > MarkupCache.java > > >> :319) > > >> at > > >> org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java > > :215) > > >> at > > >> org.apache.wicket.MarkupContainer.getAssociatedMarkupStream( > > >> MarkupContainer.java:343) > > >> at org.apache.wicket.Page.onRender(Page.java:1453) > > >> at org.apache.wicket.Component.render(Component.java:2308) > > >> at org.apache.wicket.Page.renderPage(Page.java:906) > > >> at > > >> > > >> > > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond > > >> (BookmarkablePageRequestTarget.java:231) > > >> at > > >> org.apache.wicket.request.AbstractRequestCycleProcessor.respond( > > >> AbstractRequestCycleProcessor.java:104) > > >> at > > >> org.apache.wicket.RequestCycle.processEventsAndRespond( > > RequestCycle.java > > >> :1172) > > >> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1243) > > >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330) > > >> at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > > >> at > > >> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java > > :358) > > >> at > > >> org.apache.wicket.protocol.http.WicketFilter.doFilter( > > WicketFilter.java > > >> :194) > > >> at > > >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > > >> ApplicationFilterChain.java:215) > > >> at > > >> org.apache.catalina.core.ApplicationFilterChain.doFilter( > > >> ApplicationFilterChain.java:188) > > >> at > > >> org.apache.catalina.core.StandardWrapperValve.invoke( > > >> StandardWrapperValve.java:210) > > >> at > > >> org.apache.catalina.core.StandardContextValve.invoke( > > >> StandardContextValve.java:174) > > >> at > > >> org.apache.catalina.core.StandardHostValve.invoke( > > StandardHostValve.java > > >> :127) > > >> at > > >> org.apache.catalina.valves.ErrorReportValve.invoke( > > ErrorReportValve.java > > >> :117) > > >> at > > >> org.apache.catalina.core.StandardEngineValve.invoke( > > >> StandardEngineValve.java:108) > > >> at > > >> org.apache.catalina.connector.CoyoteAdapter.service( > > CoyoteAdapter.java > > >> :151) > > >> at > > >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > > :870) > > >> at > > >> > > >> > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection > > >> (Http11BaseProtocol.java:665) > > >> at > > >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( > > >> PoolTcpEndpoint.java:528) > > >> at > > >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( > > >> LeaderFollowerWorkerThread.java:81) > > >> at > > >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > >> ThreadPool.java:685) > > >> at java.lang.Thread.run(Thread.java:619) > > >> > > >> I didn-t even got to see the sign in page. > > >> > > >> When I downgraded to 1.3.1 everything worked fine again. > > >> > > >> Best regards, > > >> > > >> Johnnie > > >> > > >> -- > > >> View this message in context: > > >> > > http://www.nabble.com/Wicket-1.3.2---java.lang.NullPointerException-tp16119078p16119078.html > > >> Sent from the Wicket - User mailing list archive at > > >> Nabble.com<http://nabble.com/> > > >> . > > >> > > >> > > >> --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > > > > > > > > > -- > > View this message in context: > > http://www.nabble.com/Wicket-1.3.2---java.lang.NullPointerException-tp16119078p16121384.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >