-
Bug
-
Resolution: Done
-
Medium
-
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.
- blocks
-
LOG-1029 Upgrade Pomba-validation to latest Dublin aai-validation
- Closed
- relates to
-
AAI-1859 Schema Abstraction
- Closed
-
AAI-2077 [Validation] use latest aai-schema
- Closed
-
AAI-2298 AAI Validation Rules with dependency injection of schema ingestion library
- Closed
-
AAI-2329 Microservices depending on Schema Service should fail to start when all schema is not loaded
- Closed