You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Francesco Chicchiriccò <il...@apache.org> on 2021/12/28 07:05:14 UTC
Invalid HTTP method: PATCH with 3.5.0 and Java 17
Hi all,
I am having this exception with CXF 3.5.0 JAX-RS client under JDK 17:
javax.ws.rs.ProcessingException: java.net.ProtocolException: Invalid HTTP method: PATCH
at org.apache.cxf.jaxrs.client.AbstractClient.checkClientException(AbstractClient.java:631) ~[cxf-rt-rs-client-3.5.0.jar:3.5.0]
at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:605) ~[cxf-rt-rs-client-3.5.0.jar:3.5.0]
at org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:899) ~[cxf-rt-rs-client-3.5.0.jar:3.5.0]
at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:345) ~[cxf-rt-rs-client-3.5.0.jar:3.5.0]
The code above is run by a test, so If I set
<argLine>--add-opens java.base/java.net=ALL-UNNAMED</argLine>
everything is working fine.
With JDK 11 and 14 no issues.
Is there any setting I am missing?
Regards.
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/