SAP Knowledge Base Article - Preview

2909754 - ESR or Integration Builder raises error "Stream is closed"

Symptom

After updating the system to Process Orchestration 7.5 SP14 or higher which is running on a MS SQL database, you started to face issues while accessing the the Enterprise Service Repository, or when selecting an Usage Profile, or when trying to Import the ESR Metadata: 

  • Invalid usage profile. Reselect the usage profile or log in again

    Invalid Usage Profile.PNG

  • Runtime error 
    runtime error.PNG

If you enable the Java Client Logs, the following errors are visible in them:

  • Error: Unexpected error on server for system REPOSITORY with application REPOSITORY. Detailed information: Read object <EPM_MIMECode><http://sap.com/xi/NWDemo><ifmtypedef> failed!. Server stack trace:
    com.sap.aii.ib.server.propagation.XIPropagationException: Read object <EPM_MIMECode><http://sap.com/xi/NWDemo><ifmtypedef> failed!
    at com.sap.aii.ib.server.propagation.XIPropagationException.createFromException(XIPropagationException.java:54)
    at com.sap.aii.ib.server.propagation.PropagatorImpl.integrateObjectVersions(PropagatorImpl.java:270)
    at sun.reflect.GeneratedMethodAccessor627.invoke(Unknown Source)
    ... 108 more
    Caused by: java.io.IOException: The stream is closed.
    at com.microsoft.sqlserver.jdbc.BaseInputStream.checkClosed(SimpleInputStream.java:95)
    at com.microsoft.sqlserver.jdbc.PLPInputStream.read(PLPInputStream.java:209)
    at com.sap.sql.jdbc.common.CommonWrappedInputStream.read(CommonWrappedInputStream.java:42)

  • [AWT-EventQueue-2] ERROR com.sap.aii.utilxi.swing.toolkit.ExceptionDialog: MessageID=IBF.lib_gui.005265#Failed to initialize Exception Dialog
    Thrown:
    com.sap.aii.utilxi.misc.api.ResourceException: Internal Error: An unexpected error occurred (com.sap.aii.ib.server.persist.gen.gp.GpException: Error when loading XML document (The stream is closed.))
    at com.sap.aii.ib.sbeans.gen.BaseSessionBean.wrap(BaseSessionBean.java:138)
    at com.sap.aii.ib.sbeans.gen.BaseSessionBean.wrap(BaseSessionBean.java:111)
    at com.sap.aii.ib.server.misc.MiscServicesBean.getSchemas(MiscServicesBean.java:188)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    ...
    Serialized cause: java.io.IOException: The stream is closed.
    at com.microsoft.sqlserver.jdbc.BaseInputStream.checkClosed(SimpleInputStream.java:95)
    at com.microsoft.sqlserver.jdbc.PLPInputStream.read(PLPInputStream.java:209)
    at com.sap.sql.jdbc.common.CommonWrappedInputStream.read(CommonWrappedInputStream.java:42)
    at java.io.FilterInputStream.read(FilterInputStream.java:86)
    at java.io.FilterInputStream.read(FilterInputStream.java:86)
    at com.sap.aii.utilxi.blob.api.BlobServices$InputStreamLoc.read(BlobServices.java:288)
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2918)
    ...

  • Thrown:
    com.sap.aii.utilxi.swing.framework.PersistenceException: Runtime error (RuntimeException). See details
    at com.sap.aii.ib.gui.editor.DefaultPersistenceHandler.load(DefaultPersistenceHandler.java:115)
    at com.sap.aii.ib.gui.editor.XiDocument.load(XiDocument.java:261)
    at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.load(OpenCommand.java:373)
    at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.localOpen(OpenCommand.java:278)
    at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.execute(OpenCommand.java:212)
    ...

    Serialized cause: java.io.IOException: The stream is closed.
    at com.microsoft.sqlserver.jdbc.BaseInputStream.checkClosed(SimpleInputStream.java:95)
    at com.microsoft.sqlserver.jdbc.SimpleInputStream.read(SimpleInputStream.java:281)
    at com.sap.sql.jdbc.common.CommonWrappedInputStream.read(CommonWrappedInputStream.java:97)
    at java.io.FilterInputStream.read(FilterInputStream.java:143)
    at java.io.FilterInputStream.read(FilterInputStream.java:143)
    at com.sap.aii.utilxi.blob.api.BlobServices$InputStreamLoc.read(BlobServices.java:305)
    at com.sap.aii.utilxi.blob.api.AIIBlob.getByteArray(AIIBlob.java:86)
    ... 58 more


Read more...

Environment

  • SAP NetWeaver 7.5
  • Microsoft SQL Database

Product

SAP NetWeaver 7.5

Keywords

ESR, Runtime error, Runtime, RuntimeException, See details, Repository, EPM_MIMECode, ifmtypedef, Profile, Stream, Closed, JDBC, Microsoft, MSSQL, MS SQL, SQL, Database, ESR, Internal, Error, 7.0, 7, 8.2, Process Orchestration 7.5, PI 7.5, PO 7.5, XI, AEX

2912870 The stream is closed
, KBA , BC-XI-IBF-LGN , Login/Log off for ESR / IB , BC-DB-MSS , SQL Server in SAP NetWeaver Products , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.