Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-2295

aai-validation (Dublin) introduces to Pomba run-time dependency on schema-service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Dublin Release
    • Dublin Release

      Tried to upgrade Pomba's use of the aa-validation service from Casablanca to latest Dublin version, but ran into the following issue:

      2019-03-27T18:08:58.446Z||main|AAI-VS||||WARN|org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext||Exception encountered during context initializa
      tion - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'nodesConfiguration': Unsatisfied dependency expres
      sed through field 'translatorConfiguration'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'translatorConfigurat
      ion': Unsatisfied dependency expressed through field 'configTranslator'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean wit
      h name 'configTranslator' defined in class path resource [validation-service-beans.xml]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.spr
      ingframework.beans.factory.BeanCreationException: Error creating bean with name 'schemaVersions' defined in org.onap.aai.config.SchemaServiceConfiguration: Bean instantiation via fac
      tory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.onap.aai.setup.SchemaVersions]: Factory method 'schemaVersion
      s' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schemaVersionsBean': Invocation of init method failed;
      nested exception is org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://localhost:8452/aai/schema-service/v1/versions": Connect to localhos
      t:8452 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused); nested exception is org.apache.http.conn.HttpHostConnectException: Connect to
      localhost:8452 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

      >>> GET request for "https://localhost:8452/aai/schema-service/v1/versions"

      It appears that the aai-validation code assumes a run-time dependency on the aai-schema-service and the OXM model.

      This wasn't the case in Casablanca.

      Pomba shouldn't have to introduce a dependency on the aai-schema-service and/or OXM model to use the validation framework.

       

       

       

       

       

       

       

            ntraxler ntraxler
            ntraxler ntraxler
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: