#clamp #drools #controlloop #dublin CLAMP Submit generate error in drools #clamp #drools #dublin #controlloop


olaf.burdziakowski@...
 

Submit from CLAMP generate error in drols pod - configuration is not stored.
Is it known issue? How to solve that?

Logs from drools pod: (dev-policy-drools-0)

[2019-08-23T13:49:41.144+00:00|INFO|controlloop|Session org.onap.policy.drools-applications.controlloop.common:controller-usecases:1.4.2:usecases] NEW.TOSCA.POLICY: [onap.policies.controlloop.Operational|1.0.0|OPERATIONAL_Olaf01Service_v1_0_Olaf01SoftwareProduct0_dublin_blueprint0|1.0.0]: CONTENT: ToscaPolicy(super=ToscaEntity(name=OPERATIONAL_Olaf01Service_v1_0_Olaf01SoftwareProduct0_dublin_blueprint0, version=1.0.0, derivedFrom=null, metadata={}, description=null), type=onap.policies.controlloop.Operational, typeVersion=1.0.0, properties={content=controlLoop%3A%0A++abatement%3A+false%0A++controlLoopName%3A+LOOP_Olaf01Service_v1_0_Olaf01SoftwareProduct0_dublin_blueprint0%0A++timeout%3A+0%0A++trigger_policy%3A+%27%27%0Apolicies%3A%0A-+actor%3A+APPC%0A++failure%3A+final_failure%0A++failure_exception%3A+final_failure_exception%0A++failure_guard%3A+final_failure_guard%0A++failure_retries%3A+final_failure_retries%0A++failure_timeout%3A+final_failure_timeout%0A++id%3A+Olaf01HealthCheck%0A++payload%3A+%27%27%0A++recipe%3A+Health-Check%0A++retry%3A+5%0A++success%3A+final_success%0A++target%3A%0A++++modelCustomizationId%3A+%27%27%0A++++modelInvariantId%3A+%27%27%0A++++modelName%3A+%27%27%0A++++modelVersion%3A+%27%27%0A++++modelVersionId%3A+%27%27%0A++++resourceID%3A+Olaf01SoftwareProduct%0A++++type%3A+VNF%0A++timeout%3A+120%0A-+actor%3A+APPC%0A++failure%3A+Olaf01Restart%0A++failure_exception%3A+Olaf01Restart%0A++failure_guard%3A+final_failure_guard%0A++failure_retries%3A+final_failure_retries%0A++failure_timeout%3A+Olaf01Restart%0A++id%3A+Olaf01Restart%0A++payload%3A+%27%27%0A++recipe%3A+Restart%0A++retry%3A+5%0A++success%3A+final_success%0A++target%3A%0A++++modelCustomizationId%3A+%27%27%0A++++modelInvariantId%3A+%27%27%0A++++modelName%3A+%27%27%0A++++modelVersion%3A+%27%27%0A++++modelVersionId%3A+%27%27%0A++++resourceID%3A+Olaf01SoftwareProduct%0A++++type%3A+VNF%0A++timeout%3A+120%0A})
[2019-08-23T13:49:41.154+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] sending 1 msgs to /events/POLICY-PDP-PAP. Oldest: 11 ms
[2019-08-23T13:49:41.155+00:00|INFO|HttpClient|pool-4-thread-1] POST https://message-router:3905/events/POLICY-PDP-PAP (anonymous) ...
[2019-08-23T13:49:41.158+00:00|ERROR|ControlLoopUtils|Session org.onap.policy.drools-applications.controlloop.common:controller-usecases:1.4.2:usecases] Invalid Policy because of Cannot create property=policies for JavaBean=ControlLoopPolicy [controlLoop=ControlLoop [controlLoopName=LOOP_Olaf01Service_v1_0_Olaf01SoftwareProduct0_dublin_blueprint0, version=2.0.0, services=null, resources=null, trigger_policy=, timeout=0, abatement=false], policies=null]
 in 'string', line 1, column 1:
    controlLoop:
    ^
Cannot create property=payload for JavaBean=Policy [id=Olaf01HealthCheck, name=null, description=null, actor=APPC, recipe=null, payload=null, target=null, operationsAccumulateParams=null, retry=0, timeout=300, success=FINAL_SUCCESS, failure=final_failure, failure_retries=final_failure_retries, failure_timeout=final_failure_timeout, failure_exception=final_failure_exception, failure_guard=final_failure_guard]
 in 'string', line 7, column 3:
    - actor: APPC
      ^
