cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to access hac after starting server; migrating from hybris v.1808 to v.2005.

Hi,

We are migrating from 1808 to 2005. After the server starts, I am not able to access hac, getting the below error.

SEVERE: Servlet.service() for servlet [springmvc] in context with path [/hac] threw exception [Filter execution threw an exception] with root cause
java.lang.NoClassDefFoundError: com/hybris/cockpitng/core/spring/RequestOperationContextHolder
	at com.hybris.backoffice.spring.FallbackRequestOperationScopeController.initializeContext(FallbackRequestOperationScopeController.java:74)
	at com.hybris.backoffice.spring.FallbackRequestOperationScopeController.sessionCreated(FallbackRequestOperationScopeController.java:69)
	at com.hybris.backoffice.jalo.BackofficeManager.lambda$0(BackofficeManager.java:55)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
	at java.base/java.util.Collections$SynchronizedCollection.forEach(Collections.java:2067)
	at com.hybris.backoffice.jalo.BackofficeManager.afterSessionCreation(BackofficeManager.java:55)
	at de.hybris.platform.jalo.JaloSession.notifyExtensionsAfterSessionCreation(JaloSession.java:2316)
	at de.hybris.platform.jalo.JaloSession.createInstance(JaloSession.java:258)
	at de.hybris.platform.jalo.JaloConnection.createSession(JaloConnection.java:789)
	at de.hybris.platform.jalo.JaloConnection.createSession(JaloConnection.java:744)
	at de.hybris.platform.jalo.JaloConnection.createAnonymousCustomerSession(JaloConnection.java:665)
	at de.hybris.platform.jalo.JaloConnection.createAnonymousCustomerSession(JaloConnection.java:637)
	at de.hybris.platform.servicelayer.session.impl.DefaultSessionService.createNewSession(DefaultSessionService.java:67)
	at de.hybris.platform.servicelayer.web.SessionFilter.createNewJaloSession(SessionFilter.java:241)
	at de.hybris.platform.servicelayer.web.SessionFilter.activateSession(SessionFilter.java:229)
	at de.hybris.platform.servicelayer.web.SessionFilter.doFilter(SessionFilter.java:82)
	at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
	at de.hybris.platform.servicelayer.web.ResourcesGuardFilter.doFilter(ResourcesGuardFilter.java:38)
	at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
	at de.hybris.platform.servicelayer.web.RedirectWhenSystemIsNotInitializedFilter.doFilter(RedirectWhenSystemIsNotInitializedFilter.java:94)
	at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
	at de.hybris.platform.servicelayer.web.Log4JFilter.doFilter(Log4JFilter.java:37)
	at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
	at de.hybris.platform.servicelayer.web.session.HybrisSpringSessionFilter.doFilter(HybrisSpringSessionFilter.java:67)
	at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:292)
	at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.processStandardFilterChain(AbstractPlatformFilterChain.java:200)
	at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java:177)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at de.hybris.platform.servicelayer.web.XSSFilter.processPatternsAndDoFilter(XSSFilter.java:351)
	at de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:299)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:609)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1623)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Thread.java:834)


Please guide.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member1002389
Active Participant

I was having problem as one of the item-type was not updated. BackofficeIndexedTypeToSolrFacetSearchConfig which belongs to backofficesolrsearch. This below is the exception.

SEVERE: Exception sending context initialized event to listener instance of class [com.hybris.cockpitng.util.impl.CockpitHttpSessionListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultBackofficeSolrSearchIndexInitializer' defined in file [/Users/t821868/Desktop/hybris-upgrade/hybris/bin/modules/backoffice-framework/backofficesolrsearch/resources/backofficesolrsearch-backoffice-spring.xml]: Invocation of init method failed; nested exception is de.hybris.platform.servicelayer.search.exceptions.FlexibleSearchException: type code 'BackofficeIndexedTypeToSolrFacetSearchConfig' invalid
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796)

Because of this exception, I was getting below exception related to context was not able to initialize.

INFO: Illegal access: this web application instance has been stopped already. Could not load [com.hybris.cockpitng.core.spring.RequestOperationContext]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.hybris.cockpitng.core.spring.RequestOperationContext]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1378)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1366)

I performed below command from command line and restarted the server. All good.

ant updatesystem
maheshwai
Employee
Employee
0 Kudos

thanks for the solution

mwoelm
Participant

We had similar issues. Just for the migration we have copied the *cockpit*.jars from the backoffice to the hac. Afterwards, HAC started again. After doing the update, everything worked again without it. (Yes, really dirty...)

As the backoffice doesn't start during deployment, it seems also the backoffice libraries from the lib folders are not there... (Asking myself how ClassLoading in Hybris effectively works...)

If you do an Init, it works directly. 😄

0 Kudos

Hello

Firstly you must update system

Secondly if you don't want to load all essential data you must import data from impexes of the backoffice extension:

essentialdataBackofficeMediaCatalog.impex

essentialdataMediaFolders.impex

essentialdataTypePermissions.impex

essentialdataUsersAndGroups.impex

and

resources/impex/productSolr.impex

sundar137
Discoverer
0 Kudos

Hi,

I have also got the same exception after migrated from 6.7 to 2005 version in my local server. None of the web application (hac, backoffice, storefront) is loaded. The issue is there was spring bean exception due to incorrect solr configuration in my local server. Due to this spring bean exception, backoffice related jars are not loaded and getting the exception when try to open any URL. After fix the SOLR bean issue, server started without any errors and also able to open hac, backoffice and storefront URLs. Check your server startup for any other spring bean exception.

Regards,

Sundar

0 Kudos

Hi Sundar,

I have also got the same exception after migrate to 1905 due to solr configuration in my local.

I have tried with deleting backoffice folder from Hybris data folder and triggered the system updated, but still issue not yet resolved.

It will be Great help if you could able to share the detailed steps to resolve this issue.

Regards,

Mallikharjuna