Error when trying to publish the application

0
Hello everyone, I have an application that works correctly if I run it locally, there are no errors in the console or anything. I need to publish this app, when I do so I find two errors, one of them is "Failed to build MDA" the other an error in the console with the following " com.mendix.systemwideinterfaces.MendixRuntimeException: org.eclipse.jetty.io.EofException    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:23) Caused by: org.eclipse.jetty.io.EofException: null    at org.eclipse.jetty.server.HttpConnection$SendCallback.reset(HttpConnection.java:747)    at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:598)    at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:1046)    at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:1123)    at org.eclipse.jetty.server.HttpOutput.channelWrite(HttpOutput.java:270)    at org.eclipse.jetty.server.HttpOutput.channelWrite(HttpOutput.java:254)    at org.eclipse.jetty.server.HttpOutput.flush(HttpOutput.java:733)    at java.base/sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:437)    at java.base/sun.nio.cs.StreamEncoder.lockedClose(StreamEncoder.java:237)    at java.base/sun.nio.cs.StreamEncoder.close(StreamEncoder.java:222)    at java.base/java.io.OutputStreamWriter.close(OutputStreamWriter.java:266)    at com.mendix.util.using.Using$.using(Using.scala:8)    at com.mendix.modules.debugger.internal.DebuggerHandler.doProcessRequest(DebuggerHandler.scala:67)    at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$2(MxRuntimeConnector.scala:58)    at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$2$adapted(MxRuntimeConnector.scala:58)    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)    at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.scala:58)    at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.scala:1074)    at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.scala:40)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)    at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665)    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:1635)    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527)    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1580)    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384)    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1553)    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306)    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:563)    at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598)    at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753)    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501)    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287)    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)    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:421)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.produce(AdaptiveExecutionStrategy.java:193)    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194)    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)    at java.base/java.lang.Thread.run(Thread.java:1583) "   I have already checked and I cannot find why this happens, please I need your help, I need to publish the app as soon as possible
asked
2 answers
0

Hi Eric,

      First, Failed to build MDA" Issue usually occurs when Mendix cannot package your app into an MDA file the Possible causes for this error is Missing Dependencies, Java Compilation Errors and If you have custom Java actions, they might be failing to compile and also check Disk Space

     Second, Jetty Server error , This issue typically happens due to an issue with a long-running request timing out and broken client-server connection during data transmission.

  • Look for errors related to timeouts, dropped connections, or network issues

Common Errors:

  • org.eclipse.jetty.io.EofException → Connection unexpectedly closed
  • java.net.SocketTimeoutException → Request took too long and timed out
  • java.io.IOException: Connection reset by peer → Server closed the connection

And Increase Mendix Request Timeout in settings.

 

Hope you'll resolve this issue.

 

Regards,

Guna 

 

answered
0

You are mixing up these two. The stacktrace shown above is not the root cause but potentially a side effect caused by the failure.

 

as mentioned above already, the package/build error is probably caused by your source code.  Try the following:

 

- clean your deployment directory/package within studio pro menu

- package your app locally. This simulates a build.

- ensure any errors are fixed at this point

- now commit all changes

- deploy again

 

if above does not help, as the error message states: go to the developer portal, open your app there and find the build logs. That log should contain details why the build failed. Share that here if you need help interpreting it.

 

answered