Re: How to handle this exception properly

2009-02-11 Thread Anton Veretennikov
------------ >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>> >>> ---

Re: How to handle this exception properly

2009-02-11 Thread walnutmon
- >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> - >> To

Re: How to handle this exception properly

2009-02-11 Thread Cristiano Kliemann
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 getWritermay be cal

Re: How to handle this exception properly

2009-02-11 Thread Anton Veretennikov
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 wrote: > your attachment got stripped, but i can imagine what it looks like. > > all runtime exceptions, wicket or not, are handled in

Re: How to handle this exception properly

2009-02-11 Thread Igor Vaynberg
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, Fe

Re: How to handle this exception properly

2009-02-11 Thread Anton Veretennikov
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 e

Re: How to handle this exception properly

2009-02-10 Thread Marcelo Morales
On Tue, Feb 10, 2009 at 5:00 PM, Igor Vaynberg 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 ---

Re: How to handle this exception properly

2009-02-10 Thread 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 wrote: > How to get standart Error page then instead of this error? > >> considering 5xx codes

Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
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 > wrote: >> I get it. >> >> On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg >> wrote: >>> d

Re: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
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 wrote: > I get it. > > On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg > wrote: >> do you get 500 or do you not? >> >> -igor >> >> On Tue, Feb 10, 2009 at 8:57

Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
I get it. On Wed, Feb 11, 2009 at 12:01 AM, Igor Vaynberg wrote: > do you get 500 or do you not? > > -igor > > On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov > wrote: >>> should be fine, you can throw any kind of runtime exception you want. >>> >>> -igor >> >> Igor, thank you for answer. >>

Re: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
do you get 500 or do you not? -igor On Tue, Feb 10, 2009 at 8:57 AM, Anton Veretennikov 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 must be? > It's a

Re: How to handle this exception properly

2009-02-10 Thread Anton Veretennikov
> 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 >

Re: How to handle this exception properly

2009-02-10 Thread Igor Vaynberg
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 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 onRender() looks like: > >

How to handle this exception properly

2009-02-09 Thread Anton Veretennikov
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 = ge