Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi upload not always working #58

Open
PaulCiphix opened this issue Jan 5, 2024 · 0 comments
Open

Multi upload not always working #58

PaulCiphix opened this issue Jan 5, 2024 · 0 comments

Comments

@PaulCiphix
Copy link

Hi there,
We are using the filedropper widget in our Mendix project and get reports from users that are experiencing errors. The error seems to occur when we try to upload multiple files at ones. In our case specifically these are images. The error log is provided below.
We are using Mendix 9.14.1 but see in other projects that this also occurs in newer versions.

Error log:
`org.eclipse.jetty.io.RuntimeIOException: Unable to extract content parameters
at org.eclipse.jetty.server.Request.extractContentParameters(Request.java:559)
at org.eclipse.jetty.server.Request.getParameters(Request.java:460)
at org.eclipse.jetty.server.Request.getParameter(Request.java:1046)
at com.mendix.m2ee.appcontainer.server.request.HttpMxRuntimeRequest.getParameter(HttpMxRuntimeRequest.scala:24)
at com.mendix.webui.requesthandling.FileUploadHelper.readFilePartsFromRequest(FileUploadHelper.scala:163)
at com.mendix.webui.requesthandling.FileUploadHelper.checkFileForUpload(FileUploadHelper.scala:95)
at com.mendix.webui.requesthandling.FileUploadHelper.doUpload(FileUploadHelper.scala:123)
at com.mendix.webui.requesthandling.FileUploadHelper.handleUpload(FileUploadHelper.scala:43)
at com.mendix.webui.requesthandling.FileRequestHandler.handleRequest(FileRequestHandler.scala:45)
at com.mendix.webui.requesthandling.FileRequestHandler.processRequest(FileRequestHandler.scala:33)
at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:37)
at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1(MxRuntimeConnector.scala:50)
at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1$adapted(MxRuntimeConnector.scala:50)
at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)
at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.scala:50)
at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.scala:232)
at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.scala:32)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1630)
at org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:170)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1600)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:506)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1571)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1378)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1544)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1300)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
at org.eclipse.jetty.server.Server.handle(Server.java:562)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:381)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:268)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:138)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:407)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)
at java.base/java.lang.Thread.run(Unknown Source)

Caused by: org.eclipse.jetty.io.EofException: Early EOF
at org.eclipse.jetty.server.HttpChannelOverHttp.markEarlyEOF(HttpChannelOverHttp.java:286)
at org.eclipse.jetty.server.HttpChannelOverHttp.earlyEOF(HttpChannelOverHttp.java:265)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1605)
at org.eclipse.jetty.server.HttpConnection.parseRequestBuffer(HttpConnection.java:398)
at org.eclipse.jetty.server.HttpConnection.parseAndFillForContent(HttpConnection.java:343)
at org.eclipse.jetty.server.HttpChannelOverHttp.parseAndFillForContent(HttpChannelOverHttp.java:128)
at org.eclipse.jetty.server.HttpChannelOverHttp.produceContent(HttpChannelOverHttp.java:114)
at org.eclipse.jetty.server.AsyncContentProducer.produceRawContent(AsyncContentProducer.java:494)
at org.eclipse.jetty.server.AsyncContentProducer.nextTransformedContent(AsyncContentProducer.java:362)
at org.eclipse.jetty.server.AsyncContentProducer.isReady(AsyncContentProducer.java:282)
at org.eclipse.jetty.server.BlockingContentProducer.nextContent(BlockingContentProducer.java:111)
at org.eclipse.jetty.server.HttpInput.read(HttpInput.java:287)
at org.eclipse.jetty.server.HttpInput.read(HttpInput.java:272)
at java.base/java.io.BufferedInputStream.read1(Unknown Source)
at java.base/java.io.BufferedInputStream.read(Unknown Source)
at java.base/java.io.FilterInputStream.read(Unknown Source)
at org.eclipse.jetty.server.MultiPartFormInputStream.parse(MultiPartFormInputStream.java:569)
at org.eclipse.jetty.server.MultiPartFormInputStream.getParts(MultiPartFormInputStream.java:463)
at org.eclipse.jetty.server.Request.getParts(Request.java:2297)
at org.eclipse.jetty.server.Request.extractContentParameters(Request.java:552)
at org.eclipse.jetty.server.Request.getParameters(Request.java:460)
at org.eclipse.jetty.server.Request.getParameter(Request.java:1046)
at com.mendix.m2ee.appcontainer.server.request.HttpMxRuntimeRequest.getParameter(HttpMxRuntimeRequest.scala:24)
at com.mendix.webui.requesthandling.FileUploadHelper.readFilePartsFromRequest(FileUploadHelper.scala:163)
at com.mendix.webui.requesthandling.FileUploadHelper.checkFileForUpload(FileUploadHelper.scala:95)
at com.mendix.webui.requesthandling.FileUploadHelper.doUpload(FileUploadHelper.scala:123)
at com.mendix.webui.requesthandling.FileUploadHelper.handleUpload(FileUploadHelper.scala:43)
at com.mendix.webui.requesthandling.FileRequestHandler.handleRequest(FileRequestHandler.scala:45)
at com.mendix.webui.requesthandling.FileRequestHandler.processRequest(FileRequestHandler.scala:33)
at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:37)
at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1(MxRuntimeConnector.scala:50)
at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1$adapted(MxRuntimeConnector.scala:50)
at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)
at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.scala:50)
at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.scala:232)
at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.scala:32)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1630)
at org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:170)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1600)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:506)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1571)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1378)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1544)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1300)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
at org.eclipse.jetty.server.Server.handle(Server.java:562)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:505)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:762)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:497)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:381)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:268)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:138)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:407)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)
at java.base/java.lang.Thread.run(Unknown Source)
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant