Symptom
Deployment fails and the logs are similar to:
"level":"ERROR",
"loggerName":"de.hybris.platform.core.HybrisContextFactory",
"message":"Error initializing global application context!",
...,
"message":"Unable to make field <access modifier> ... accessible: module xxx does not "<exports or opens> yyy" to unnamed module ...",
"name":"java.lang.reflect.InaccessibleObjectException",
"extendedStackTrace":[
{"class":"java.lang.reflect.AccessibleObject","method":"checkCanSetAccessible","file":"AccessibleObject.java","line":354,"exact":false,"location":"?","version":"?"},...
]
where xxx is a module, like:
- java.base
- java.xml
and yyy is a package, like:
- java.lang.reflect
- java.math
- java.net
- java.time
- java.util
- com.sun.org.apache.xerces.internal.jaxp.datatype
Read more...
Environment
SAP Commerce Cloud in the Public Cloud
Product
Keywords
Strong Encapsulation, Java 17, JDK 17, 17, --add-exports, --add-opens, java.base, java.xml , KBA , CEC-SCC-CLA-DEP , Deployments , 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.