Environment: TS 6.5 SP2/Solaris/MB 4.5.1/ECM connector 2.0
I have the following issue reg TS-Mediabin connector.
We are using TS-MB connector to browse mediabin images from forms-publisher. It is observed that some times the thumb nail previews of images
vanish from the mediabin browser and is replaced with the crossmark (image not found). This is restored only after doing a iwreset -ui.
On further investigation we found that this error could be reproduced in the following way.
1) Fetch an image using the mediabin preview:. Eg:
http://ts-server/iw-cc/mediabinpreview?asset_id={9D555FEC-5DE6-4C73-879E-EF4AD2FE9B5C}The image will be rendered to the browser.
2) Change the asset ID to an invalid ID in the above URL. We will get an exception with the mediabin error page saying -> the requested asset is unavailable
3) Now if we again try to access the asset by giving the correct asset ID, it runs into the following error.
java.lang.IllegalStateException: getOutputStream() has already been called for this response
org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:163)
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:122)
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:115)
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:324)
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:335)
org.apache.jasper.runtime.JspWriterImpl.print(JspWriterImpl.java:460)
com.interwoven.sample_005fconnector.common.error_jsp._jspService(error_jsp.java:95)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.interwoven.sample.connector.teamsite.common.BaseConnectorServlet.doPost(Unknown Source)
com.interwoven.sample.connector.teamsite.common.BaseConnectorServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.interwoven.ui.base.util.SetRequestEncodingFilter.doFilter(SetRequestEncodingFilter.java:105)
4) At this point if we browse mediabin from teamsite, the thumbnails are not visible any more.
5) The thumbnail preview is restored once we do an iwreset -ui.
It seems to be that the response object that is used to write the images on to the browser, is not being closed/handled properly in the TS connector code during exceptions. Hence once it gets in to an error (for any reason), it always runs into an error until the connection is reset and all objects are flushed from the servlet engine.
Has anyone faced this issue and resolved it successfully?
TIA
-- Suj