EofException occurring

0
Hi, Since adding Mendix 9.20 image to my Private Cloud operator, I’ve noticed two errors occurring repeatedly with intervals of between 5-17 seconds in my apps. One app is running 9.20.0 and the other is running 9.18.0 Can anyone help me to understand what could be causing the errors? Thanks   2022-12-20 08:40:02.422 ERROR - Connector: org.eclipse.jetty.io.EofException: null         at org.eclipse.jetty.io.SocketChannelEndPoint.flush(SocketChannelEndPoint.java:116)         at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:422)         at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:377)         at org.eclipse.jetty.io.SelectableChannelEndPoint$2.run(SelectableChannelEndPoint.java:67)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:375)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:139)         at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:933)         at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1077)         at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.io.IOException: Connection reset by peer         at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native Method)         at java.base/sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)         at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:182)         at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:130)         at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:493)         at java.base/java.nio.channels.SocketChannel.write(SocketChannel.java:507)         at org.eclipse.jetty.io.SocketChannelEndPoint.flush(SocketChannelEndPoint.java:110)         at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:422)         at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:377)         at org.eclipse.jetty.io.SelectableChannelEndPoint$2.run(SelectableChannelEndPoint.java:67)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:375)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:139)         at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:933)         at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1077)         at java.base/java.lang.Thread.run(Thread.java:829)     2022-12-20 08:41:12.417 ERROR - Connector: org.eclipse.jetty.io.EofException: null         at org.eclipse.jetty.io.SocketChannelEndPoint.flush(SocketChannelEndPoint.java:116)         at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:422)         at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:377)         at org.eclipse.jetty.io.SelectableChannelEndPoint$2.run(SelectableChannelEndPoint.java:67)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:375)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:139)         at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:933)         at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1077)         at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.io.IOException: Broken pipe         at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native Method)         at java.base/sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)         at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:182)         at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:130)         at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:493)         at java.base/java.nio.channels.SocketChannel.write(SocketChannel.java:507)         at org.eclipse.jetty.io.SocketChannelEndPoint.flush(SocketChannelEndPoint.java:110)         at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:422)         at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:377)         at org.eclipse.jetty.io.SelectableChannelEndPoint$2.run(SelectableChannelEndPoint.java:67)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:375)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277)         at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:139)         at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:933)         at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1077)         at java.base/java.lang.Thread.run(Thread.java:829)
asked
3 answers
1

While reading from the file, your are not terminating your loop. So its read all the values and correctly throws EOFException on the next iteration.

 

use 

catch(EOFException e) {
//This isn't problem
}

 

 

answered
0

This can sometimes occur if data refreshes or you navigate away from a page before it’s completed rendering in the browser. 

Does your page refresh periodically, or are there any microflows or nanoflows that refresh data?

answered
0

I know it's an older question, but I had the same issue and managed to reproduce. If the microflow takes 'long' (for example a couple of seconds) and the client closed its browser in the meantime, this "org.eclipse.jetty.io.EofException" may occur. It may take a while before it's in the console log, I think that's because it remains until the session is cleaned.

So, most of the times: being able to reproduce is half of the work of fixing, but I don't think this is fixable, only reduce it by making your microflows run quicker.

You can easily reproduce it by running such a microflow and than close your browser. Then click rerun or stop, such that the session is cleaned up.

image.png

answered