RE: Tomcat does not respond

2009-05-28 Thread Caldarale, Charles R
 From: Diego Castorina [mailto:di...@quince.nl]
 Subject: RE: Tomcat does not respond
 
 SEVERE: Servlet.service() for servlet springapp threw exception
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
 at org.apache.catalina.connector.Response.getWriter(Response.java:604)
 at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
 at 
 org.springframework.web.servlet.view.json.JsonView.renderMergedOutputModel(JsonView.java:60)

It would seem like the first thing you need to do is fix your webapp so it 
doesn't provoke the above error.  If Spring intends to use the Writer 
associated with the Response object, you cannot use the OutputStream (and vice 
versa).  Fix the other parts of your webapp to use Response.getWriter(), not 
Response.getOutputStream().

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat does not respond

2009-05-28 Thread Diego Castorina
I use the ServletOutputStream because I need to write binary directly in the 
response while with the PrintWriter I can only write character text to the 
client.
I don't understand the reason for this exception since I don't use the JsonView 
class for the requests that return a binary as output. 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: giovedì 28 maggio 2009 15.15
To: Tomcat Users List
Subject: RE: Tomcat does not respond

 From: Diego Castorina [mailto:di...@quince.nl]
 Subject: RE: Tomcat does not respond
 
 SEVERE: Servlet.service() for servlet springapp threw exception
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
 at org.apache.catalina.connector.Response.getWriter(Response.java:604)
 at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
 at 
 org.springframework.web.servlet.view.json.JsonView.renderMergedOutputModel(JsonView.java:60)

It would seem like the first thing you need to do is fix your webapp so it 
doesn't provoke the above error.  If Spring intends to use the Writer 
associated with the Response object, you cannot use the OutputStream (and vice 
versa).  Fix the other parts of your webapp to use Response.getWriter(), not 
Response.getOutputStream().

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Diego Castorina | quince
--
mobile  
e-mail  di...@quince.nl
web www.quince.nl
--
assumburg 73
1081 gb amsterdam
the netherlands
tel: +31 (0)20 3471000
fax:+31 (0)20 3471005

P Please consider the environment before printing this email

Nederlands:
Dit bericht kan vertrouwelijke informatie bevatten. Indien u niet de 
geadresseerde van dit bericht bent, verzoeken wij u dit bericht te vernietigen 
zonder van de inhoud kennis te nemen en de inhoud ervan niet te gebruiken, niet 
te kopiëren en niet onder derden te verspreiden. Quince is een handelsnaam die 
wordt gevoerd door Quince B.V. te Amsterdam. Op alle werkzaamheden zijn de 
algemene voorwaarden en de algemene inkoopvoorwaarden van Quince B.V. van 
toepassing. In artikel 11 van de algemene voorwaarden en in artikel 9 van de 
algemene inkoopvoorwaarden is een beperking van aansprakelijkheid opgenomen. De 
voorwaarden zijn ook na te lezen op www.quince.nl/algemenevoorwaarden en 
www.quince.nl/inkoopvoorwaarden 

English:
This message may contain information that is privileged or confidential. If you 
are not the named addressee of this message, please destroy it without reading, 
using, copying or disclosing its contents to any other person. Quince is a 
trade name of Quince B.V. with its office in Amsterdam. All services are 
governed by the general terms and conditions and purchase terms and conditions 
of Quince B.V. . Article 11 of the general terms and conditions and article 9 
of the purchase terms and conditions contain a limitation of liability. A free 
copy of the general terms and conditions will be provided upon request. The 
conditions can also be read on www.quince.nl/termsandconditions and 
www.quince.nl/purchasetermsandconditions 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat does not respond

2009-05-28 Thread Caldarale, Charles R
 From: Diego Castorina [mailto:di...@quince.nl]
 Subject: RE: Tomcat does not respond
 
 I use the ServletOutputStream because I need to write binary directly
 in the response while with the PrintWriter I can only write character
 text to the client.

