Exception occurring while viewing dynamic media component in AEM author mode

Avatar

Avatar

seenivasaragava

Avatar

seenivasaragava

seenivasaragava

06-03-2019

HI All,

I have enabled dynamic media in my local AEM 6.4 + SP2 and when I'm try to drag and drop the OOTB dynamic media component into my page and dragged some images (synced to scene7 server). When I view the page in "view as published" I'm able to see the published image (from scene7 server) but the same page not showing any images on Author environment and it is throwing EOF exception .

07.03.2019 09:27:45.930 *ERROR* [0:0:0:0:0:0:0:1 [1551911265694] GET /etc/cloudsettings.styles.css/libs/settings/cloudsettings/legacy/contexthub HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable

org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException: Stream closed

  at org.eclipse.jetty.server.ResponseWriter.isOpen(ResponseWriter.java:133) [org.apache.felix.http.jetty:4.0.2]

  at org.eclipse.jetty.server.ResponseWriter.flush(ResponseWriter.java:146) [org.apache.felix.http.jetty:4.0.2]

  at java.io.PrintWriter.flush(PrintWriter.java:320)

  at org.apache.sling.engine.impl.SlingHttpServletResponseImpl$1.flush(SlingHttpServletResponseImpl.java:175) [org.apache.sling.engine:2.6.12]

  at com.day.cq.rewriter.htmlparser.SAXWriter.endDocument(SAXWriter.java:74) [com.day.cq.cq-rewriter:5.11.24]

  at com.day.cq.rewriter.processor.impl.SAXWriterFactory$1.endDocument(SAXWriterFactory.java:51) [com.day.cq.cq-rewriter:5.11.24]

  at org.apache.cocoon.xml.sax.AbstractSAXPipe.endDocument(AbstractSAXPipe.java:58) [org.apache.cocoon.cocoon-xml:2.0.2]

Can anyone help me to resolve the issue?

Thanks

Seeni.

Replies

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

06-03-2019

Try to disable contexthub if you don't use it otherwise fix it.

to disable -

  • Use CRXDE Lite to set the property disabled to true under /etc/cloudsettings/default/contexthub

Avatar

Avatar

seenivasaragava

Avatar

seenivasaragava

seenivasaragava

06-03-2019

I couldn't find the /etc/cloudsettings/default/contexthub node in my crxde.

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

06-03-2019

check Configuring ContextHub to disable ContextHub if you don't plan to use it.

possible locations -

/etc/cloudsettings

/libs/settings/cloudsettings

/conf/global/settings/cloudsettings

/conf/<tenant>/settings/cloudsettings

Avatar

Avatar

seenivasaragava

Avatar

seenivasaragava

seenivasaragava

06-03-2019

Changed the property from disabled: false to true. under /libs/settings/cloudsettings.

Still facing the same issue. It is something to do with proxy?

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

07-03-2019

If you "Changed the property from disabled: false to true", then you have enabled ContextHub. Is that what you want to proceed with?

Since the error is related to contexthub, you'd need to either disable it or fix its configuration on your content page/template accordingly.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

07-03-2019

If you are unable to solve - you may need a hotfix too. Please contact the AEM support team.