SAP Knowledge Base Article - Preview

2344964 - CSS Uploaded via CMSCOCKPIT Can't Be Recognized as Media

Symptom

In CMS cockpit , when try to uplpload a CSS with CMSImageComponent, the url is not generated. 

Console log shows following error:

ERROR [Thread-47] [UploadMediaSecondPageController] Could not execute 'finalizeWizard', reason:
java.lang.IllegalStateException: Use getStringData() instead
at org.zkoss.util.media.AMedia.newIllegalStateException(AMedia.java:319) ~[zcommon-3.6.4.jar:3.6.4]
at org.zkoss.util.media.AMedia.getStreamData(AMedia.java:303) ~[zcommon-3.6.4.jar:3.6.4]
at de.hybris.platform.cockpit.wizards.media.UploadMediaSecondPageController.createNewMedia(UploadMediaSecondPageController.java:96) ~[cockpitserver.jar:?]
at de.hybris.platform.cockpit.wizards.media.UploadMediaSecondPageController.done(UploadMediaSecondPageController.java:49) [cockpitserver.jar:?]
at de.hybris.platform.cockpit.wizards.Wizard.doDone(Wizard.java:530) [cockpitserver.jar:?]
at de.hybris.platform.cockpit.wizards.generic.GenericItemWizard.doDone(GenericItemWizard.java:680) [cockpitserver.jar:?]


Read more...

Environment

SAP Hybris Commerce All Versions

Product

SAP Commerce all versions

Keywords

  • CSS upload
  • CMSImageComponent
  • StringData
  • StreamData
, KBA , CEC-COM-CPS-CKP , CPS Cockpits & hMC (SAP Commerce) , 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.