[ https://issues.apache.org/jira/browse/WICKET-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547611 ]
Juergen Donnerstag commented on WICKET-861: ------------------------------------------- please see UrlCompressingWebRequestProcessorTest > NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester > ---------------------------------------------------------------------------- > > Key: WICKET-861 > URL: https://issues.apache.org/jira/browse/WICKET-861 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 1.3.0-beta3 > Environment: Wicket 1.3.0 from Trunk > JDK 6 > Reporter: RĂ¼diger Schulz > Priority: Minor > Fix For: 1.3.0-rc2 > > > In my Application I use UrlCompressingWebRequestProcessor. Now I have a JUnit > test case with WicketTester and that Application like this: > tester.startPage(new ITestPageSource() { > public Page getTestPage() { > PageParameters params = new PageParameters(); > params.add("0", "param"); > return new MyPage(params); > } > }); > I get an Exception: > java.lang.NumberFormatException: For input string: "testPage" > at > java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) > at java.lang.Integer.parseInt(Integer.java:447) > at java.lang.Integer.parseInt(Integer.java:497) > at > org.apache.wicket.protocol.http.request.urlcompressing.UrlCompressor.getComponentAndInterfaceForUID(UrlCompressor.java:124) > at > org.apache.wicket.protocol.http.request.urlcompressing.UrlCompressingWebRequestProcessor.resolveListenerInterfaceTarget(UrlCompressingWebRequestProcessor.java:81) > at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:440) > at > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139) > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1091) > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1177) > at org.apache.wicket.RequestCycle.request(RequestCycle.java:500) > at > org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:381) > at > org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:368) > at > org.apache.wicket.util.tester.BaseWicketTester.executeListener(BaseWicketTester.java:239) > at > org.apache.wicket.util.tester.BaseWicketTester.startPage(BaseWicketTester.java:224) > I could work around this by using WebRequestCycleProcessor for my > testing-application. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.