Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-682

Resolve issues with not working ClassPath util class from Guava lib

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      CP: ready for planning, eHoldings Sprint 94
    • Story Points:
      3
    • Development Team:
      Spitfire

      Description

      ClassPath utility from Guava library used by RMB stops working under JDK 11: returns empty set of classes/interface for a given package although the classes are present. This results in errors during API endpoint classes generation and request processing by RestVerticle.

      Observable issues with unit tests caused by the above problem

      domain-models-interface-extensions:
      • ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.178 s <<< FAILURE! - in org.folio.rest.tools.AnnotationGrabberTest
        [ERROR] org.folio.rest.tools.AnnotationGrabberTest.generateMappings Time elapsed: 0.156 s <<< ERROR!
        java.lang.NullPointerException
        at org.folio.rest.tools.AnnotationGrabberTest.generateMappings(AnnotationGrabberTest.java:21)
      • [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.149 s <<< FAILURE! - in org.folio.rest.tools.ClientGeneratorTest
        [ERROR] org.folio.rest.tools.ClientGeneratorTest.doesGenerateTestResourceClient Time elapsed: 0.146 s <<< FAILURE!
        java.lang.AssertionError
        at org.folio.rest.tools.ClientGeneratorTest.doesGenerateTestResourceClient(ClientGeneratorTest.java:46)
      domain-models-runtime:

      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------

      • [ERROR] /home/runner/work/raml-module-builder/raml-module-builder/domain-models-runtime/src/test/java/org/folio/DemoRamlRestTest.java:[15,29] cannot find symbol
        symbol: class AdminClient
        location: package org.folio.rest.client
      • [ERROR] /home/runner/work/raml-module-builder/raml-module-builder/domain-models-runtime/src/test/java/org/folio/rest/Test.java:[3,29] cannot find symbol
        symbol: class AdminClient
        location: package org.folio.rest.client
      • SEVERE: Implementation of org.folio.rest.jaxrs.resource.Admin not found in org.folio.rest.impl
        --------------xxxxxx-1------------------ Unable to process requestImplementation of org.folio.rest.jaxrs.resource.Rmbtests not found in org.folio.rest.impl
        java.lang.ClassNotFoundException: Implementation of org.folio.rest.jaxrs.resource.Admin not found in org.folio.rest.impl
        at org.folio.rest.tools.utils.InterfaceToImpl.convert2Impl(InterfaceToImpl.java:94)
        at org.folio.rest.RestVerticle.route(RestVerticle.java:435)
        at org.folio.rest.RestVerticle.lambda$1(RestVerticle.java:289)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1034)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:131)
        at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:133)
        at io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.doEnd(BodyHandlerImpl.java:296)
      • SEVERE: Implementation of org.folio.rest.jaxrs.resource.Rmbtests not found in org.folio.rest.impl
        java.lang.ClassNotFoundException: Implementation of org.folio.rest.jaxrs.resource.Rmbtests not found in org.folio.rest.impl
        at org.folio.rest.tools.utils.InterfaceToImpl.convert2Impl(InterfaceToImpl.java:94)
        at org.folio.rest.RestVerticle.route(RestVerticle.java:435)
        at org.folio.rest.RestVerticle.lambda$1(RestVerticle.java:289)
        at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1034)
        at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:131)
        at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:133)
        at io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.doEnd(BodyHandlerImpl.java:296)
        at io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.end(BodyHandlerImpl.java:276)
        at io.vertx.ext.web.handler.impl.BodyHandlerImpl.lambda$handle$0(BodyHandlerImpl.java:87)

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dmtkachenko Dmytro Tkachenko
                Reporter:
                dmtkachenko Dmytro Tkachenko
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases