傲慢:6.6.0.12
MySQL的:42年6月5日
MySQL数据库驱动程序:44年5月1日
当我的本地机器上初始化,我得到一个“无法找到数据库源表‘道具’”的错误。我试着删除DB模式,创建一个新的,做一个平台初始化,但同样的错误发生。
以下记录:
[java] shutting down hybris registry..
[java] Exception in thread "main" java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:498)
[java] at de.hybris.bootstrap.loader.Loader.execute(Loader.java:142)
[java] at de.hybris.bootstrap.loader.Loader.main(Loader.java:118)
[java] Caused by: java.lang.IllegalArgumentException: Can't find source table 'props' in database.
[java] at de.hybris.bootstrap.ddl.tools.TablesStructureCopier.requireValidTablesMapping(TablesStructureCopier.java:52)
[java] at de.hybris.bootstrap.ddl.tools.TablesStructureCopier.getCopyStatements(TablesStructureCopier.java:36)
[java] at de.hybris.bootstrap.ddl.tools.MigrateTypeSystemProps.createTypeSystemPropsTable(MigrateTypeSystemProps.java:67)
[java] at de.hybris.bootstrap.ddl.tools.MigrateTypeSystemProps.getStatementsToExecute(MigrateTypeSystemProps.java:57)
[java] at de.hybris.bootstrap.ddl.tools.TypeSystemHelper.assureTypeSystemStructureIsUpToDate(TypeSystemHelper.java:123)
[java] at de.hybris.platform.core.AbstractTenant.assureTypeSystemStructureIsUpToDate(AbstractTenant.java:827)
[java] at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:735)
[java] at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:683)
[java] at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:657)
[java] at de.hybris.platform.core.Registry.activateTenant(Registry.java:718)
[java] at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:565)
[java] at de.hybris.platform.core.Registry.activateMasterTenantForInit(Registry.java:634)
[java] at de.hybris.platform.util.ClientExecuter.execute(ClientExecuter.java:39)
[java] ... 6 more
[java] INFO [Thread-0] [HybrisContextFactory] Loading <<global>> spring config from extension (core) located in (global-core-spring.xml,core-cache.xml,global-servicelayer-spring.xml,global-core-jmx-spring.xml,global-statistics-spring.xml) took: (398.7 ms)
[java] INFO [Thread-0] [HybrisContextFactory] Loading <<global>> spring config from extension (solrfacetsearch) located in (global-solrfacetsearch-spring.xml) took: (53.91 ms)
[java] INFO [Thread-0] [HybrisContextFactory] Loading <<global>> spring config from extension (cockpit) located in (global-cockpit-spring.xml) took: (38.67 ms)
[java] INFO [Thread-0] [HybrisContextFactory] - Refreshing SpringContext (Global context) took: (556.6 ms)
[java] INFO [Thread-0] [HybrisContextFactory] Initializing <<global>> Spring ApplicationContext took: (2.072 s)
[java] error notifying tenant listener : ListableBeanFactory must not be null
[java] java.lang.IllegalArgumentException: ListableBeanFactory must not be null
[java] at org.springframework.util.Assert.notNull(Assert.java:134)
[java] at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:287)
[java] at de.hybris.platform.jmx.MBeanRegisterUtilities.refreshMBeans(MBeanRegisterUtilities.java:157)
[java] at de.hybris.platform.jmx.MBeanRegisterUtilities.getRegisteredBeans(MBeanRegisterUtilities.java:134)
[java] at de.hybris.platform.core.JMXBeanLoader.beforeTenantShutDown(JMXBeanLoader.java:116)
[java] at de.hybris.platform.core.AbstractTenant.notifyTenantListenersBeforeShutdown(AbstractTenant.java:1266)
[java] at de.hybris.platform.core.AbstractTenant.doShutdown(AbstractTenant.java:947)
[java] at de.hybris.platform.core.AbstractTenant.doShutDown(AbstractTenant.java:908)
[java] at de.hybris.platform.core.Registry.destroy(Registry.java:330)
[java] at de.hybris.platform.util.RedeployUtilities.shutdown(RedeployUtilities.java:75)
[java] at de.hybris.platform.util.RedeployUtilities$1.internalRun(RedeployUtilities.java:39)
[java] at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:135)
[java] INFO [Thread-0] [EHCacheRegion] EHCacheRegion entityCacheRegion, eviction policy FIFO, size 200000
[java] INFO [Thread-0] [EHCacheRegion] EHCacheRegion queryCacheRegion, eviction policy FIFO, size 40000
[java] INFO [Thread-0] [EHCacheRegion] EHCacheRegion sessionCacheRegion, eviction policy LRU, size 50000
[java] INFO [Thread-0] [DefaultCacheController] Regioncache initialized with region count 7
[java] INFO [Thread-0] [DefaultCacheController] Cache region: Name: typesystemCacheRegion, size: 0, types: [81, 82, 83, 84, 87], statistics: true, class: class de.hybris.platform.regioncache.region.impl.UnlimitedCacheRegion
[java] INFO [Thread-0] [DefaultCacheController] Cache region: Name: entityCacheRegion, size: 200000, types: [__ALL_TYPES__, __NO_QUERY__], exclusive computation: false, statistics: true, class: class de.hybris.platform.regioncache.region.impl.EHCacheRegion
[java] INFO [Thread-0] [DefaultCacheController] Cache region: Name: queryCacheRegion, size: 40000, types: [__QUERY_CACHE__], exclusive computation: false, statistics: true, class: class de.hybris.platform.regioncache.region.impl.EHCacheRegion
[java] INFO [Thread-0] [DefaultCacheController] Cache region: Name: mediaCacheRegion, size: 0, types: [__MEDIA__cache], statistics: true, class: class de.hybris.platform.media.storage.impl.MediaCacheRegion
[java] INFO [Thread-0] [DefaultCacheController] Cache region: Name: scriptsCacheRegion, size: 0, types: [__SCRIPT__], statistics: true, class: class de.hybris.platform.scripting.engine.internal.cache.impl.ScriptsCacheRegion
[java] INFO [Thread-0] [DefaultCacheController] Cache region: Name: sessionCacheRegion, size: 50000, types: [__SESSION__], exclusive computation: false, statistics: true, class: class de.hybris.platform.regioncache.region.impl.EHCacheRegion
[java] INFO [Thread-0] [DefaultCacheController] Cache region: Name: facetSearchConfigCacheRegion, size: 0, types: [__FACET_SEARCH_CONFIG__], statistics: true, class: class de.hybris.platform.solrfacetsearch.config.cache.impl.FacetSearchConfigCacheRegion
[java] INFO [Thread-0] [DefaultCacheController] Registered Listener RegionCacheAdapter(1206648899) - <<master>> on cache controller. Currently registered 1
[java] WARN [Thread-0] [RegionCacheAdapter] Check licence skipped since system is already shutting down
[java] INFO [Thread-0] [DefaultCacheController] Removed listener from cache controller. Currently registered 0
[java] INFO [Thread-0] [DefaultClusterNodeManagementService] Unregistering assigned cluster node id 0...
BUILD FAILED
C:\HY66_12\hybris\bin\platform\build.xml:123: The following error occurred while executing this line:
C:\HY66_12\hybris\bin\platform\resources\ant\antmacros.xml:1026: The following error occurred while executing this line:
C:\HY66_12\hybris\bin\platform\resources\ant\platformadministration.xml:51: The following error occurred while executing this line:
C:\HY66_12\hybris\bin\platform\resources\ant\antmacros.xml:883: Java returned: 1
该问题被暂时固定。我说:“暂时”的,因为我还没有找到根本原因呢。
其他背景:我们迁移到6.6款Hybris(从5.7款Hybris),和我用同样的local.properties从5.7款Hybris。当我用我同事的local.properties,平台初始化成功。所以,我的猜测是,有可能是从我的旧local.properties财产造成的“道具”的问题。
我现在没有时间去检查,但我会在后面进一步调查。 (希望更新这个答案也)
有解决类似的问题。您可能会遇到:
ant initialize -DdryRun=true
然后采取从输出:$HYBRIS_HOME/hybris/temp/hybris/init_master_schema.sql
,用它来手动创建适当的数据库架构,然后再尝试运行
ant initialize
再次。有了正确的表已经存在的,它不应该抱怨“道具”表了。
编辑:另外还有在local.properties禁用系统初始化属性:
# Prevent init
system.unlocking.disabled=true
请确保此行是注释掉,删除或值设置为“假”。