You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Frank Bille Jensen (JIRA)" <ji...@apache.org> on 2008/04/02 22:03:28 UTC
[jira] Updated: (WICKET-861) NumberFormatException with
UrlCompressingWebRequestProcessor in WicketTester
[ https://issues.apache.org/jira/browse/WICKET-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frank Bille Jensen updated WICKET-861:
--------------------------------------
Fix Version/s: (was: 1.3.3)
1.3.4
> 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
> Assignee: Johan Compagner
> Priority: Minor
> Fix For: 1.3.4
>
>
> 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.