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
2 answers
0

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