No single argument constructor found for interface java.util.Map
 in 'string', line 14, column 12:
      payload: ''
               ^

 in 'string', line 7, column 1:
    - actor: APPC
    ^
: ToscaPolicy(super=ToscaEntity(name=OPERATIONAL_Olaf01Service_v1_0_Olaf01SoftwareProduct0_dublin_blueprint0, version=1.0.0, derivedFrom=null, metadata={}, description=null), type=onap.policies.controlloop.Operational, typeVersion=1.0.0, properties={content=controlLoop%3A%0A++abatement%3A+false%0A++controlLoopName%3A+LOOP_Olaf01Service_v1_0_Olaf01SoftwareProduct0_dublin_blueprint0%0A++timeout%3A+0%0A++trigger_policy%3A+%27%27%0Apolicies%3A%0A-+actor%3A+APPC%0A++failure%3A+final_failure%0A++failure_exception%3A+final_failure_exception%0A++failure_guard%3A+final_failure_guard%0A++failure_retries%3A+final_failure_retries%0A++failure_timeout%3A+final_failure_timeout%0A++id%3A+Olaf01HealthCheck%0A++payload%3A+%27%27%0A++recipe%3A+Health-Check%0A++retry%3A+5%0A++success%3A+final_success%0A++target%3A%0A++++modelCustomizationId%3A+%27%27%0A++++modelInvariantId%3A+%27%27%0A++++modelName%3A+%27%27%0A++++modelVersion%3A+%27%27%0A++++modelVersionId%3A+%27%27%0A++++resourceID%3A+Olaf01SoftwareProduct%0A++++type%3A+VNF%0A++timeout%3A+120%0A-+actor%3A+APPC%0A++failure%3A+Olaf01Restart%0A++failure_exception%3A+Olaf01Restart%0A++failure_guard%3A+final_failure_guard%0A++failure_retries%3A+final_failure_retries%0A++failure_timeout%3A+Olaf01Restart%0A++id%3A+Olaf01Restart%0A++payload%3A+%27%27%0A++recipe%3A+Restart%0A++retry%3A+5%0A++success%3A+final_success%0A++target%3A%0A++++modelCustomizationId%3A+%27%27%0A++++modelInvariantId%3A+%27%27%0A++++modelName%3A+%27%27%0A++++modelVersion%3A+%27%27%0A++++modelVersionId%3A+%27%27%0A++++resourceID%3A+Olaf01SoftwareProduct%0A++++type%3A+VNF%0A++timeout%3A+120%0A})
org.onap.policy.controlloop.ControlLoopException: Cannot create property=policies for JavaBean=ControlLoopPolicy [controlLoop=ControlLoop [controlLoopName=LOOP_Olaf01Service_v1_0_Olaf01SoftwareProduct0_dublin_blueprint0, version=2.0.0, services=null, resources=null, trigger_policy=, timeout=0, abatement=false], policies=null]
 in 'string', line 1, column 1:
    controlLoop:
    ^
Cannot create property=payload for JavaBean=Policy [id=Olaf01HealthCheck, name=null, description=null, actor=APPC, recipe=null, payload=null, target=null, operationsAccumulateParams=null, retry=0, timeout=300, success=FINAL_SUCCESS, failure=final_failure, failure_retries=final_failure_retries, failure_timeout=final_failure_timeout, failure_exception=final_failure_exception, failure_guard=final_failure_guard]
 in 'string', line 7, column 3:
    - actor: APPC
      ^
No single argument constructor found for interface java.util.Map
 in 'string', line 14, column 12:
      payload: ''
               ^

 in 'string', line 7, column 1:
    - actor: APPC
    ^

    at org.onap.policy.controlloop.processor.ControlLoopProcessor.<init>(ControlLoopProcessor.java:59)
    at org.onap.policy.controlloop.utils.ControlLoopUtils.toControlLoopParams(ControlLoopUtils.java:62)
    at org.onap.policy.controlloop.Rule_NEW$u46$TOSCA$u46$POLICY889403274.defaultConsequence(Rule_NEW$u46$TOSCA$u46$POLICY889403274.java:12)
    at org.onap.policy.controlloop.Rule_NEW$u46$TOSCA$u46$POLICY889403274DefaultConsequenceInvokerGenerated.evaluate(Unknown Source)
    at org.onap.policy.controlloop.Rule_NEW$u46$TOSCA$u46$POLICY889403274DefaultConsequenceInvoker.evaluate(Unknown Source)
    at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1052)
    at org.drools.core.phreak.RuleExecutor.fire(RuleExecutor.java:121)
    at org.drools.core.phreak.RuleExecutor.evaluateNetworkAndFire(RuleExecutor.java:74)
    at org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:970)
    at org.drools.core.common.DefaultAgenda.fireLoop(DefaultAgenda.java:1312)
    at org.drools.core.common.DefaultAgenda.fireUntilHalt(DefaultAgenda.java:1232)
    at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:1398)
    at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:1377)
    at org.onap.policy.drools.core.PolicySession$DefaultThreadModel.run(PolicySession.java:472)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.yaml.snakeyaml.constructor.ConstructorException: Cannot create property=policies for JavaBean=ControlLoopPolicy [controlLoop=ControlLoop [controlLoopName=LOOP_Olaf01Service_v1_0_Olaf01SoftwareProduct0_dublin_blueprint0, version=2.0.0, services=null, resources=null, trigger_policy=, timeout=0, abatement=false], policies=null]
 in 'string', line 1, column 1:
    controlLoop:
    ^
