2022 Oct 03 11:17 AM - edited 2024 Feb 04 4:07 AM
I have upgraded Hybris Commerce from 1905 to 2205. Hybris Server startup gets failed due to below error.
Need help in this issue.
PFB the server startup log.
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultFacetSearchConfigService' defined in class path resource [solrfacetsearch-spring.xml]: Cannot resolve reference to bean 'facetSearchConfigMapper' while setting bean property 'facetSearchConfigMapper'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'defaultFacetSearchConfigMapper' defined in class path resource [solrfacetsearch-spring.xml]: Initialization of bean failed; nested exception is java.lang.reflect.InaccessibleObjectException: Unable to make protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException accessible: module java.base does not \"opens java.lang\" to unnamed module @14d6a298","endOfBatch":false,"loggerFqcn":"org.apache.commons.logging.impl.SLF4JLocationAwareLog","threadId":29,"threadPriority":5}
Request clarification before answering.
A solution is to add the jvm option --add-opens="java.base/java.lang=ALL-UNNAMED"
You can append it to your tomcat.generaloptions property in local.properties.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I added --add-opens option to tomcat.generaloptions and then hybris started up with no issue. However, when I try to start in debug mode (hybrisserver.bat debug) , I get the same error. I tried adding --add-opens --add-opens="java.base/java.lang=ALL-UNNAMED" to tomcat.debugjavaoptions but still get the same issue.
Can someone tell me how to get this to work in debug mode? Thanks.
User | Count |
---|---|
10 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.