web stats
NoClassDefFoundError exception when deploying channel with HTTP listener - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2018, 06:34 PM
Geekn Geekn is offline
Mirth Newb
 
Join Date: May 2018
Posts: 25
Geekn is on a distinguished road
Default NoClassDefFoundError exception when deploying channel with HTTP listener

When deploying a channel with an HTTP listener source, the exception below occurs in the server log. I've attached the channel configuration.

I have a different environment where everything works and see a difference between the two.

Working environment indicates the Java Version of the server is 1.8.0_161

Non-working environment indicates the Java Version of the server is 9.0.4


UPDATE: this issues was due to not adding the additional options to the mcserver configuration as stated in the installation instructions when using Java 9 or greater.



Code:
[2018-07-11 08:29:04,841]  ERROR  (com.mirth.connect.server.channel.ErrorTaskHandler:25): java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/activation/DataSource

	at java.base/java.util.concurrent.FutureTask.report(Unknown Source)

	at java.base/java.util.concurrent.FutureTask.get(Unknown Source)

	at com.mirth.connect.server.channel.ChannelFuture.get(ChannelFuture.java:34)

	at com.mirth.connect.server.controllers.DonkeyEngineController.waitForTasks(DonkeyEngineController.java:1712)

	at com.mirth.connect.server.controllers.DonkeyEngineController.deployChannels(DonkeyEngineController.java:396)

	at com.mirth.connect.server.api.servlets.EngineServlet.deployChannels(EngineServlet.java:68)

	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

	at java.base/java.lang.reflect.Method.invoke(Unknown Source)

	at com.mirth.connect.server.api.providers.MirthResourceInvocationHandlerProvider$1.invoke(MirthResourceInvocationHandlerProvider.java:219)

	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)

	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)

	at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:143)

	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)

	at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)

	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)

	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)

	at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)

	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)

	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)

	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)

	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)

	at org.glassfish.jersey.internal.Errors.process(Errors.java:267)

	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)

	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)

	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)

	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:471)

	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:425)

	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:383)

	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:336)

	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:223)

	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:864)

	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)

	at com.mirth.connect.server.MethodFilter.doFilter(MethodFilter.java:37)

	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)

	at com.mirth.connect.server.api.providers.ClickjackingFilter.doFilter(ClickjackingFilter.java:44)

	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)

	at com.mirth.connect.server.api.providers.ApiOriginFilter.doFilter(ApiOriginFilter.java:71)

	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)

	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)

	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)

	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)

	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)

	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)

	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)

	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)

	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)

	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)

	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)

	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)

	at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:61)

	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)

	at org.eclipse.jetty.server.Server.handle(Server.java:531)

	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)

	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)

	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)

	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)

	at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291)

	at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151)

	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)

	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)

	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:319)

	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:175)

	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:133)

	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)

	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:754)

	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:672)

	at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: javax/activation/DataSource

	at java.base/java.lang.Class.forName0(Native Method)

	at java.base/java.lang.Class.forName(Unknown Source)

	at com.mirth.connect.server.controllers.DonkeyEngineController.createSourceConnector(DonkeyEngineController.java:1299)

	at com.mirth.connect.server.controllers.DonkeyEngineController.createChannelFromModel(DonkeyEngineController.java:1105)

	at com.mirth.connect.server.controllers.DonkeyEngineController$DeployTask.doDeploy(DonkeyEngineController.java:1759)

	at com.mirth.connect.server.controllers.DonkeyEngineController$DeployTask.execute(DonkeyEngineController.java:1743)

	at com.mirth.connect.server.channel.ChannelTask.call(ChannelTask.java:67)

	at com.mirth.connect.server.channel.ChannelTask.call(ChannelTask.java:16)

	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

	... 1 more
Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource

	at java.base/java.net.URLClassLoader.findClass(Unknown Source)

	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)

	... 12 more
Attached Files
File Type: xml HTTP Listener.xml (21.0 KB, 1 views)

Last edited by Geekn; 07-12-2018 at 07:04 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:37 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Mirth Corporation