SAP Knowledge Base Article - Preview

3383811 - java.lang.ClassCastException error in Groovy Script step in an iFlow

Symptom

In the integration flow a groovy script is called to generate a JWT Token. Just after deployment the execution of the script works with no issue but at next executions, the script systematically fails with the following error:

com.sap.it.rt.adapter.http.api.exception.HttpResponseException: An internal server error occured: java.lang.ClassCastException: io.jsonwebtoken.impl.DefaultHeader (loaded by com.sap.gateway.ip.core.customdev.classloader.MergeClassLoaders@xxx) cannot be cast to io.jsonwebtoken.Header (loaded by com.sap.gateway.ip.core.customdev.classloader.MergeClassLoaders@yyy) (found matching interface io.jsonwebtoken.Header loaded by com.sap.gateway.ip.core.customdev.classloader.MergeClassLoaders@zzz, but needed loader com.sap.gateway.ip.core.customdev.classloader.MergeClassLoaders@xxx)@ line in jwt_payload.groovy.


Read more...

Environment

  • Integration Suite
  • Cloud Integration

Product

Cloud Integration all versions

Keywords

Script, java.lang.ClassCastException, Groovy, jsonwebtoken.Header,com.sap.gateway.ip.core.customdev.classloader.MergeClassLoaders, but needed loader com.sap.gateway.ip.core.customdev.classloader.MergeClassLoaders, jwt_payload.groovy. , KBA , LOD-HCI-PI-RT , Integration Runtime , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.