Cannot create property=payload for JavaBean=Policy [id=Olaf01HealthCheck, name=null, description=null, actor=APPC, recipe=null, payload=null, target=null, operationsAccumulateParams=null, retry=0, timeout=300, success=FINAL_SUCCESS, failure=final_failure, failure_retries=final_failure_retries, failure_timeout=final_failure_timeout, failure_exception=final_failure_exception, failure_guard=final_failure_guard]
 in 'string', line 7, column 3:
    - actor: APPC
      ^
No single argument constructor found for interface java.util.Map
 in 'string', line 14, column 12:
      payload: ''
               ^

 in 'string', line 7, column 1:
    - actor: APPC
    ^

    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:313)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:190)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:346)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:184)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:143)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:129)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:505)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:424)
    at org.onap.policy.controlloop.processor.ControlLoopProcessor.<init>(ControlLoopProcessor.java:51)
    ... 14 common frames omitted
Caused by: org.yaml.snakeyaml.constructor.ConstructorException: Cannot create property=payload for JavaBean=Policy [id=Olaf01HealthCheck, name=null, description=null, actor=APPC, recipe=null, payload=null, target=null, operationsAccumulateParams=null, retry=0, timeout=300, success=FINAL_SUCCESS, failure=final_failure, failure_retries=final_failure_retries, failure_timeout=final_failure_timeout, failure_exception=final_failure_exception, failure_guard=final_failure_guard]
 in 'string', line 7, column 3:
    - actor: APPC
      ^
No single argument constructor found for interface java.util.Map
 in 'string', line 14, column 12:
      payload: ''
               ^

    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:313)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:190)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:184)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequenceStep2(BaseConstructor.java:277)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequence(BaseConstructor.java:248)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:539)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:184)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:298)
    ... 22 common frames omitted
Caused by: org.yaml.snakeyaml.error.YAMLException: No single argument constructor found for interface java.util.Map
    at org.yaml.snakeyaml.constructor.Constructor$ConstructScalar.construct(Constructor.java:397)
    at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:184)
    at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:298)
    ... 29 common frames omitted
[2019-08-23T13:49:41.163+00:00|INFO|HttpClient|pool-4-thread-1]     --> HTTP/1.1 200 OK
[2019-08-23T13:49:41.163+00:00|INFO|CambriaSimplerBatchPublisher|pool-4-thread-1] cambria reply ok (9 ms):{"serverTimeMs":0,"count":1}
[2019-08-23T13:49:41.307+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP]     --> HTTP/1.1 200 OK
[2019-08-23T13:49:41.308+00:00|INFO|MessageTypeDispatcher|DMAAP-source-POLICY-PDP-PAP] discarding event of type PDP_STATUS
[2019-08-23T13:49:41.308+00:00|INFO|CambriaConsumerImpl|DMAAP-source-POLICY-PDP-PAP] UEB GET /events/POLICY-PDP-PAP/4db5b35f-3769-4a1f-aaf0-babb8c6a655e/dev-policy-drools-0?timeout=15000&limit=100
[2019-08-23T13:49:41.308+00:00|INFO|HttpClient|DMAAP-source-POLICY-PDP-PAP] GET https://message-router:3905/events/POLICY-PDP-PAP/4db5b35f-3769-4a1f-aaf0-babb8c6a655e/dev-policy-drools-0?timeout=15000&limit=100 (anonymous) ...


Jorge Hernandez
 

Hello,
Please monitor this ticket for resolution to this problem:  https://jira.onap.org/browse/CLAMP-484.
It's related to the payload field being a (empty) string.
Best regards,
Jorge