uri is not absolute error in API job

johnfw
Kilo Expert

Hi,

I have some external java executables that make API calls to pull CMDB information.

They worked fine until Madrid upgrade, but now I get an error: java.lang.IllegalArgumentException: URI is not absolute

Has anyone any information about what might have changed in the API implementation ?

 

 

4 REPLIES 4

Michael Nau
Mega Guru

Nothing has changed in the API on SNs side - at least I know that we have integrations the query us from Java and have been running since way before Madrid. It looks like your request isn't being sent.

An absolute URI requires a scheme - any chance to log the request URI at the moment it is supposed to be sent?

Hi Michael,

There is a lot of logging 🙂

The URI produced works perfectly well in a browser.

We are now working on the basis this is a Java issue.

So you grab the URI from a log and it works in the browser? That's interesting...

Can you feed the complete URI to your Java code as a literal, so that it doesn't get modified at all before it's passed to whatever class makes the request?

Hi Michael,

Thank you for replying and confirming nothing has changed.

It was a java issue related to versions and flavours (openJDK, Oracle).. We refactored and have a solution.

John