Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-2145

TCAgen2 exception when tca.aai.enable_enrichment is disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Frankfurt Release
    • Frankfurt Release
    • None
    • None

      Following exception is noted when tca.aai.enable_enrichment input is disabled.  TCAgen2 must be operational even if aai enrichment is disabled (in which case CL o/p will not have enrichment data)

       

      2020-03-17 20:52:44.895  INFO 1 --- [           main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json || application/json]}" onto protected java.util.Map<java.lang.String, java.util.Map<java.lang.String, org.springframework.boot.actuate.endpoint.web.Link>> org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping.links(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
      2020-03-17 20:52:47.398  INFO 1 --- [           main] f.TcaAppPropsToMrSubscriberPrefsFunction : Creating DMaaP MR Subscriber from config properties key: tca_handle_in, props: BaseConfigBindingServiceProperties.SubscriberDetails(super=BaseConfigBindingServiceProperties.PubSubCommonDetails(type=message_router, aafUsername=null, dmaapInfo=BaseConfigBindingServiceProperties.DmaapInfo(clientRole=null, clientId=null, location=null, topicUrl=http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT), proxyUrl=null, ignoreSSLValidation=null), consumerGroup=cg1, consumerIds=[c0, c1], messageLimit=50000, timeout=-1, polling=BaseConfigBindingServiceProperties.Polling(fixedRate=0, autoAdjusting=BaseConfigBindingServiceProperties.AutoAdjusting(min=30000, stepUp=10000, max=60000, stepDown=30000)))
      2020-03-17 20:52:47.497  INFO 1 --- [           main] f.TcaAppPropsToMrSubscriberPrefsFunction : Selecting Auto Adjusting polling rate for DMaaP MR Subscriber: tca_handle_in
      2020-03-17 20:52:48.797  INFO 1 --- [           main] org.mongodb.driver.connection            : Opened connection [connectionId{localValue:2, serverValue:312752}] to dcae-mongohost:27017
      2020-03-17 20:52:54.092 DEBUG 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : Customizing Rest Template for Http Client Id: tca_handle_in
      2020-03-17 20:52:54.099  WARN 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : No credentials set for Http Client Id: tca_handle_in. No username present
      2020-03-17 20:52:54.099 DEBUG 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : Proxy not Enabled - bypassing setting Proxy settings for Http Client Id: tca_handle_in
      2020-03-17 20:52:54.100  INFO 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : Ignore SSL Certificate Errors attributed is set to: false for Http Client Id: tca_handle_in
      2020-03-17 20:52:54.100  INFO 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : SSL Validation will be enforced for Http Client Id: tca_handle_in
      2020-03-17 20:52:54.199  INFO 1 --- [           main] .f.TcaAppPropsToMrPublisherPrefsFunction : Creating DMaaP MR Publisher from config properties key: tca_handle_out, props: BaseConfigBindingServiceProperties.PublisherDetails(super=BaseConfigBindingServiceProperties.PubSubCommonDetails(type=message_router, aafUsername=null, dmaapInfo=BaseConfigBindingServiceProperties.DmaapInfo(clientRole=null, clientId=null, location=null, topicUrl=http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.TCAGEN2-OUTPUT), proxyUrl=null, ignoreSSLValidation=null))
      2020-03-17 20:52:54.295 DEBUG 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : Customizing Rest Template for Http Client Id: tca_handle_out
      2020-03-17 20:52:54.295  WARN 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : No credentials set for Http Client Id: tca_handle_out. No username present
      2020-03-17 20:52:54.295 DEBUG 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : Proxy not Enabled - bypassing setting Proxy settings for Http Client Id: tca_handle_out
      2020-03-17 20:52:54.295  INFO 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : Ignore SSL Certificate Errors attributed is set to: false for Http Client Id: tca_handle_out
      2020-03-17 20:52:54.296  INFO 1 --- [           main] .d.a.w.h.HttpClientPreferencesCustomizer : SSL Validation will be enforced for Http Client Id: tca_handle_out
      2020-03-17 20:52:55.390  INFO 1 --- [           main] o.o.d.a.w.u.f.MrSubscriberURLFunction    : Created DMaaP MR Subscriber URL: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT/cg1/c0?limit=50000
      2020-03-17 20:52:55.391  INFO 1 --- [           main] o.o.d.a.w.u.f.MrSubscriberURLFunction    : Created DMaaP MR Subscriber URL: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT/cg1/c1?limit=50000
      2020-03-17 20:52:57.493  WARN 1 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tcaMrFlow' defined in org.onap.dcae.analytics.tca.web.config.TcaMrConfig: Unsatisfied dependency expressed through method 'tcaMrFlow' parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tcaProcessingService' defined in org.onap.dcae.analytics.tca.web.config.TcaWebConfig: Unsatisfied dependency expressed through method 'tcaProcessingService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tcaAaiEnrichmentContext' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'tcaAaiEnrichmentContext' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiEnrichmentService' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiEnrichmentService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiRestTemplate' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiRestTemplate' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.onap.dcae.analytics.tca.web.aai.TcaAaiRestClientPreferences' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
      2020-03-17 20:52:57.604  INFO 1 --- [           main] org.mongodb.driver.connection            : Closed connection [connectionId{localValue:2, serverValue:312752}] to dcae-mongohost:27017 because the pool has been closed.
      2020-03-17 20:52:57.790  INFO 1 --- [           main] ConditionEvaluationReportLoggingListener :Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
      2020-03-17 20:52:59.798 ERROR 1 --- [           main] o.s.boot.SpringApplication               : Application run failedorg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tcaMrFlow' defined in org.onap.dcae.analytics.tca.web.config.TcaMrConfig: Unsatisfied dependency expressed through method 'tcaMrFlow' parameter 3; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tcaProcessingService' defined in org.onap.dcae.analytics.tca.web.config.TcaWebConfig: Unsatisfied dependency expressed through method 'tcaProcessingService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tcaAaiEnrichmentContext' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'tcaAaiEnrichmentContext' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiEnrichmentService' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiEnrichmentService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiRestTemplate' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiRestTemplate' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.onap.dcae.analytics.tca.web.aai.TcaAaiRestClientPreferences' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
              at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:732)
              at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:474)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
              at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
              at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
              at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:780)
              at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412)
              at org.springframework.boot.SpringApplication.run(SpringApplication.java:333)
              at org.springframework.boot.SpringApplication.run(SpringApplication.java:1277)
              at org.springframework.boot.SpringApplication.run(SpringApplication.java:1265)
              at org.onap.dcae.analytics.tca.web.TcaAppMain.main(TcaAppMain.java:39)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
              at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
              at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
              at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
      Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tcaProcessingService' defined in org.onap.dcae.analytics.tca.web.config.TcaWebConfig: Unsatisfied dependency expressed through method 'tcaProcessingService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tcaAaiEnrichmentContext' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'tcaAaiEnrichmentContext' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiEnrichmentService' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiEnrichmentService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiRestTemplate' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiRestTemplate' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.onap.dcae.analytics.tca.web.aai.TcaAaiRestClientPreferences' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
              at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:732)
              at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:474)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
              at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
              at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1135)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)
              at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:818)
              at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:724)
              ... 27 common frames omitted
      Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'tcaAaiEnrichmentContext' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'tcaAaiEnrichmentContext' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiEnrichmentService' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiEnrichmentService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiRestTemplate' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiRestTemplate' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.onap.dcae.analytics.tca.web.aai.TcaAaiRestClientPreferences' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
              at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:732)
              at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:474)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
              at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
              at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1135)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)
              at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:818)
              at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:724)
              ... 41 common frames omitted
      Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiEnrichmentService' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiEnrichmentService' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aaiRestTemplate' defined in org.onap.dcae.analytics.tca.web.config.TcaAaiConfig: Unsatisfied dependency expressed through method 'aaiRestTemplate' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.onap.dcae.analytics.tca.web.aai.TcaAaiRestClientPreferences' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
              at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:732)
              at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:474)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
              at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
              at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1135)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)
              at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:818)
              at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:724)
              ... 55 common frames omitted
      
      

            lukai lukai
            vv770d vv770d
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: