paologazzola opened a new issue, #308:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/308

   ### Issue description
   Hello,
   I wrote an external plugin with this code:
   
   ```
   public class ExamplePostFilter implements PluginFilter {
   
       @Override
       public String name() {
           return "ExamplePostFilter";
       }
   
       @Override
       public void postFilter(PostRequest request, PostResponse response, 
PluginFilterChain chain) {
           ... some logic ...
           chain.postFilter(request, response);
       }
   
   }
   ```
   Then I configured my route in this way:
   ```
     ...
     "ext-plugin-post-req": {
         "conf": [
           {
             "name": "ExamplePostFilter",
             "value": "{\n\"variable1\": \"testme\"\n}"
           }
         ]
       }
   ```
   When I query the route, the `postMethod(...)` is never triggered (my 
breakpoints are ignored and no log is written). If I add in my plugin class 
some overrided methods like `requiredRespBody()`, I correctly see that they are 
triggered. I think that for some reasons (or some bad configuration), the 
`doPostFilter(...)` in the `RpcCallHandles` class is never reached.
   
   What am I doing wrong with my plugin configuration?
   
   Thanks a lot.
   Paolo
   
   ### Environment
   Apisix 3.9.x  
   apisix-java-plugin-runner 0.5.0
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to