Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-3454

PDP-D CL APPS: swagger mismatched libraries cause telemetry shell to fail

XMLWordPrintable

    • Policy 23/6 - 7/7

       

      It is my impression that the latest CDS library dependencies caused some transitive dependencies to change underneath, as a consequence there are some issues accessing the telemetry API swagger spec.    This issue exist in the drools applications image but does not seem to exist in the drools-pdp image.

      ... 40 common frames omitted ... 40 common frames omittedCaused by: java.lang.NoSuchMethodError: 'void io.swagger.models.properties.RefProperty.<init>(java.lang.String, io.swagger.models.refs.RefFormat)' at io.swagger.jackson.ModelResolver.resolveProperty(ModelResolver.java:184) at io.swagger.jackson.ModelResolver.resolveProperty(ModelResolver.java:126) at io.swagger.converter.ModelConverterContextImpl.resolveProperty(ModelConverterContextImpl.java:83) at io.swagger.converter.ModelConverters.readAsProperty(ModelConverters.java:63) at io.swagger.jaxrs.Reader.parseMethod(Reader.java:865) at io.swagger.jaxrs.Reader.read(Reader.java:326) at io.swagger.jaxrs.Reader.read(Reader.java:176) at io.swagger.jaxrs.listing.BaseApiListingResource.scan(BaseApiListingResource.java:63) at io.swagger.jaxrs.listing.BaseApiListingResource.process(BaseApiListingResource.java:108) at io.swagger.jaxrs.listing.BaseApiListingResource.getListingJsonResponse(BaseApiListingResource.java:155) at io.swagger.jaxrs.listing.ApiListingResource.getListing(ApiListingResource.java:32) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(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 org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167) at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176) at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79) at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:475) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:397) at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81) at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255) ... 49 common frames omitted

       

      /opt/app/policy/config $ http '--verify=no' --auth 'demo@people.osaaf.org:demo123456!' https://localhost:9696/swagger.json
      HTTP/1.1 500 Server Error
      Cache-Control: must-revalidate,no-cache,no-store
      Connection: close
      Content-Length: 521
      Content-Type: text/html;charset=iso-8859-1
      Server: Jetty(9.4.33.v20201020)

      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
      <title>Error 500 Request failed.</title>
      </head>
      <body><h2>HTTP ERROR 500 Request failed.</h2>
      <table>
      <tr><th>URI:</th><td>/swagger.json</td></tr>
      <tr><th>STATUS:</th><td>500</td></tr>
      <tr><th>MESSAGE:</th><td>Request failed.</td></tr>
      <tr><th>SERVLET:</th><td>org.glassfish.jersey.servlet.ServletContainer-12bcd0c0</td></tr>
      </table>
      <hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.33.v20201020</a><hr/>

      </body>
      </html>

            jhh jhh
            jhh jhh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: