I have a simple quota policy in my proxy which throws the NullPointerException as shown below:
{ "fault": { "faultstring": "NullPointerException", "detail": { "errorcode": "Internal Server Error" } } }
This error is thrown only when I have a KeyValueMapOperations policy before the Quota policy. If I remove the KVMAP then the problem goes away.
The KVMAP policy contents are as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<KeyValueMapOperations async="false" continueOnError="false" enabled="true" name="KeyValueMapOperations" mapIdentifier="mykvmap">
<Scope>environment</Scope>
<Get assignTo="ratelimit" index="1">
<Key>
<Parameter>ratelimit</Parameter>
</Key>
</Get>
<Get assignTo="log_level" index="1">
<Key>
<Parameter>log_level</Parameter>
</Key>
</Get>
</KeyValueMapOperations>
Can you please let me know why this issue occurs only when I have this KVMAP ?