Hi,
do you mean that I need to rebuild tomcat with a new log?
At the moment I have reproduced the problem with an MultiActionController
with this default method
public ModelAndView init(HttpServletRequest request, HttpServletResponse
response, RegistrationsSearch command)
throws Exception {
log.debug("isCommitted ?? "+response.isCommitted());
return new ModelAndView(getInputView());
}
if I call repeatedly this method now and then the log
log.debug("isCommitted ?? "+response.isCommitted());
write true, so the response was already committed.
Regards,
Marco
Rainer Jung-3 wrote:
>
> marcobalc schrieb:
>> Hi,
>>
>> I have tested an other controller that return to a jsp with simple HTML.
>>
>> The last rows of this controller are
>>
>> ...
>> ....
>> log.debug("isCommitted?? "+response.isCommitted());
>> Map m = new HashMap();
>> m.put("tutteListe", tutteListe);
>> return new ModelAndView(getInputView(), m);
>>
>> I have invoked 5 times the same controller and the first 4 times the
>> response is ok and the last call resulted on text/plain content type and
>> in
>> effect isCommitted return true.
>>
>> 2008-12-08 22:54:20,506 DEBUG
>> [it.urlandus.events.app.web.controller.frontend.RegistrantsList] -
>> isCommitted?? false
>> 2008-12-08 22:54:25,104 DEBUG
>> [it.urlandus.events.app.web.controller.frontend.RegistrantsList] -
>> isCommitted?? false
>> 2008-12-08 22:54:25,538 DEBUG
>> [it.urlandus.events.app.web.controller.frontend.RegistrantsList] -
>> isCommitted?? false
>> 2008-12-08 22:54:27,240 DEBUG
>> [it.urlandus.events.app.web.controller.frontend.RegistrantsList] -
>> isCommitted?? false
>> 2008-12-08 22:54:28,781 DEBUG
>> [it.urlandus.events.app.web.controller.frontend.RegistrantsList] -
>> isCommitted?? true
>>
>> Any idea about a possible cause of this issue?
>
> Not really. But since we know, we can detect the commit in class
> org.apache.jk.core.MsgContext, method action(), you can add there the
> output of a stack. So each time some code calls commit, you can see
> exactly where the call comes from.
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/bad-content-type-mod_jk-1.2.27-tp20892496p20913205.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]