Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to create a job to make an API call. With tREST, it works but it does not work in tRESTClient component. It is just a simple call but I am sure it is just some settings I am missing.
The error I am getting:
xception in component tRESTClient_1 (RESTAPI)
javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:507)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:902)
at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:863)
at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:426)
at org.apache.cxf.jaxrs.client.WebClient.post(WebClient.java:456)
at pilotproject.restapi_0_1.RESTAPI.tRESTClient_1Process(RESTAPI.java:873)
at pilotproject.restapi_0_1.RESTAPI.runJobInTOS(RESTAPI.java:1323)
at pilotproject.restapi_0_1.RESTAPI.main(RESTAPI.java:1142)
Please see attachments.
Hello,
The 500 error occurs if you post a straight URL with no parameter.
Best regards
Sabrina