Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-1342

PolicyNotFoundException thrown intermittently despite previous requests being successful

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.5.1.Final
    • 1.4.2.Final
    • Gateway
    • None
      1. Call endpoint successfully
      2. Suddenly starts returning the exception above
      3. Continues to return this error after first occurrence
      4. Have to restart to restore successful endpoint invocation

    Description

      We've been having a weird issue for a while, where an API endpoint that is working, suddenly starts failing with the following error:

      {
      "responseCode": 500,
      "message": "Policy not found: plugin:io.apiman.plugins:apiman-plugins-cors-policy:1.4.3.Final:war/io.apiman.plugins.cors_policy.CorsPolicy",
      "trace": "io.apiman.gateway.engine.beans.exceptions.PolicyNotFoundException: Policy not found: plugin:io.apiman.plugins:apiman-plugins-cors-policy:1.4.3.Final:war/io.apiman.plugins.cors_policy.CorsPolicy
      }
      

      The exception doesn't make sense since the endpoint was working and the plugin obviously exists.
      Assuming this exception is a red herring and something else is actually blowing up. It's also not related directly to the actual plugin because we've seen various plugins referenced in the exception. I.e. It's not specifically with the CorsPolicy plugin, this just happens to be the plugin for this endpoint.

      The only solution once this starts happening is to restart, where the call once again starts working again.

      Attachments

        Activity

          People

            msavy_jira Marc Savy (Inactive)
            donovan.muller_jira Donovan Muller (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: