Could not obtaining permissions token when specify permission. JWT auth

I am trying keycloak-quickstarts/app-authz-springboot.
It works well with JSESSIONID.
When I request with a Bearer JWT , It obtain token with specify permissions and get 400 error response as below.

{"error":"invalid_resource","error_description":"Resource with id [6797684049109127168] does not exist."}

Here is the request package I cautht:

POST /auth/realms/spring-boot-quickstart/protocol/openid-connect/token HTTP/1.1
Authorization: Basic YXBwLWF1dGh6LXNwcmluZ2Jvb3Q6c2VjcmV0
Content-Length: 960
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: localhost:8180
Connection: Keep-Alive

audience=app-authz-springboot&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Auma-ticket&permission=6797684049109127168&subject_token=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJleHAiOjE2MjMwNTU1MTMsImlhdCI6MTYyMjYyMzUxMywianRpIjoiNjc5NzcyMzU3NTA0NzIyOTQ0MCIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODE4MC9hdXRoL3JlYWxtcy9zcHJpbmctYm9vdC1xdWlja3N0YXJ0Iiwic3ViIjoiNjc5NzY4NDA0MzU0MzI4NTc2MCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwcC1hdXRoei1zcHJpbmdib290Iiwic2Vzc2lvbl9zdGF0ZSI6IjY3OTc3MjM1NzQ1MzEzMzAwNDgiLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbImh0dHA6Ly9sb2NhbGhvc3Q6ODA4OCJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidXNlciJdfSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhbGljZSJ9.eyJc2bGY-oEsiQBQpVZJlNJwd1Pi9PjvOoWcuv7SejYp4O3gAEnXMygHylUn8We6vngqzCBJrQfGDGBJw3v0tOgOEV7Y9ZoSdJNce3bfxcPPD9__ZQnaoJDG8_dljmW1BRmQXON2atPkjjBIhJRlfwm51pkwwJ5lfIVrF-Rclqs

When I get rid of the permission parameter and manually request, It response the correct access token with authrization permission.
Here is the request I manually send:

POST /auth/realms/spring-boot-quickstart/protocol/openid-connect/token HTTP/1.1
Authorization: Basic YXBwLWF1dGh6LXNwcmluZ2Jvb3Q6c2VjcmV0
Content-Length: 960
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: localhost:8180
Connection: Keep-Alive

audience=app-authz-springboot&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Auma-ticket&subject_token=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJGSjg2R2NGM2pUYk5MT2NvNE52WmtVQ0lVbWZZQ3FvcXRPUWVNZmJoTmxFIn0.eyJleHAiOjE2MjMwNTU1MTMsImlhdCI6MTYyMjYyMzUxMywianRpIjoiNjc5NzcyMzU3NTA0NzIyOTQ0MCIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODE4MC9hdXRoL3JlYWxtcy9zcHJpbmctYm9vdC1xdWlja3N0YXJ0Iiwic3ViIjoiNjc5NzY4NDA0MzU0MzI4NTc2MCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFwcC1hdXRoei1zcHJpbmdib290Iiwic2Vzc2lvbl9zdGF0ZSI6IjY3OTc3MjM1NzQ1MzEzMzAwNDgiLCJhY3IiOiIxIiwiYWxsb3dlZC1vcmlnaW5zIjpbImh0dHA6Ly9sb2NhbGhvc3Q6ODA4OCJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsidXNlciJdfSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhbGljZSJ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lLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJhbGljZSJ9.b80_Uk2yK3xwsic386XtFrRfGdbKPOPudD_JggyQIaZIrYQO0K18DwL_nB8LQA8cW81W97HfgtXqt-5K2Npjy3p8eMPWd-yWeK4jK0oOiNMVEPi28_zRrVI3sER7IZP1QyO5yR_vOLdfIsYodLpxu4SpW8iV55qSJoiJJsvPVJM","expires_in":432000,"refresh_expires_in":855977,"refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICI2Nzk3Njg0MDUzOTExNjA1MjQ4In0.eyJleHAiOjE2MjM0ODc1MTMsImlhdCI6MTYyMjYzMTUzNiwianRpIjoiNjc5Nzc1NzIyNDIxNTk3Mzg4OCIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODE4MC9hdXRoL3JlYWxtcy9zcHJpbmctYm9vdC1xdWlja3N0YXJ0IiwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MTgwL2F1dGgvcmVhbG1zL3NwcmluZy1ib290LXF1aWNrc3RhcnQiLCJzdWIiOiI2Nzk3Njg0MDQzNTQzMjg1NzYwIiwidHlwIjoiUmVmcmVzaCIsImF6cCI6ImFwcC1hdXRoei1zcHJpbmdib290Iiwic2Vzc2lvbl9zdGF0ZSI6IjY3OTc3MjM1NzQ1MzEzMzAwNDgiLCJhdXRob3JpemF0aW9uIjp7InBlcm1pc3Npb25zIjpbeyJyc2lkIjoiNjc5NzY4NDA0Nzk3NjY2NTA4OCIsInJzbmFtZSI6IlByb3RlY3RlZCBSZXNvdXJjZSJ9LHsicnNpZCI6IjY3OTc2ODQwNDkxMDkxMjcxNjgiLCJyc25hbWUiOiJEZWZhdWx0IFJlc291cmNlIn1dfSwic2NvcGUiOiJwcm9maWxlIGVtYWlsIn0.eqRO10LohxF9_vEN7PVezHjhhED0OS1dD8So4ER_jKY","token_type":"Bearer","not-before-policy":0}

But my application is auth with JWT, what should I do?
Thanks

This may be my wrong.
My Keycloak built from source code produced this problem.
The Keycloak I downloaded from the official website works well.