Bugs item #1497866, was opened at 2006-05-30 23:57 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1497866&group_id=119783
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Open Resolution: None Priority: 5 Submitted By: Blake Day (blakeday) Assigned to: Nobody/Anonymous (nobody) Summary: WicketTester: RequestCycle bug Initial Comment: # public class PageTest extends TestCase { # public void testPage() throws Exception { # WicketTester app = new WicketTester(); # app.mountBookmarkablePage("/page1", Page1.class); # app.setupRequestAndResponse(); # app.startPage(Page1.class); # } # # public static class Page1 extends WebPage { # public Page1() { # } # # public Page1(PageParameters params) { # } # } # } # # # wicket.WicketRuntimeException: Can not set the attribute. No RequestCycle available # at wicket.Session.setAttribute(Session.java:918) # at wicket.Session.newPageMap(Session.java:590) # at wicket.Session.pageMapForName(Session.java:466) # at wicket.PageMap.forName(PageMap.java:166) # at wicket.Page.init(Page.java:1158) # at wicket.Page.<init>(Page.java:194) # at wicket.markup.html.WebPage.<init>(WebPage.java:122) # at IndexedParamTest$Page1.<init>(IndexedParamTest.java:29) # at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) # at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) # at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) # at java.lang.reflect.Constructor.newInstance(Constructor.java:274) # at java.lang.Class.newInstance0(Class.java:308) # at java.lang.Class.newInstance(Class.java:261) # at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58) # at wicket.protocol.http.MockWebApplication.generateLastRenderedPage(MockWebApplication.java:372) # at wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:327) # at wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:305) # at wicket.util.tester.WicketTester.startPage(WicketTester.java:267) # at IndexedParamTest.testPage(IndexedParamTest.java:22) # at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) # at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) # at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) # at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1497866&group_id=119783 ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop