Announcement

Collapse
No announcement yet.

Http Listner error > javax/activation/DataSource

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Http Listner error > javax/activation/DataSource

    I encounter a problem while creating the Channel "Source" defined as "HTTP Listener". On channel deploy I got the message "ERROR (com.mirth.connect.server.channel.ErrorTaskHandler :25): java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: javax/activation/DataSource"
    I tried my solution to resolve this issue, like adding the java9+vmoptions in the service.vmoptions file, downgrade the java version from 11 to 8 but this didn't work for me.

    Hope anyone can help me on this...

  • #2
    Do you have a more complete stacktrace for that error? What does your vmoptions file look like, and are you using mcserver or mcservice?
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


    - How do I foo?
    - You just bar.

    Comment


    • #3
      See complete stack trace below. I am using the mcserver and the vmoption file have the following options
      -server
      -Xmx256m
      -Djava.awt.headless=true
      -Dapple.awt.UIElement=true


      StackTrace of Error:
      [2019-04-11 01:14:50,839] 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(FutureTask. java:122)

      at java.base/java.util.concurrent.FutureTask.get(FutureTask.jav a:191)

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

      at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.waitForTasks(DonkeyEngineController.java :1724)

      at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.deployChannels(DonkeyEngineController.ja va:397)

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

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

      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invo ke(NativeMethodAccessorImpl.java:62)

      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl. invoke(DelegatingMethodAccessorImpl.java:43)

      at java.base/java.lang.reflect.Method.invoke(Method.java:566)

      at com.mirth.connect.server.api.providers.MirthResour ceInvocationHandlerProvider$1.invoke(MirthResource InvocationHandlerProvider.java:219)

      at org.glassfish.jersey.server.model.internal.Abstrac tJavaResourceMethodDispatcher$1.run(AbstractJavaRe sourceMethodDispatcher.java:144)

      at org.glassfish.jersey.server.model.internal.Abstrac tJavaResourceMethodDispatcher.invoke(AbstractJavaR esourceMethodDispatcher.java:161)

      at org.glassfish.jersey.server.model.internal.JavaRes ourceMethodDispatcherProvider$VoidOutInvoker.doDis patch(JavaResourceMethodDispatcherProvider.java:14 3)

      at org.glassfish.jersey.server.model.internal.Abstrac tJavaResourceMethodDispatcher.dispatch(AbstractJav aResourceMethodDispatcher.java:99)

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

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

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

      at org.glassfish.jersey.server.ServerRuntime$2.run(Se rverRuntime.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(Error s.java:315)

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

      at org.glassfish.jersey.internal.Errors.process(Error s.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.han dle(ApplicationHandler.java:1154)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      at org.eclipse.jetty.io.FillInterest.fillable(FillInt erest.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(FillInt erest.java:102)

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

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

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

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

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

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

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

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

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

      at java.base/java.lang.Class.forName(Class.java:315)

      at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.createSourceConnector(DonkeyEngineContro ller.java:1311)

      at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.createChannelFromModel(DonkeyEngineContr oller.java:1117)

      at com.mirth.connect.server.controllers.DonkeyEngineC ontroller$DeployTask.doDeploy(DonkeyEngineControll er.java:1771)

      at com.mirth.connect.server.controllers.DonkeyEngineC ontroller$DeployTask.execute(DonkeyEngineControlle r.java:1755)

      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(FutureTask.jav a:264)

      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1128)

      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)

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

      at java.base/java.net.URLClassLoader.findClass(URLClassLoader.j ava:471)

      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:5 88)

      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:5 21)

      ... 12 more

      Comment


      • #4
        You haven't added the java9+ options to your vmoptions file. That is required when using Java 9 or greater.
        Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

        Nicholas Rupley
        Work: 949-237-6069
        Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


        - How do I foo?
        - You just bar.

        Comment


        • #5
          I did add the vmoptions before but that not worked.

          Issue has been resolved by reinstalling the Java on my system.

          Thank You for the help

          Comment

          Working...
          X