Topic
3 replies Latest Post - ‏2011-07-18T23:45:02Z by SystemAdmin
Boegman
Boegman
4 Posts
ACCEPTED ANSWER

Pinned topic Common Viewer reporting java.io.IOException: stream is closed on first load

‏2011-03-07T15:25:00Z |
When loading the common viewer for the first time, I get the following error:

"COEV0002E: The viewer could not log in to repository: ecee

java.io.IOException: stream is closed"

The Viewer then continues to load the document.

From the Java console I see that it's failing on the Logon servlet call:
COEV0002E: The viewer could not log in to repository: ecee java.io.IOException: stream is closed
java.io.IOException: stream is closed
+ at sun.net.www.http.ChunkedInputStream.ensureOpen(Unknown Source)+
+ at sun.net.www.http.ChunkedInputStream.read(Unknown Source)+
+ at java.io.FilterInputStream.read(Unknown Source)+
+ at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)+
+ at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)+
+ at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)+
+ at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.close(Unknown Source)+
+ at com.venetica.vbr.viewer.client.CommonViewer.getServletResponse(CommonViewer.java:915)+
+ at com.venetica.vbr.viewer.client.CommonViewer.logon(CommonViewer.java:551)+
+ at com.venetica.vbr.viewer.client.CommonViewerAppletEmbedded$1.displayImageOnViewer(CommonViewerAppletEmbedded.java:149)+
+ at com.venetica.vbr.viewer.client.CommonViewerAppletEmbedded$1.run(CommonViewerAppletEmbedded.java:139)+

Were also experiencing other intermittent errors after this (e.g. COEV0053E: Servlet could not find cached user object), but never get this exception again until I clear the Java temporary files in the Java control panel.

Does anyone have any idea why the connection might get closed? This is not 100% reliable, but we do get it on both our environments (AIX and Wintel) at least every third clean Java environment.

Tanks in advance.

Gean
Updated on 2011-07-18T23:45:02Z at 2011-07-18T23:45:02Z by SystemAdmin
  • mbogusz
    mbogusz
    1 Post
    ACCEPTED ANSWER

    Re: Common Viewer reporting java.io.IOException: stream is closed on first load

    ‏2011-03-08T19:18:08Z  in response to Boegman
    Please provide information about the Product using the Common Viewer.
  • Boegman
    Boegman
    4 Posts
    ACCEPTED ANSWER

    Re: Common Viewer reporting java.io.IOException: stream is closed on first load

    ‏2011-03-08T19:43:53Z  in response to Boegman
    The Common viewer is opened from a browser, (IE8 in my test Dev environment, but the same happens in other browsers Chrome and IE7). The HTML I used to launch it:
    <html>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <head><title>IBM WebSphere Information Integrator Content Edition Common Viewer Applet</title></head>
    <body>

    <applet archive="http://devcm84:9080/iice_common_viewer/iice_common_viewer_applet.jar" name="commonViewer" code="com.venetica.vbr.viewer.client.CommonViewerAppletEmbedded.class" width="100%" height="100%">
    <!--param name="CODEBASE" value="http://devcm84:9080/iice_common_viewer/">
    <param name="archive" value="http://devcm84:9080/iice_common_viewer/iice_common_viewer_applet.jar" /-->
    <!--param name="cache_option" value="No" /-->
    <param name="baseServletURL" value="http://devcm84:9080/iice_common_viewer/" />
    <!--param name="nativeContentServletURL" value="GetNativeContent"-->
    <param name="repository" value="ecee" />
    <param name="password" value="123Password" />
    <param name="username" value="icmadmin" />
    <param name="contentID" value="LeaveApp.A1001001A11C02A12600G04493.A11C02A12600G04493.1013" />
    <!--param name="useImageURLs" value="true">
    <param name="userData" value=""-->
    <param name="debug" value="true" />
    <hr>
    Java is not supported by your browser.
    <hr>
    </applet>

    </body>
    </html>
    I have tried a number of different parameters, but they all have the same effect.

    I get the content ID from IBM Content Integrator 8.5.1 fp2 using the SOA services, but I don't think that is really helpful?

    The applet and servet used is the out-of-the box ones (even though the documentation suggests the GetNativeContent servlet can be customised).

    Hope that helps.

    Gean
  • SystemAdmin
    SystemAdmin
    254 Posts
    ACCEPTED ANSWER

    Re: Common Viewer reporting java.io.IOException: stream is closed on first load

    ‏2011-07-18T23:45:02Z  in response to Boegman
    A fix for the exception ->

    java.io.IOException: stream is closed

    will be available in the next fixpack release (ICI 851 FP3). This issue has only been observed with Oracle JRE but not IBM JRE.

    Thanks.
    Kechy