Then you may need to resort to your own wrapper for the Response object, and it 
can coordinate the use of the Writer with the OutputStream.

 I don't understand the reason for this exception since I don't use the
 JsonView class for the requests that return a binary as output.

The stack trace clearly shows you're mistaken.  You may not use it explicitly, 
but something you're using in Spring obviously does.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat does not respond

2009-05-28 Thread Diego Castorina
Thanks for the tip.
How can I write this wrapper?
I can have different kind of client so I cannot encode the binary as string and 
decoding it on the client side.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: giovedì 28 maggio 2009 16.12
To: Tomcat Users List
Subject: RE: Tomcat does not respond

 From: Diego Castorina [mailto:di...@quince.nl]
 Subject: RE: Tomcat does not respond
 
 I use the ServletOutputStream because I need to write binary directly
 in the response while with the PrintWriter I can only write character
 text to the client.

Then you may need to resort to your own wrapper for the Response object, and it 
can coordinate the use of the Writer with the OutputStream.

 I don't understand the reason for this exception since I don't use the
 JsonView class for the requests that return a binary as output.

The stack trace clearly shows you're mistaken.  You may not use it explicitly, 
but something you're using in Spring obviously does.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Diego Castorina | quince
--
mobile  
e-mail  di...@quince.nl
web www.quince.nl
--
assumburg 73
1081 gb amsterdam
the netherlands
tel: +31 (0)20 3471000
fax:+31 (0)20 3471005

P Please consider the environment before printing this email

Nederlands:
Dit bericht kan vertrouwelijke informatie bevatten. Indien u niet de 
geadresseerde van dit bericht bent, verzoeken wij u dit bericht te vernietigen 
zonder van de inhoud kennis te nemen en de inhoud ervan niet te gebruiken, niet 
te kopiëren en niet onder derden te verspreiden. Quince is een handelsnaam die 
wordt gevoerd door Quince B.V. te Amsterdam. Op alle werkzaamheden zijn de 
algemene voorwaarden en de algemene inkoopvoorwaarden van Quince B.V. van 
toepassing. In artikel 11 van de algemene voorwaarden en in artikel 9 van de 
algemene inkoopvoorwaarden is een beperking van aansprakelijkheid opgenomen. De 
voorwaarden zijn ook na te lezen op www.quince.nl/algemenevoorwaarden en 
www.quince.nl/inkoopvoorwaarden 

English:
This message may contain information that is privileged or confidential. If you 
are not the named addressee of this message, please destroy it without reading, 
using, copying or disclosing its contents to any other person. Quince is a 
trade name of Quince B.V. with its office in Amsterdam. All services are 
governed by the general terms and conditions and purchase terms and conditions 
of Quince B.V. . Article 11 of the general terms and conditions and article 9 
of the purchase terms and conditions contain a limitation of liability. A free 
copy of the general terms and conditions will be provided upon request. The 
conditions can also be read on www.quince.nl/termsandconditions and 
www.quince.nl/purchasetermsandconditions 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat does not respond

2009-05-28 Thread Caldarale, Charles R
 From: Diego Castorina [mailto:di...@quince.nl]
 Subject: RE: Tomcat does not respond
 
 How can I write this wrapper?

I don't know Spring, but perhaps it already offers this capability.

Otherwise, Chris S recently posted a wrapper that, IIRC, will do this.  Will 
need to search the archives for it, unless Chris happens to read this.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat does not respond

2009-05-27 Thread Mark Thomas
Diego Castorina wrote:
 Hi everyone,
 
  
 
 We are currently running Tomcat 6.0.14 on a Ubuntu Server 8.04 and Java
 1.6.
 
 Two applications are running: 
 
 -  One of them uses Spring MVC and Jackrabbit providing RESTful
 API
 
 -  The second is a client of the former with no database but it
 is a Grails application 
 
  
 
 The server completely stop responding around 2 times a day but nothing
 emerges from the logs.
 
 It hangs on every request, even on the index.htm containing a Hello
 World
 
  
 
 Any clues?

1. Take couple of threads dumps (say 3 dumps, 10s apart) when if goes wrong.

