Can not upload Images...... NoClassDefFoundError?

0
When a uploading image the Mendix 5.17.0 (on premises) server is trowing an error. It was working for a while, but now the Production trows this error, while the Acceptance environment is not. Did anybody did see this before? Both Production as Acceptance running on the same version of java: java version "1.7.0_101" OpenJDK Runtime Environment (rhel-2.6.6.1.el6_7-x86_64 u101-b00) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode) Any suggestion, on what kind of things can try to get i fixed? java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader at com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi.createReaderInstance(JPEGImageReaderSpi.java:85) at javax.imageio.spi.ImageReaderSpi.createReaderInstance(ImageReaderSpi.java:320) at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:529) at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:513) at javax.imageio.ImageIO.read(ImageIO.java:1443) at javax.imageio.ImageIO.read(ImageIO.java:1352) at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.checkImageValidity(FileDocumentProcessorImpl.java:194) at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.access$000(FileDocumentProcessorImpl.java:43) at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl$1.execute(FileDocumentProcessorImpl.java:131) at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl$1.execute(FileDocumentProcessorImpl.java:128) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.filedocumentprocessor.internal.FileDocumentProcessorImpl.storeImage(FileDocumentProcessorImpl.java:134) at com.mendix.core.component.InternalCore.storeImageDocumentContent(InternalCore.java:1710) at com.mendix.webui.requesthandling.FileRequestHandler.doUpload(FileRequestHandler.scala:164) at com.mendix.webui.requesthandling.FileRequestHandler.handleUpload(FileRequestHandler.scala:88) at com.mendix.webui.requesthandling.FileRequestHandler.handleRequest(FileRequestHandler.scala:61) at com.mendix.webui.requesthandling.FileRequestHandler.processRequest(FileRequestHandler.scala:54) at com.mendix.externalinterface.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:68) at com.mendix.externalinterface.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:66) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32) at com.mendix.externalinterface.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:71) at com.mendix.core.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:719) at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.handle(RuntimeHandler.java:41) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.server.nio.BlockingChannelConnector$BlockingChannelEndPoint.run(BlockingChannelConnector.java:298) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745)
asked
4 answers
3

Andries you want to use sun-jdk (maybe called oracle jdk nowadays) instead of open-jdk. How to install this is linux distro specific.

answered
2

What JDK version are you using in acceptance and production?

From https://world.mendix.com/display/refguide5/System+Requirements

  • Java Development Kit 7 (Mendix 5.0 up to 5.16)
  • Java Development Kit 8 (Mendix 5.16 and later)

Update: You are using Mendix 5.17 which seems to require JDK 8 judging from the requirements page. Can you try running locally on JDK7? Do you get the same error then?

Update2: If you do get the same error then, you know what the problem is and you have to upgrade the JDK on your servers. Note that JDK 7 does not receive updates anymore: https://java.com/en/download/faq/java_7.xml

answered
0

De oorzaak hebben we niet kunnen achterhalen.

Herstart van de server. Heeft het probleem (voor nu) opgelost.

answered
0

De oorzaak hebben we niet kunnen achterhalen.

Herstart van de server. Heeft het probleem (voor nu) opgelost.

answered