Home

alfrescoTomcat server terminated unexpectedly?

You are here

3 posts / 0 new
Last post
alfrescoTomcat server terminated unexpectedly?

Hello,

I have the Community version 1.3.0 installed using the windows bundle. Today I went to the Administration Console after doing some work in Alfresco and it wouldn't respond. I took at look at the Services on the Windows 2003 server and noticed alfrescoTomcat was no longer running. I took a look at the event viewer and saw, "The Apache Tomcat alfrescoTomcat service terminated unexpectedly. It has done this 7 time(s)." I restarted it and everything seems okay. I took a look at the logs in the tomcat/logs directory, but there was nothing unusual - no errors.

Is anyone else having this problem? Is there some way to get more detail on what might have happened/be happening?

Thanks

This happened again today while I was walking someone through uploading content to the repository. They were uploading an Excel Spreadsheet and then the "alfrescoTomcat service" stopped running according the the Event Viewer on this Windows 2003 Server.

I had put a new pagetag.class into the web-client.jar to fix the HTTPS unsecured image warning problems with 1.3.0 Community. I am not sure if that was the cause of the problem, but I reverted back to the original web-client.jar to rule it out.

This is what I found in the log file when it happened. Any ideas, questions or pointers?

//2006/8/14/9/7/fcd60626-2bae-11db-9cc5-632d86da4132.bin, mimetype=application/vnd.excel, size=4175872, encoding=UTF-8]
	at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:226)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to copy content to output stream: 
   accessor: ContentAccessor[ contentUrl=store://2006/8/14/9/7/fcd60626-2bae-11db-9cc5-632d86da4132.bin, mimetype=application/vnd.excel, size=4175872, encoding=UTF-8]
	at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:348)
	at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:209)
	... 16 more
Caused by: ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
	at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
	at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
	at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)
	at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)
	at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:88)
	at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:118)
	at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:343)
	... 17 more
Caused by: java.net.SocketException: Connection reset by peer: socket write error
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
	at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:283)
	at com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:272)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:663)
	at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
	at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:747)
	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
	at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
	at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:770)
	at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:125)
	at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:580)
	at org.apache.coyote.Response.doWrite(Response.java:555)
	at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:361)
	... 24 more

This is a strange error as it says "Connection reset by peer: socket write error" - which suggests something other than TomCat is closing the connection. Do you have local firewall software or anything running on that machine that could interfere and cause the problem? Just wondering as I think i've seen this before but only on machines that had other network related software running on them.

Thanks,

Kevin

UI Team Manager and Technical Lead
http://twitter.com/kevinroast - Find me on Twitter!
http://wiki.alfresco.com - Alfresco Wiki docs and Community downloads
http://www.kevs3d.co.uk/dev - My personal HTML5 projects