10-08-2019 11:17 PM - edited 02-04-2024 6:25 AM
I am working on upgrading to 1905 from 1808. The code is compiling with my custom code but it is displaying below error while server startup.
[ContextLoader] ERROR Context initialization failed de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: CatalogVersion with catalogId '_boconfig' and version 'hidden' not found! at de.hybris.platform.servicelayer.util.ServicesUtil.validateSingleResultWithType(ServicesUtil.java:75) at de.hybris.platform.servicelayer.util.ServicesUtil.validateIfSingleResult(ServicesUtil.java:41) at de.hybris.platform.catalog.impl.DefaultCatalogVersionService.getCatalogVersion(DefaultCatalogVersionService.java:112) at com.hybris.backoffice.config.impl.DefaultBackofficeConfigurationMediaHelper$2.execute(DefaultBackofficeConfigurationMediaHelper.java:158) at de.hybris.platform.servicelayer.session.impl.DefaultSessionService.executeInLocalView(DefaultSessionService.java:131) at com.hybris.backoffice.config.impl.DefaultBackofficeConfigurationMediaHelper.findBackofficeMediaCatalog(DefaultBackofficeConfigurationMediaHelper.java:153) at com.hybris.backoffice.config.impl.DefaultBackofficeConfigurationMediaHelper.createWidgetsConfigMedia(DefaultBackofficeConfigurationMediaHelper.java:124) at com.hybris.backoffice.config.impl.DefaultBackofficeConfigurationMediaHelper.findOrCreateWidgetsConfigMedia(DefaultBackofficeConfigurationMediaHelper.java:62) at com.hybris.backoffice.config.impl.DefaultBackofficeConfigurationMediaHelper.findOrCreateWidgetsConfigMedia(DefaultBackofficeConfigurationMediaHelper.java:78) at com.hybris.backoffice.config.impl.DefaultMediaCockpitConfigurationPersistenceStrategy.getCockpitNGConfig(DefaultMediaCockpitConfigurationPersistenceStrategy.java:165) at com.hybris.backoffice.config.impl.DefaultMediaCockpitConfigurationPersistenceStrategy.getLastModification(DefaultMediaCockpitConfigurationPersistenceStrategy.java:182) at com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService.getLastModification(DefaultCockpitConfigurationService.java:1708) at com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService.isRootConfigurationCacheValid(DefaultCockpitConfigurationService.java:279) at com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService.getRootConfig(DefaultCockpitConfigurationService.java:146) at com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService.loadRootConfiguration(DefaultCockpitConfigurationService.java:550) at com.hybris.backoffice.cockpitng.modules.BackofficeLibraryHandler.initialize(BackofficeLibraryHandler.java:185) at com.hybris.cockpitng.modules.core.impl.CockpitModuleComponentDefinitionService.lambda$doInitialize$5(CockpitModuleComponentDefinitionService.java:104) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) at com.hybris.cockpitng.modules.core.impl.CockpitModuleComponentDefinitionService.doInitialize(CockpitModuleComponentDefinitionService.java:104) at com.hybris.cockpitng.modules.core.impl.CockpitModuleComponentDefinitionService.fetchExternalWidgets(CockpitModuleComponentDefinitionService.java:88) at com.hybris.cockpitng.modules.core.impl.CockpitModuleComponentDefinitionService.onApplicationEvent(CockpitModuleComponentDefinitionService.java:66) at com.hybris.cockpitng.modules.core.impl.CockpitModuleComponentDefinitionService.onApplicationEvent(CockpitModuleComponentDefinitionService.java:39) at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:896) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291) at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:226) at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:95) at com.hybris.backoffice.BackofficeApplicationContextInitializer.contextInitialized(BackofficeApplicationContextInitializer.java:105) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4770) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1423) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1413) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
"_boconfig" is mentioned in "essentialdataBackofficeMediaCatalog.impex" which is an out of the box code which should work fine.
Any help would be greatly appreciated.
There is a ticket describing this case: https://jira.hybris.com/browse/ECP-4083
TLDR: there is an attempt to do a first login to Backoffice with non-admin user.
Workaround available: First log in should be as admin user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ant importImpex -Dresource= yourpath/essentialdataBackofficeMediaCatalog solved it for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I was facing similar issue while doing 2005 local setup.
1. Initialize was successful but backoffice was not loading.
2. Included backoffice related extension, performed build and during server startup this error was thrown:
ERROR [localhost-startStop-8] [ContextLoader] Context initialization failed
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: CatalogVersion with catalogId '_boconfig' and version 'hidden' not found!
Note: At this point HAC was also not accessible.
Fix:
3. Removed backoffice extension, build, started server and imported the impex from the path: backoffice/resources/impex/essentialDataBackofficeMediaCatalog.impex
4. And then included backoffice extension, system update and both HAC and backoffice was working fine.
Hope this might be helpful!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are experiencing this same issue in 2005.1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello preethij,
I have the same problem in 2005.
But I couldn't apply your solution. I tried deleting "hybris/bin/modules/backoffice-framework/" and updating my localextension.xml file. But I keep getting a lot of errors during ant clean, like:
Edit:
I can't start backoffice or hac, because of "_boconfig catalogversion not found!" error.
When I try ant updatesystem. I get this error:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am having the same issue on SCC with 2005.1 and 2005.2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are having the same issue on the server startup in the 2005.1 and we are not even able to open hac!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi it seems in 2005.1 we are facing the same issue and the Fix mentioned above is not there... as well as we are now receiving an issue now with getSupportedLanguagesPkList hybris Exception as well... Did you have any luck to fix it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
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.