Hi, in effect in the case of Excel download I set Header after I send the output stream because I do not know that tomcat start to flush before controller return.
Now I have fixed this. But I don't understand why I have mime type problem with other normal page. An other repetitive case with same problem , is a controller where I upload and read an excel and I return to a normal page: the page source is printed on screen. I attach a souce fragment, my application log that show the output point "CI SONO DEGLI ERRORI NELL'INPUT.." and catalina.out that contains modjk logs. http://www.nabble.com/file/p20957484/source.txt source.txt http://www.nabble.com/file/p20957484/myApplication.log myApplication.log http://www.nabble.com/file/p20957484/catalina.txt catalina.txt Thanks, Marco Rainer Jung-3 wrote: > > Hi Marco, > > marcobalc schrieb: >> Hi, >> >> now I have the stacktrace but the problem is that the stack do not >> involve >> my classes :| >> >> java.lang.Throwable: Stack Info >> at org.apache.jk.core.MsgContext.action(MsgContext.java:263) >> at org.apache.coyote.Response.action(Response.java:183) >> at org.apache.coyote.Response.sendHeaders(Response.java:380) >> at >> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305) >> at >> org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:273) >> at >> org.apache.catalina.connector.Response.finishResponse(Response.java:492) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:310) >> at >> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) >> at >> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) >> at >> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) >> at >> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) >> at >> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) >> at >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) >> at java.lang.Thread.run(Thread.java:619) >> >> Any idea? i'm going crazy on this problem :( > > Could you please post a more complete part of the log file, when used > with the increased log level I posted to you earlier in this thread. > With the more complete log we will have timestamps, and we can also see > the second commit etc. > > 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-tp20892496p20957484.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]