You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "thor533 (via GitHub)" <gi...@apache.org> on 2023/05/08 02:07:34 UTC

[GitHub] [apisix] thor533 opened a new issue, #9426: java plugin does not take effect

thor533 opened a new issue, #9426:
URL: https://github.com/apache/apisix/issues/9426

   ### Description
   
   I developed a java plug-in locally, but it didn't work and I got an error message
   ![image](https://user-images.githubusercontent.com/62246176/236716849-1bd17925-5d97-4ca9-b36e-b01123a1e6a9.png)
   the route:
   ```
   {
     "uri": "/test/*",
     "name": "xx",
     "methods": [
       "GET",
       "POST",
       "PUT",
       "DELETE",
       "PATCH",
       "HEAD",
       "OPTIONS",
       "CONNECT",
       "TRACE",
       "PURGE"
     ],
     "plugins": {
       "ext-plugin-pre-req": {
         "conf": [
           {
             "name": "TokenValidator",
             "value": "{\"validate_header\":\"token\",\"validate_url\":\"https://www.sso.foo.com/token/validate\",\"rejected_code\":\"403\"}"
           }
         ]
       }
     },
     "upstream": {
       "nodes": [
         {
           "host": "10.210.21.105",
           "port": 9001,
           "weight": 1
         }
       ],
       "timeout": {
         "connect": 6,
         "send": 6,
         "read": 6
       },
       "type": "roundrobin",
       "scheme": "http",
       "pass_host": "pass",
       "keepalive_pool": {
         "idle_timeout": 60,
         "requests": 1000,
         "size": 320
       }
     },
     "labels": {
       "API_VERSION": "x"
     },
     "status": 1
   }
   ```
   
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.15-apline
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] thor533 closed issue #9426: java plugin does not take effect

Posted by "thor533 (via GitHub)" <gi...@apache.org>.
thor533 closed issue #9426: java plugin does not take effect
URL: https://github.com/apache/apisix/issues/9426


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] lzslbd commented on issue #9426: java plugin does not take effect

Posted by "lzslbd (via GitHub)" <gi...@apache.org>.
lzslbd commented on issue #9426:
URL: https://github.com/apache/apisix/issues/9426#issuecomment-1620966464

   @thor533 how do you solve this problem


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] thor533 commented on issue #9426: java plugin does not take effect

Posted by "thor533 (via GitHub)" <gi...@apache.org>.
thor533 commented on issue #9426:
URL: https://github.com/apache/apisix/issues/9426#issuecomment-1537676277

   ```
   2023-05-08 11:08:47.452  WARN 89693 --- [ntLoopGroup-2-2] o.a.a.p.r.h.RpcCallHandler               : cannot find conf token: 919811458
   2023-05-08 11:08:47.469  WARN 89693 --- [ntLoopGroup-2-4] o.a.a.p.r.h.PrepareConfHandler           : receive undefined filter: TokenValidator, skip it
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org