cancel
Showing results for 
Search instead for 
Did you mean: 

Error when displaying an image

fgarcia
Champ in-the-making
Champ in-the-making
I've created a Custom Action that takes a ZIP file and unzip its content in an Alfresco space. The images are created as child associations of the node that represents the content. Everything looks is working correctly but when I try to see the images it shows a message error on the browser that there is an error trying to display the images, and in my console I got the following stacktrace:

15:23:35,950 WARN  [springframework.util.FileCopyUtils] Could not close OutputStream
ClientAbortException:  java.net.SocketException: Software caused connection abort: socket write error
      at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:374)
      at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:398)
      at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:319)
      at org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:283)
      at org.apache.coyote.tomcat5.CoyoteOutputStream.close(CoyoteOutputStream.java:91)
      at org.springframework.util.FileCopyUtils.copy(FileCopyUtils.java:132)
      at org.alfresco.repo.content.AbstractContentReader.getContent(AbstractContentReader.java:350)
      at org.alfresco.web.app.servlet.BaseDownloadContentServlet.processDownloadRequest(BaseDownloadContentServlet.java:261)
      at org.alfresco.web.app.servlet.DownloadContentServlet.doGet(DownloadContentServlet.java:106)
      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:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:595)


I exported the space and the images looks ok, so I'm not sure what's happening.

Thanks,

Frank
2 REPLIES 2

derek
Star Contributor
Star Contributor
Hi,

This message should really be a DEBUG message, I think.  Your client is terminating the download while the stream is being read.

Regards

fgarcia
Champ in-the-making
Champ in-the-making
The error was caused due to a external problem with the image (image was CMYK encoded)