Symptom
With update from Java 8 to Java 17, Groovy scripts may refuse to work, as Java 17 does not support reflection, and the accessibilty of java classes cannot be modified by Groovy.
Error messages could be:
-
[Script accessing a private/protected constructor]
could not access constructor: protected java.io.FilterInputStream(java.io.InputStream) with arguments: [java.io.ByteArrayInputStream@xxx] reason: java.lang.IllegalAccessException: class org.codehaus.groovy.reflection.CachedConstructor cannot access a member of class java.io.FilterInputStream (in module java.base) with modifiers "protected"@ line xx in xxxx.groovy -
[Script accessing a private/protected constructor]
could not access constructor: private javax.xml.datatype.DatatypeConstants() with arguments: [] reason: java.lang.IllegalAccessException: class org.codehaus.groovy.reflection.CachedConstructor cannot access a member of class javax.xml.datatype.DatatypeConstants (in module java.xml) with modifiers "private"@ line xx in xxxx.groovy -
[Script accessing a private/protected method]
No signature of method: static java.io.File.slashify() is applicable for argument types: (java.lang.String, java.lang.Boolean) values: [/path, true] -
[Script accessing a private/protected Field ]
java.lang.Exception: groovy.lang.MissingPropertyException: No such property: fs for class: java.io.File
Read more...
Environment
- SAP Business Technology Platform
- SAP Integration Suite
- Cloud Integration
Product
Keywords
Edge Integration Cell, EIC, JDK8, JDK 17, Java8, Java17, Groovy Script, Reflection, Cloud Integration, SAP Integration Suite, SAP Cloud Platform Integration, Cloud Platform Integration, SAP CPI, CPI, SCPI, HANA Cloud Integration, HCI, SAP HCI, tenant, iFlow, Integration Flow , KBA , LOD-HCI-PI-WT-IFL , Integration Designer , BC-CP-IS-EDG-DPL , Deployment , 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.