Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jilanisyed
Creator
Creator

PATCH Method not working in tRestclient

HI,

we are not able use PATCH method in tRestclient component. getting the below error, if anyone has solution please let me know. 

Exception in component tRESTClient_1 (API_WITH_PATCH)
javax.ws.rs.ProcessingException: java.net.ProtocolException: Invalid HTTP method: PATCH
at org.apache.cxf.jaxrs.client.AbstractClient.checkClientException(AbstractClient.java:638)
at org.apache.cxf.jaxrs.client.AbstractClient.preProcessResult(AbstractClient.java:612)
at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1150)
at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1087)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:932)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:901)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:364)
at itssintegration.api_with_patch_0_1.API_WITH_PATCH.tFixedFlowInput_1Process(API_WITH_PATCH.java:2285)
at itssintegration.api_with_patch_0_1.API_WITH_PATCH.runJobInTOS(API_WITH_PATCH.java:3361)
at itssintegration.api_with_patch_0_1.API_WITH_PATCH.main(API_WITH_PATCH.java:3059)
Caused by: java.net.ProtocolException: Invalid HTTP method: PATCH

Labels (1)
  • v8.x

1 Solution

Accepted Solutions
Ayse
Contributor II
Contributor II

Hi Sabrina,

 

Thank you so much for your response and help on this. It seems like the issue has been resolved when I added the line you mentioned.

First I checked the checkbox: "Enable Java 17 compatibility" which was unchecked. Then I added the line into Custom tab: GLOBAL=java.base/java.net,java.base/sun.net.www.protocol.https

My job has successfully run without raising the 'invalid method PATCH" error!

Thank you so much!

Ayse

View solution in original post

4 Replies
Ayse
Contributor II
Contributor II

have you got any solution to this issue? I have the same error. It was working fine in previous version; when I upgraded to Studio 8, I get this error.

Xiaodi_Shi
Employee
Employee

Hello,

Are you using java 17? Which version of patch are you using? Does this issue repro on studio only or both on studio and runtime?

If former, you can go In Studio “File->Edit project properties->Build->Java Version”, select Custom and add the following line:
GLOBAL=java.base/java.net,java.base/sun.net.www.protocol.https

 

Best regards

Sabrina

Ayse
Contributor II
Contributor II

Hi Sabrina,

 

Thank you so much for your response and help on this. It seems like the issue has been resolved when I added the line you mentioned.

First I checked the checkbox: "Enable Java 17 compatibility" which was unchecked. Then I added the line into Custom tab: GLOBAL=java.base/java.net,java.base/sun.net.www.protocol.https

My job has successfully run without raising the 'invalid method PATCH" error!

Thank you so much!

Ayse

Xiaodi_Shi
Employee
Employee

Hello,

Great it helps and feel free to let me know if there is any further help I can give.

Best regards

Sabrina