2. Analyse the thread dumps.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat does not respond

2009-05-27 Thread Martin Gainty

please display TC logs usually located at
%CATALINA_HOME%\SERVER_NAME.-MM-DD.log

any/all %CATALINA_HOME%/*/WEB-INF/web.xml 
any/all %CATALINA_HOME%/*/WEB-INF/applicationContext.xml

and your startup configuration for Groovy
%GROOVY_HOME%\conf\groovy-starter*.conf

Saludos Cordiales 
Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Subject: Tomcat does not respond
 Date: Wed, 27 May 2009 17:01:56 +0200
 From: di...@quince.nl
 To: users@tomcat.apache.org
 
 Hi everyone,
 
  
 
 We are currently running Tomcat 6.0.14 on a Ubuntu Server 8.04 and Java
 1.6.
 
 Two applications are running: 
 
 -  One of them uses Spring MVC and Jackrabbit providing RESTful
 API
 
 -  The second is a client of the former with no database but it
 is a Grails application 
 
  
 
 The server completely stop responding around 2 times a day but nothing
 emerges from the logs.
 
 It hangs on every request, even on the index.htm containing a Hello
 World
 
  
 
 Any clues?
 
 
 
 Diego Castorina | quince
 --
 mobile  
 e-mail  di...@quince.nl
 web www.quince.nl
 --
 assumburg 73
 1081 gb amsterdam
 the netherlands
 tel: +31 (0)20 3471000
 fax:+31 (0)20 3471005
 
 P Please consider the environment before printing this email
 
 Nederlands:
 Dit bericht kan vertrouwelijke informatie bevatten. Indien u niet de 
 geadresseerde van dit bericht bent, verzoeken wij u dit bericht te 
 vernietigen zonder van de inhoud kennis te nemen en de inhoud ervan niet te 
 gebruiken, niet te kopieren en niet onder derden te verspreiden. Quince is 
 een handelsnaam die wordt gevoerd door Quince B.V. te Amsterdam. Op alle 
 werkzaamheden zijn de algemene voorwaarden en de algemene inkoopvoorwaarden 
 van Quince B.V. van toepassing. In artikel 11 van de algemene voorwaarden en 
 in artikel 9 van de algemene inkoopvoorwaarden is een beperking van 
 aansprakelijkheid opgenomen. De voorwaarden zijn ook na te lezen op 
 www.quince.nl/algemenevoorwaarden en www.quince.nl/inkoopvoorwaarden 
 
 English:
 This message may contain information that is privileged or confidential. If 
 you are not the named addressee of this message, please destroy it without 
 reading, using, copying or disclosing its contents to any other person. 
 Quince is a trade name of Quince B.V. with its office in Amsterdam. All 
 services are governed by the general terms and conditions and purchase terms 
 and conditions of Quince B.V. . Article 11 of the general terms and 
 conditions and article 9 of the purchase terms and conditions contain a 
 limitation of liability. A free copy of the general terms and conditions will 
 be provided upon request. The conditions can also be read on 
 www.quince.nl/termsandconditions and www.quince.nl/purchasetermsandconditions 
 
 

_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

RE: Tomcat does not respond any request after several days

2006-01-19 Thread George Sexton
You might have better luck getting an answer if you read this

http://www.catb.org/~esr/faqs/smart-questions.html

And repost your questions.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Cuong M Tran [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 19, 2006 3:00 AM
 To: users@tomcat.apache.org
 Subject: Tomcat does not respond any request after several days
 
 Hi,
 
 I got a serious problem when I deploy my software on to 
 customer's server.
 
 The Tomcat server runs fine in several days (could be 1 or 2,3,4 days
 unexpectedly) but then it does not respond any request and produce any
 output (also no error code).
 
 It only happens to me only on that server. The server is 
 running Windows
 2000 server, 2GB RAM, 4 CPUs.
 
 I've spent days and nights and not yet work out any solution.
 
 Is there anyone having the same problem and pointing me a way to solve
 it ? My customer is pressuring me too much for this.
 
 Thanks
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]