SAP Knowledge Base Article - Preview

3192344 - Stream Closed when trying to upload file using importcockpit

Symptom

When trying to upload file using importcockpit you get error Stream Closed and in the logs you could see:

ERROR [Thread-109] [FileUploaderUIEditor] Unable to upload!
 de.hybris.platform.servicelayer.exceptions.ModelSavingException: Stream Closed
 at de.hybris.platform.servicelayer.media.impl.DefaultMediaService.setStreamForMedia(DefaultMediaService.java:599) ~[coreserver.jar:?]
 at de.hybris.platform.servicelayer.media.impl.DefaultMediaService.setStreamForMedia(DefaultMediaService.java:548) ~[coreserver.jar:?]
 at de.hybris.platform.servicelayer.media.impl.DefaultMediaService.setStreamForMedia(DefaultMediaService.java:371) ~[coreserver.jar:?]
 at de.hybris.platform.importcockpit.model.editor.impl.FileUploaderUIEditor.setStreamForMedia(FileUploaderUIEditor.java:169) ~[importcockpitserver.jar:?]
 at de.hybris.platform.importcockpit.model.editor.impl.FileUploaderUIEditor.access$3(FileUploaderUIEditor.java:136) ~[importcockpitserver.jar:?]
 at de.hybris.platform.importcockpit.model.editor.impl.FileUploaderUIEditor$1.onEvent(FileUploaderUIEditor.java:114) [importcockpitserver.jar:?]
 at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197) [zk-3.6.4-hybris-patched.jar:3.6.4]
 at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141) [zk-3.6.4-hybris-patched.jar:3.6.4]
 at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519) [zk-3.6.4-hybris-patched.jar:3.6.4]
 at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446) [zk-3.6.4-hybris-patched.jar:3.6.4]
Caused by: de.hybris.platform.jalo.JaloSystemException: Stream Closed
 at de.hybris.platform.jalo.media.MediaDataStoreCommand.detectAndSetMimeAndDataStream(MediaDataStoreCommand.java:121) ~[coreserver.jar:?]
 at de.hybris.platform.jalo.media.MediaDataStoreCommand.<init>(MediaDataStoreCommand.java:90) ~[coreserver.jar:?]
 at de.hybris.platform.jalo.media.MediaDataStoreCommand.<init>(MediaDataStoreCommand.java:68) ~[coreserver.jar:?]
 at de.hybris.platform.jalo.media.MediaDataStoreCommand$Builder.build(MediaDataStoreCommand.java:364) ~[coreserver.jar:?]
 at de.hybris.platform.servicelayer.media.impl.DefaultMediaService$3.execute(DefaultMediaService.java:586) ~[coreserver.jar:?]
 at de.hybris.platform.tx.Transaction.execute(Transaction.java:1192) ~[coreserver.jar:?]
 at de.hybris.platform.tx.Transaction.execute(Transaction.java:1157) ~[coreserver.jar:?]
 at de.hybris.platform.servicelayer.media.impl.DefaultMediaService.setStreamForMedia(DefaultMediaService.java:572) ~[coreserver.jar:?]
 ... 9 more
Caused by: java.io.IOException: Stream Closed
 at java.io.FileInputStream.available0(Native Method) ~[?:1.8.0_241]
 at java.io.FileInputStream.available(FileInputStream.java:306) ~[?:1.8.0_241]
 at java.io.FilterInputStream.available(FilterInputStream.java:168) ~[?:1.8.0_241]
 at de.hybris.platform.jalo.media.MediaDataStoreCommand.detectAndSetMimeAndDataStream(MediaDataStoreCommand.java:102) ~[coreserver.jar:?]
 at de.hybris.platform.jalo.media.MediaDataStoreCommand.<init>(MediaDataStoreCommand.java:90) ~[coreserver.jar:?]
 at de.hybris.platform.jalo.media.MediaDataStoreCommand.<init>(MediaDataStoreCommand.java:68) ~[coreserver.jar:?]
 at de.hybris.platform.jalo.media.MediaDataStoreCommand$Builder.build(MediaDataStoreCommand.java:364) ~[coreserver.jar:?]
 at de.hybris.platform.servicelayer.media.impl.DefaultMediaService$3.execute(DefaultMediaService.java:586) ~[coreserver.jar:?]
 at de.hybris.platform.tx.Transaction.execute(Transaction.java:1192) ~[coreserver.jar:?]
 at de.hybris.platform.tx.Transaction.execute(Transaction.java:1157) ~[coreserver.jar:?]
 at de.hybris.platform.servicelayer.media.impl.DefaultMediaService.setStreamForMedia(DefaultMediaService.java:572) ~[coreserver.jar:?]
 ... 9 more


Read more...

Environment

SAP Commerce 6.7

Product

SAP Commerce all versions

Keywords

KBA , CEC-COM-CPS-CKP , Cockpits & hMC , Problem

About this page

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

Search for additional results

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