Skip to Content
0
Jul 01, 2019 at 06:27 PM

Issue with extracting JAR content using Groovy Script in CPI iflow..... "URI is not hierarchical"

513 Views

Hi folks,

I am trying to implement the following blog from Eng for some hands on in Groovy scripting for CPI.

https://blogs.sap.com/2017/10/06/how-do-you-test-your-groovy-scripts/comment-page-1/#comment-464650

I also followed Vadim's post to trying to extract the Jars.

https://blogs.sap.com/2017/10/02/dark-side-of-groovy-scripting-behind-the-scenes-of-cloud-integration-runtime/

But when I am trying to fetch the Jar content I am having the issue with with URI class,

"An internal server error occured: java.lang.IllegalArgumentException: URI is not hierarchical@ line 14 in Class_JAR_Content.groovy. The MPL ID for the failed message is : AF0aTY5-VXiNuXaV-B9TGBY2ALTg For more details please check tail log."

Please suggest how to fix this issue.

"java.lang.IllegalArgumentException: URI is not hierarchical".

To start with I was trying your modify the header values as per Engs blog as mentioned above. And I got stuck here with class not found exception for “com.sap.it.api.msg.ExchangePropertyProvider”

So then I started to dig into the Jar using Vadim’s post for retrieving the Jar content using the following iflow and the groovy script

Groovy Script

When I try to fetch the base 64 encoding of the JAR by doing a GET query from the POSTMAN this is what I get. “An internal server error occured: java.lang.IllegalArgumentException: URI is not hierarchical” I am struggling to understand what this error means. Please let me know if you have any suggestions?

Regards

kalyan.