Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
javax.ws.rs.ProcessingException:找不到内容类型应用程序的编写器/x-www-form-urlencoded-type:javax.ws.rs.core.form$1_Java_Realm_Keycloak - Fatal编程技术网

javax.ws.rs.ProcessingException:找不到内容类型应用程序的编写器/x-www-form-urlencoded-type:javax.ws.rs.core.form$1

javax.ws.rs.ProcessingException:找不到内容类型应用程序的编写器/x-www-form-urlencoded-type:javax.ws.rs.core.form$1,java,realm,keycloak,Java,Realm,Keycloak,我正在使用KeyClope中的领域创建组,因此在调用组资源方法时发生了此错误 堆栈跟踪: javax.ws.rs.ProcessingException: RESTEASY003215: could not find writer for content-type application/x-www-form-urlencoded type: javax.ws.rs.core.Form$1 at org.jboss.resteasy.core.interception.C

我正在使用KeyClope中的领域创建组,因此在调用组资源方法时发生了此错误

堆栈跟踪:

javax.ws.rs.ProcessingException: RESTEASY003215: could not find writer for content-type application/x-www-form-urlencoded type: javax.ws.rs.core.Form$1
            at org.jboss.resteasy.core.interception.ClientWriterInterceptorContext.throwWriterNotFoundException(ClientWriterInterceptorContext.java:40)
            at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.getWriter(AbstractWriterInterceptorContext.java:146)
            at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:121)
            at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.writeRequestBody(ClientInvocation.java:394)
            at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.writeRequestBodyToOutputStream(ApacheHttpClient4Engine.java:636)
            at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.buildEntity(ApacheHttpClient4Engine.java:601)
            at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.loadHttpMethod(ApacheHttpClient4Engine.java:479)
            at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:307)

感谢您提供完整的堆栈跟踪。你能解释一下你想做什么,并告诉我们你想返回或序列化的对象,以及创建它的代码吗$1通常意味着一个匿名的内部类,但AFAICS javax.ws.rs.core.Form没有这些。实际上,我正在尝试使用KeyClope realm方法添加组,该方法在内部使用Rest Api,但无法这样做,因为它在调用该方法时抛出错误。我可以帮你。