SAP Knowledge Base Article - Preview

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


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: An internal server error occured: java.lang.ClassCastException: io.jsonwebtoken.impl.DefaultHeader (loaded by cannot be cast to io.jsonwebtoken.Header (loaded by (found matching interface io.jsonwebtoken.Header loaded by, but needed loader line in jwt_payload.groovy.



  • Integration Suite
  • Cloud Integration


Cloud Integration all versions


Script, java.lang.ClassCastException, Groovy, jsonwebtoken.Header,, but needed loader, 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.