Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-2577

Drools-pdp stops listening to PAP notifications in case of specific error

XMLWordPrintable

    • Policy 6/8-6/19

      If we specify timeout values as String in Tosca Policy. Try to create & deploy the policy in drools-pdp. Then there is StackOverflow error in drools-pdp and it stops listening to PAP notifications.

      Resulting in an infinite loop where PAP keeps removing & registering drools-pdp. And cannot take any action on the PDP.

      Below error can be seen in policy-management.err log file.
      Tue May 19 21:22:12 UTC 2020: Exception in thread "DMAAP-source-POLICY-PDP-PAP" java.lang.StackOverflowError
      Tue May 19 21:22:12 UTC 2020: at com.worldturner.medeia.parser.gson.GsonJsonReaderDecorator.nextInt(GsonJsonReaderDecorator.kt:68)
      Tue May 19 21:22:12 UTC 2020: at com.worldturner.medeia.parser.gson.GsonJsonReaderDecorator.nextInt(GsonJsonReaderDecorator.kt:76)
       

      Workaround

      Undeploy the policy from PAP and then Delete the Policy from API.

      And then restart drools-pdp pod.

            jhh jhh
            ramverma ramverma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: