cancel
Showing results for 
Search instead for 
Did you mean: 

Hybris Upgrade from 1905 to 2205 Server Start Issue

former_member823943
Discoverer
4,548

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}

View Entire Topic
mgebel
Explorer
0 Kudos

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.

wbatista22
Discoverer
0 Kudos

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.