You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jason Anderson (JIRA)" <ji...@apache.org> on 2007/11/27 06:22:43 UTC

[jira] Created: (WICKET-1187) WicketTester NPE on redirect

WicketTester NPE on redirect
----------------------------

                 Key: WICKET-1187
                 URL: https://issues.apache.org/jira/browse/WICKET-1187
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.0-rc1
            Reporter: Jason Anderson
            Priority: Minor



Trying to test a redirect after a form submit causes a NullPointerException in some cases

java.lang.NullPointerException
	at org.apache.wicket.protocol.http.MockHttpServletResponse.sendRedirect(MockHttpServletResponse.java:534)
	at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
	at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66)
	at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:386)
	at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:588)
	at com.mycompany.TesterRedirectTest.testRedirectShouldntNpe(TesterRedirectTest.java:26)
	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.junit.JUnitStarter.main(JUnitStarter.java:40)



see http://www.nabble.com/NPE-in-FormTester.submit-tf4875862.html for the email dialogue

attached is a quickstart that reproduces the problem






-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1187) WicketTester NPE on redirect

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

Jason Anderson updated WICKET-1187:
-----------------------------------

    Attachment: testernpe.tgz

> WicketTester NPE on redirect
> ----------------------------
>
>                 Key: WICKET-1187
>                 URL: https://issues.apache.org/jira/browse/WICKET-1187
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-rc1
>            Reporter: Jason Anderson
>            Priority: Minor
>         Attachments: testernpe.tgz
>
>
> Trying to test a redirect after a form submit causes a NullPointerException in some cases
> java.lang.NullPointerException
> 	at org.apache.wicket.protocol.http.MockHttpServletResponse.sendRedirect(MockHttpServletResponse.java:534)
> 	at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66)
> 	at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:386)
> 	at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:588)
> 	at com.mycompany.TesterRedirectTest.testRedirectShouldntNpe(TesterRedirectTest.java:26)
> 	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.junit.JUnitStarter.main(JUnitStarter.java:40)
> see http://www.nabble.com/NPE-in-FormTester.submit-tf4875862.html for the email dialogue
> attached is a quickstart that reproduces the problem

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1187) WicketTester NPE on redirect

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

Frank Bille Jensen updated WICKET-1187:
---------------------------------------

    Fix Version/s:     (was: 1.3.0-rc3)
                   1.3.0-rc2

Changed fix version to rc2, cause you say it's already fixed in rc2

> WicketTester NPE on redirect
> ----------------------------
>
>                 Key: WICKET-1187
>                 URL: https://issues.apache.org/jira/browse/WICKET-1187
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-rc1
>            Reporter: Jason Anderson
>            Assignee: Johan Compagner
>            Priority: Minor
>             Fix For: 1.3.0-rc2
>
>         Attachments: testernpe.tgz
>
>
> Trying to test a redirect after a form submit causes a NullPointerException in some cases
> java.lang.NullPointerException
> 	at org.apache.wicket.protocol.http.MockHttpServletResponse.sendRedirect(MockHttpServletResponse.java:534)
> 	at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66)
> 	at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:386)
> 	at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:588)
> 	at com.mycompany.TesterRedirectTest.testRedirectShouldntNpe(TesterRedirectTest.java:26)
> 	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.junit.JUnitStarter.main(JUnitStarter.java:40)
> see http://www.nabble.com/NPE-in-FormTester.submit-tf4875862.html for the email dialogue
> attached is a quickstart that reproduces the problem

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1187) WicketTester NPE on redirect

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

Johan Compagner commented on WICKET-1187:
-----------------------------------------

yeah but i thought then it is in the release notes of rc3....

> WicketTester NPE on redirect
> ----------------------------
>
>                 Key: WICKET-1187
>                 URL: https://issues.apache.org/jira/browse/WICKET-1187
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-rc1
>            Reporter: Jason Anderson
>            Assignee: Johan Compagner
>            Priority: Minor
>             Fix For: 1.3.0-rc2
>
>         Attachments: testernpe.tgz
>
>
> Trying to test a redirect after a form submit causes a NullPointerException in some cases
> java.lang.NullPointerException
> 	at org.apache.wicket.protocol.http.MockHttpServletResponse.sendRedirect(MockHttpServletResponse.java:534)
> 	at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66)
> 	at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:386)
> 	at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:588)
> 	at com.mycompany.TesterRedirectTest.testRedirectShouldntNpe(TesterRedirectTest.java:26)
> 	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.junit.JUnitStarter.main(JUnitStarter.java:40)
> see http://www.nabble.com/NPE-in-FormTester.submit-tf4875862.html for the email dialogue
> attached is a quickstart that reproduces the problem

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WICKET-1187) WicketTester NPE on redirect

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

Johan Compagner closed WICKET-1187.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0-rc3
         Assignee: Johan Compagner

Should be already fixed in rc2

> WicketTester NPE on redirect
> ----------------------------
>
>                 Key: WICKET-1187
>                 URL: https://issues.apache.org/jira/browse/WICKET-1187
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-rc1
>            Reporter: Jason Anderson
>            Assignee: Johan Compagner
>            Priority: Minor
>             Fix For: 1.3.0-rc3
>
>         Attachments: testernpe.tgz
>
>
> Trying to test a redirect after a form submit causes a NullPointerException in some cases
> java.lang.NullPointerException
> 	at org.apache.wicket.protocol.http.MockHttpServletResponse.sendRedirect(MockHttpServletResponse.java:534)
> 	at org.apache.wicket.protocol.http.WebResponse.redirect(WebResponse.java:232)
> 	at org.apache.wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:66)
> 	at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:386)
> 	at org.apache.wicket.util.tester.FormTester.submit(FormTester.java:588)
> 	at com.mycompany.TesterRedirectTest.testRedirectShouldntNpe(TesterRedirectTest.java:26)
> 	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.junit.JUnitStarter.main(JUnitStarter.java:40)
> see http://www.nabble.com/NPE-in-FormTester.submit-tf4875862.html for the email dialogue
> attached is a quickstart that reproduces the problem

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.