You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Rüdiger Schulz (JIRA)" <ji...@apache.org> on 2007/08/18 18:06:30 UTC

[jira] Created: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

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


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.


[jira] Updated: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ 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.0-rc3)
                   1.3.1

> 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.1
>
>
> 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.


[jira] Resolved: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-861.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-M4
         Assignee: Igor Vaynberg  (was: Johan Compagner)

> 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: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.3.5, 1.4-M4
>
>
> 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.


[jira] Updated: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ 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.2)
                   1.3.3

> 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.3
>
>
> 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.


[jira] Updated: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-861:
---------------------------------

    Assignee: Johan Compagner

> 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.3
>
>
> 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.


[jira] Updated: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ 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.0-rc2)
                   1.3.0-rc3

> 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-rc3
>
>
> 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.


[jira] Updated: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Martijn Dashorst (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn Dashorst updated WICKET-861:
------------------------------------

    Fix Version/s:     (was: 1.3.4)
                   1.3.5

> 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.5
>
>
> 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.


[jira] Updated: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Commented: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542491 ] 

Johan Compagner commented on WICKET-861:
----------------------------------------

do you have a complete unit test case for us?

> 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.


[jira] Commented: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Updated: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ 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.1)
                   1.3.2

> 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.2
>
>
> 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.


[jira] Updated: (WICKET-861) NumberFormatException with UrlCompressingWebRequestProcessor in WicketTester

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ 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.0-rc1)
                   1.3.0-rc2

> 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.