Expand my Community achievements bar.

SOLVED

AEM dialogs: Weird exception with Fileupload

Avatar

Level 1

Hi guys, 
I'm using fileupload widget in aem dialog in order to allow authors to drag and drop an image. However everytime that image is configured, I see below exception in the log.

My findings so far:

 

Here is de definition of fileupload:
ImageDesktopDefinition.png
Really appreciate your help. Thx

EXCEPTION:

SlingRequestPathInfo: path='/content/splunkcom/en_us/solutionmastertemplate17036v2/jcr:content', selectorString='null', extension='html', suffix='null'

org.apache.sling.api.SlingException: Cannot get DefaultSlingScript: org.eclipse.jetty.io.EofException

at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:510) [org.apache.sling.scripting.core:2.0.54]

at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552) [org.apache.sling.engine:2.6.16]

.

.

.

.

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) [org.apache.felix.http.jetty:4.0.6]

at java.lang.Thread.run(Thread.java:748)

Caused by: org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException

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

at org.eclipse.jetty.server.ResponseWriter.write(ResponseWriter.java:202) [org.apache.felix.http.jetty:4.0.6]

com.splunk.web.core.rewriter.LinkRewriterTransformerFactory$LinkRewriterTransformer.characters(LinkRewriterTransformerFactory.java:107)

at com.adobe.acs.commons.rewriter.AbstractTransformer.characters(AbstractTransformer.java:48) [com.adobe.acs.acs-aem-commons-bundle:3.19.0]

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

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

at com.day.cq.rewriter.htmlparser.DocumentHandlerToSAXAdapter.characters(DocumentHandlerToSAXAdapter.java:59) [com.day.cq.cq-rewriter:5.11.24]

at com.day.cq.rewriter.htmlparser.HtmlParser.update(HtmlParser.java:245) [com.day.cq.cq-rewriter:5.11.24]

at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:386) [org.apache.sling.scripting.core:2.0.54]

at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184) [org.apache.sling.scripting.core:2.0.54]

at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:491) [org.apache.sling.scripting.core:2.0.54]

... 169 common frames omitted

Caused by: org.eclipse.jetty.io.EofException: null

at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:286) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:393) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:277) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:380) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:808) [org.apache.felix.http.jetty:4.0.6]

.

.

 

at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:514) [org.apache.felix.http.jetty:4.0.6]

at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:167)

at org.eclipse.jetty.server.Utf8HttpWriter.write(Utf8HttpWriter.java:183) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.server.ResponseWriter.write(ResponseWriter.java:203) [org.apache.felix.http.jetty:4.0.6]

... 195 common frames omitted

Caused by: java.io.IOException: Broken pipe

at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)

at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)

at sun.nio.ch.IOUtil.write(IOUtil.java:148)

at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:503)

at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:266) [org.apache.felix.http.jetty:4.0.6]

... 210 common frames omitted

16.12.2021 20:29:11.631 *ERROR* [10.43.0.1 [1639686548849] GET /content/splunkcom/en_us/solutionmastertemplate17036v2.html HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Error during include of SlingRequestPathInfo: path='/content/splunkcom/en_us/solutionmastertemplate17036v2/jcr:content', selectorString='null', extension='html', suffix='null'

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

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

at org.eclipse.jetty.server.ResponseWriter.write(ResponseWriter.java:202) [org.apache.felix.http.jetty:4.0.6]

at java.io.PrintWriter.write(PrintWriter.java:426)

at org.apache.sling.engine.impl.log.RequestLoggerResponse$LoggerResponseWriter.write(RequestLoggerResponse.java:457) [org.apache.sling.engine:2.6.16]

at org.apache.sling.engine.impl.SlingHttpServletResponseImpl$1.write(SlingHttpServletResponseImpl.java:375) [org.apache.sling.engine:2.6.16]

.

.

.

.

.

.

.

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) [org.apache.felix.http.jetty:4.0.6]

at java.lang.Thread.run(Thread.java:748)

Caused by: org.eclipse.jetty.io.EofException: null

at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:286) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:393) [org.apache.felix.http.jetty:4.0.6]

at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:277) [org.apache.felix.http.jetty:4.0.6]

 

at com.day.cq.wcm.core.impl.WCMDeveloperModeFilter.doFilter(WCMDeveloperModeFilter.java:135) [com.day.cq.wcm.cq-wcm-core:5.11.302]

... 164 common frames omitted

Caused by: java.io.IOException: Broken pipe

at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)

at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)

at sun.nio.ch.IOUtil.write(IOUtil.java:148)

at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:503)

at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:266) [org.apache.felix.http.jetty:4.0.6]

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

I believe 'splunk/core/components/content/fileupload' is your project specific customized fileupload widget.

 

Could you please replace 'splunk/core/components/content/fileupload' with 'cq/gui/components/authoring/dialog/fileupload' and after uploading the image just check log file whether you are getting similar exception or not.

 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

I believe 'splunk/core/components/content/fileupload' is your project specific customized fileupload widget.

 

Could you please replace 'splunk/core/components/content/fileupload' with 'cq/gui/components/authoring/dialog/fileupload' and after uploading the image just check log file whether you are getting similar exception or not.