web stats
swagger.yaml? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-10-2019, 10:21 PM
flcdrg flcdrg is offline
What's HL7?
 
Join Date: Nov 2015
Posts: 3
flcdrg is on a distinguished road
Question swagger.yaml?

I can see in the source code (server\src\com\mirth\connect\server\MirthWebServe r.java) that as well as swagger.json there appears to be support for requesting swagger.yaml.

But when I do request /api/swagger.yaml, I get an error:

Code:
<java.lang.NoClassDefFoundError>
  <detailMessage>org/yaml/snakeyaml/events/Event</detailMessage>
  <cause class="java.lang.ClassNotFoundException">
    <detailMessage>org.yaml.snakeyaml.events.Event</detailMessage>
    <stackTrace>
      <trace>java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:436)</trace>
      <trace>java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)</trace>
      <trace>java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)</trace>
      <trace>com.fasterxml.jackson.dataformat.yaml.YAMLFactory._createGenerator(YAMLFactory.java:447)</trace>
      <trace>com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createGenerator(YAMLFactory.java:397)</trace>
      <trace>com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createGenerator(YAMLFactory.java:14)</trace>
      <trace>com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3207)</trace>
      <trace>io.swagger.jaxrs.listing.ApiListingResource.getListingYaml(ApiListingResource.java:150)</trace>
      <trace>io.swagger.jaxrs.listing.ApiListingResource.getListing(ApiListingResource.java:114)</trace>
      <trace>java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</trace>
      <trace>java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)</trace>
      <trace>java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</trace>
      <trace>java.base/java.lang.reflect.Method.invoke(Method.java:567)</trace>
      <trace>com.mirth.connect.server.api.providers.MirthResourceInvocationHandlerProvider$1.invoke(MirthResourceInvocationHandlerProvider.java:219)</trace>
      <trace>org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)</trace>
      <trace>org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)</trace>
      <trace>org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)</trace>
      <trace>org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)</trace>
      <trace>org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)</trace>
      <trace>org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)</trace>
      <trace>org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)</trace>
      <trace>org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)</trace>
      <trace>org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)</trace>
      <trace>org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)</trace>
      <trace>org.glassfish.jersey.internal.Errors.process(Errors.java:315)</trace>
      <trace>org.glassfish.jersey.internal.Errors.process(Errors.java:297)</trace>
      <trace>org.glassfish.jersey.internal.Errors.process(Errors.java:267)</trace>
      <trace>org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)</trace>
      <trace>org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)</trace>
      <trace>org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)</trace>
      <trace>org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:471)</trace>
      <trace>org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:425)</trace>
      <trace>org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:383)</trace>
      <trace>org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:336)</trace>
      <trace>org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:223)</trace>
      <trace>org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:864)</trace>
      <trace>org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)</trace>
      <trace>com.mirth.connect.server.MethodFilter.doFilter(MethodFilter.java:37)</trace>
      <trace>org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)</trace>
      <trace>com.mirth.connect.server.api.providers.ClickjackingFilter.doFilter(ClickjackingFilter.java:44)</trace>
      <trace>org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)</trace>
      <trace>com.mirth.connect.server.api.providers.ApiOriginFilter.doFilter(ApiOriginFilter.java:71)</trace>
      <trace>org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)</trace>
      <trace>org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)</trace>
      <trace>org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)</trace>
      <trace>org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)</trace>
      <trace>org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)</trace>
      <trace>org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)</trace>
      <trace>org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)</trace>
      <trace>org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)</trace>
      <trace>org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)</trace>
      <trace>org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)</trace>
      <trace>org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)</trace>
      <trace>org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)</trace>
      <trace>org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:61)</trace>
      <trace>org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)</trace>
      <trace>org.eclipse.jetty.server.Server.handle(Server.java:531)</trace>
      <trace>org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)</trace>
      <trace>org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)</trace>
      <trace>org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)</trace>
      <trace>org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)</trace>
      <trace>org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291)</trace>
      <trace>org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151)</trace>
      <trace>org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)</trace>
      <trace>org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)</trace>
      <trace>org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:754)</trace>
      <trace>org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:672)</trace>
      <trace>java.base/java.lang.Thread.run(Thread.java:830)</trace>
    </stackTrace>
    <suppressedExceptions class="empty-list"/>
  </cause>
  <stackTrace>
    <trace>com.fasterxml.jackson.dataformat.yaml.YAMLFactory._createGenerator(YAMLFactory.java:447)</trace>
    <trace>com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createGenerator(YAMLFactory.java:397)</trace>
    <trace>com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createGenerator(YAMLFactory.java:14)</trace>
    <trace>com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:3207)</trace>
    <trace>io.swagger.jaxrs.listing.ApiListingResource.getListingYaml(ApiListingResource.java:150)</trace>
    <trace>io.swagger.jaxrs.listing.ApiListingResource.getListing(ApiListingResource.java:114)</trace>
    <trace>java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</trace>
    <trace>java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)</trace>
    <trace>java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</trace>
    <trace>java.base/java.lang.reflect.Method.invoke(Method.java:567)</trace>
Should this work, or is it not supported yet?

David
Reply With Quote
Reply

Tags
swagger, yaml

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 08:58 PM.


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