Exception occurred while serializing OData response/exception

1
Hi everyone,   I got an application with an OData service. The app is in Mendix 9.12.4 and the OData seems to work fine, we get all our information nicely in our PowerBI environment. However I do have a lot of occurences of 2 errors in my logging, namely:   Exception occurred while serializing OData response. &  Exception occurred while serializing OData exception.   Stack traces are: org.eclipse.jetty.io.EofException at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:279) at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:422) at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:277) at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:381) at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:831) at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:223) at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:555) at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:1014) at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:1086) at org.eclipse.jetty.server.HttpOutput.channelWrite(HttpOutput.java:285) at org.eclipse.jetty.server.HttpOutput.channelWrite(HttpOutput.java:269) at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:873) at java.base/sun.nio.cs.StreamEncoder.writeBytes(Unknown Source) at java.base/sun.nio.cs.StreamEncoder.implWrite(Unknown Source) at java.base/sun.nio.cs.StreamEncoder.implWrite(Unknown Source) at java.base/sun.nio.cs.StreamEncoder.write(Unknown Source) at java.base/sun.nio.cs.StreamEncoder.write(Unknown Source) at java.base/java.io.OutputStreamWriter.write(Unknown Source) at java.base/java.io.Writer.write(Unknown Source) at com.mendix.integration.rest.odata.serialization.AtomXmlSerialization.$anonfun$write$4(AtomXmlSerialization.scala:58) at com.mendix.integration.rest.odata.serialization.AtomXmlSerialization.$anonfun$write$4$adapted(AtomXmlSerialization.scala:58) at akka.stream.impl.fusing.Map$$anon$1.onPush(Ops.scala:52) at akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:542) at akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:423) at akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:650) at akka.stream.impl.fusing.GraphInterpreterShell$ResumeShell.execute(ActorGraphInterpreter.scala:535) at akka.stream.impl.fusing.GraphInterpreterShell.processEvent(ActorGraphInterpreter.scala:625) at akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:800) at akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:818) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:716) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:580) at akka.actor.ActorCell.invoke(ActorCell.scala:548) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270) at akka.dispatch.Mailbox.run(Mailbox.scala:231) at akka.dispatch.Mailbox.exec(Mailbox.scala:243) at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) 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(Unknown Source) at java.base/sun.nio.ch.IOUtil.write(Unknown Source) at java.base/sun.nio.ch.IOUtil.write(Unknown Source) at java.base/sun.nio.ch.SocketChannelImpl.write(Unknown Source) at java.base/java.nio.channels.SocketChannel.write(Unknown Source) at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:273) ... 42 more   and   com.ctc.wstx.exc.WstxIOException: Closed at com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1473) at com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:550) at com.mendix.integration.xml.XMLStreamWriterWrapper.$anonfun$writeEndDocument$1(XMLStreamWriterWrapper.scala:97) at com.mendix.integration.xml.XMLStreamWriterWrapper.$anonfun$writeEndDocument$1$adapted(XMLStreamWriterWrapper.scala:97) at scala.collection.immutable.Vector.foreach(Vector.scala:1856) at com.mendix.integration.xml.XMLStreamWriterWrapper.writeEndDocument(XMLStreamWriterWrapper.scala:97) at com.mendix.integration.rest.odata.serialization.AtomXmlErrorRepresentation$.apply(AtomXmlErrorRepresentation.scala:36) at com.mendix.integration.rest.odata.representation.FeedSerialization.generate(FeedSerialization.scala:51) at com.mendix.integration.rest.query.DataQueryHandler.$anonfun$handleDataQuery$7(DataQueryHandler.scala:91) at com.mendix.integration.rest.query.DataQueryHandler.$anonfun$handleDataQuery$7$adapted(DataQueryHandler.scala:84) at com.mendix.integration.rest.MxRuntimeResponseUtil$RichIMxRuntimeResponse$.log$extension(MxRuntimeResponseUtil.scala:34) at com.mendix.integration.rest.query.DataQueryHandler.$anonfun$handleDataQuery$6(DataQueryHandler.scala:84) at com.mendix.integration.rest.query.DataQueryHandler.$anonfun$handleDataQuery$6$adapted(DataQueryHandler.scala:75) at com.mendix.integration.rest.query.DataQueryHandler.$anonfun$handleDataQuery$4(DataQueryHandler.scala:71) at com.mendix.integration.rest.query.DatabaseResolver.$anonfun$queryWithStream$2(DatabaseResolver.scala:49) at scala.util.Using$.resource(Using.scala:261) at com.mendix.datastorage.impl.QueryBuilder.withStream(QueryBuilder.scala:35) at com.mendix.integration.rest.query.DatabaseResolver.$anonfun$queryWithStream$1(DatabaseResolver.scala:46) at com.mendix.integration.rest.query.DataQueryHandler.$anonfun$handleDataQuery$1(DataQueryHandler.scala:70) at com.mendix.integration.rest.query.DataQueryHandler.handleDataQuery(DataQueryHandler.scala:75) at com.mendix.integration.rest.query.DataQueryHandler.handle(DataQueryHandler.scala:49) at com.mendix.integration.rest.odata.ODataModule.$anonfun$handleRequest$2(ODataModule.scala:90) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18) at scala.util.Try$.apply(Try.scala:210) at com.mendix.integration.rest.odata.ODataModule.$anonfun$handleRequest$1(ODataModule.scala:90) at com.mendix.basis.actionmanagement.ActionMonitoring$.$anonfun$monitor$1(ActionMonitoring.scala:49) at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) at com.mendix.basis.actionmanagement.ActionMonitoring$.monitor(ActionMonitoring.scala:49) at com.mendix.integration.rest.odata.ODataModule.handleRequest(ODataModule.scala:90) at com.mendix.integration.rest.odata.ODataModule.$anonfun$handleRestQuery$2(ODataModule.scala:77) at scala.util.Success.flatMap(Try.scala:258) at com.mendix.integration.rest.odata.ODataModule.handleRestQuery(ODataModule.scala:70) at com.mendix.integration.rest.odata.ODataModule.$anonfun$handle$5(ODataModule.scala:52) at scala.util.Using$.resource(Using.scala:261) at com.mendix.integration.rest.odata.ODataModule.$anonfun$handle$4(ODataModule.scala:49) at scala.util.Success.flatMap(Try.scala:258) at com.mendix.integration.rest.odata.ODataModule.$anonfun$handle$3(ODataModule.scala:48) at scala.util.Success.flatMap(Try.scala:258) at com.mendix.integration.rest.odata.ODataModule.$anonfun$handle$1(ODataModule.scala:47) at scala.util.Success.flatMap(Try.scala:258) at com.mendix.integration.rest.odata.ODataModule.handle(ODataModule.scala:46) at com.mendix.integration.requesthandlers.ServiceRequestHandler.processRequest(ServiceRequestHandler.scala:21) 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:221) at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.scala:25) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1631) at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:230) at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) at java.base/java.lang.Thread.run(Unknown Source) Caused by: org.eclipse.jetty.io.EofException: Closed at org.eclipse.jetty.server.HttpOutput.checkWritable(HttpOutput.java:771) at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:795) at java.base/sun.nio.cs.StreamEncoder.writeBytes(Unknown Source) at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source) at java.base/sun.nio.cs.StreamEncoder.implFlush(Unknown Source) at java.base/sun.nio.cs.StreamEncoder.flush(Unknown Source) at java.base/java.io.OutputStreamWriter.flush(Unknown Source) at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:242) at com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:215) at com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1471) ... 82 more   Any idea what causes this? And whether it is something that needs to be solved?  
asked
1 answers
1

The most likely cause is your client (Power Query, probably) terminated the connection on its side, as evidenced by

java.io.IOException: Broken pipe at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native

 

That’s something you cannot “fix” on the server application side.

answered