Igor,
Excuse me, but I really don't understand.
I'm asking about how to show Wicket error page. I thought that
throwing WicketRuntimeException will result in showing it.
But I get SERVER error page. I attached an image to clarify matters.
And error below is seen in Tomcat output, not in Wicket
your attachment got stripped, but i can imagine what it looks like.
all runtime exceptions, wicket or not, are handled in the same way -
redirect to the error page.
do you have a custom error page? if you do - if your error page has an
error then what you describe might happen.
-igor
On Wed,
I don't have custom error page.
Link to image:
http://img3.imageshack.us/img3/2244/bb476f8ece2116133419587ba3.gif
On Wed, Feb 11, 2009 at 10:22 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
your attachment got stripped, but i can imagine what it looks like.
all runtime exceptions, wicket
The problem is that you are calling getResponse().getOutputStream(), which
invokes getOutputSteam from the http servlet response. After handling your
request, Wicket calls getWriter from the same response. From the
ServletResponse.getOutputStream Javadoc:
Either this method or
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
--
View this message in context:
http://www.nabble.com/How-to-handle-this-exception-properly-tp21929220p21959762.html
Sent from the Wicket
should be fine, you can throw any kind of runtime exception you want.
-igor
On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
Hello, all wicket users!
I receive HTTP Status 500 error in this situation:
I have a page with empty html-file and page's
should be fine, you can throw any kind of runtime exception you want.
-igor
Igor, thank you for answer.
Did you mean that HTTP Status 500 error I get is not what it must be?
It's a bug or what? I can make jira if it is so.
-- Tony
On Mon, Feb 9, 2009 at 11:57 PM, Anton Veretennikov
do you get 500 or do you not?
-igor
On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
should be fine, you can throw any kind of runtime exception you want.
-igor
Igor, thank you for answer.
Did you mean that HTTP Status 500 error I get is not what it
I get it.
On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
do you get 500 or do you not?
-igor
On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
should be fine, you can throw any kind of runtime exception you want.
-igor
considering 5xx codes are server-related failures i would say it is correct.
-igor
On Tue, Feb 10, 2009 at 9:03 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
I get it.
On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg igor.vaynb...@gmail.com
wrote:
do you get 500 or do you not?
How to get standart Error page then instead of this error?
considering 5xx codes are server-related failures i would say it is correct.
-igor
On Tue, Feb 10, 2009 at 9:03 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
I get it.
On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg
the status code and the error page are orthogonal. you should still
see the standard error page, its just that it is returned with status
500.
-igor
On Tue, Feb 10, 2009 at 9:46 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
How to get standart Error page then instead of this error?
On Tue, Feb 10, 2009 at 5:00 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
the status code and the error page are orthogonal. you should still
see the standard error page, its just that it is returned with status
500.
... with a proper browser (a cent)
--
Marcelo Morales
Hello, all wicket users!
I receive HTTP Status 500 error in this situation:
I have a page with empty html-file and page's onRender() looks like:
OutputStreamWriter writer = null;
try {
writer = new OutputStreamWriter(getResponse().getOutputStream(),
encoding);
String enc =
14 matches
Mail list logo