blPU.hibernate.hbm2ddl.import_files_sql_extractor

Forum for questions and issues related to 3.0 migration.

Those wishing to upgrade should start by looking at the migration documents published on the Broadleaf Commerce documentation site.

Moderator: jocanas

pokemon007
Intermediate
Intermediate
Posts: 122
Joined: Sat Mar 31, 2012 2:51 pm

blPU.hibernate.hbm2ddl.import_files_sql_extractor

Postby pokemon007 » Thu Dec 26, 2013 8:27 pm

I encounter following error while trying to upgrade to 3.1.0 from 2.0.1 (using 2.0 to 3.0.6 migration guide). I don't see any properties file that has blPU.hibernate.hbm2ddl.import_files_sql_extractor defined in demo source or broadleaf platform, and I've tried to add a dummy value of blPU.hibernate.hbm2ddl.import_files_sql_extractor, but it won't help. Can anyone throw some light here?

Thanks.

[ERROR] 16:46:41 ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in resource loaded from byte array: Cannot resolve reference to bean 'blPersistenceUnitManager' while setting bean property 'persistenceUnitManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPersistenceUnitManager' defined in resource loaded from byte array: Cannot resolve reference to bean 'blPersistenceUnitPostProcessors' while setting bean property 'persistenceUnitPostProcessors'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPersistenceUnitPostProcessors' defined in resource loaded from byte array: Cannot create inner bean 'org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor#4e857327' of type [org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor#4e857327': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected java.lang.String org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor.blPUHibernateHbm2ddlImport_files_sql_extractor; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'blPU.hibernate.hbm2ddl.import_files_sql_extractor' in string value "${blPU.hibernate.hbm2ddl.import_files_sql_extractor}"
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1393)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:922)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.broadleafcommerce.common.web.extensibility.MergeContextLoaderListener.contextInitialized(MergeContextLoaderListener.java:50)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPersistenceUnitManager' defined in resource loaded from byte array: Cannot resolve reference to bean 'blPersistenceUnitPostProcessors' while setting bean property 'persistenceUnitPostProcessors'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPersistenceUnitPostProcessors' defined in resource loaded from byte array: Cannot create inner bean 'org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor#4e857327' of type [org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor#4e857327': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected java.lang.String org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor.blPUHibernateHbm2ddlImport_files_sql_extractor; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'blPU.hibernate.hbm2ddl.import_files_sql_extractor' in string value "${blPU.hibernate.hbm2ddl.import_files_sql_extractor}"
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1393)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
... 40 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blPersistenceUnitPostProcessors' defined in resource loaded from byte array: Cannot create inner bean 'org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor#4e857327' of type [org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor] while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor#4e857327': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected java.lang.String org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor.blPUHibernateHbm2ddlImport_files_sql_extractor; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'blPU.hibernate.hbm2ddl.import_files_sql_extractor' in string value "${blPU.hibernate.hbm2ddl.import_files_sql_extractor}"
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:121)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1393)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
... 50 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor#4e857327': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected java.lang.String org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor.blPUHibernateHbm2ddlImport_files_sql_extractor; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'blPU.hibernate.hbm2ddl.import_files_sql_extractor' in string value "${blPU.hibernate.hbm2ddl.import_files_sql_extractor}"
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271)
... 62 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected java.lang.String org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor.blPUHibernateHbm2ddlImport_files_sql_extractor; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'blPU.hibernate.hbm2ddl.import_files_sql_extractor' in string value "${blPU.hibernate.hbm2ddl.import_files_sql_extractor}"
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:514)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
... 66 more
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'blPU.hibernate.hbm2ddl.import_files_sql_extractor' in string value "${blPU.hibernate.hbm2ddl.import_files_sql_extractor}"
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:173)

phillipuniverse
Team Member
Team Member
Posts: 1563
Joined: Tue Dec 20, 2011 12:11 pm

Re: blPU.hibernate.hbm2ddl.import_files_sql_extractor

Postby phillipuniverse » Sat Dec 28, 2013 1:58 am

Did this use to exist in one of your projects properties files? Does that occur anywhere in the entire project?

It could be a factor of not doing a full maven build. If that had existed in the core project and you did not rebuild, it would not have been picked up properly in the web application.

pokemon007
Intermediate
Intermediate
Posts: 122
Joined: Sat Mar 31, 2012 2:51 pm

Re: blPU.hibernate.hbm2ddl.import_files_sql_extractor

Postby pokemon007 » Sat Dec 28, 2013 3:07 am

This property doesn't exist in my previous project with BLC 2.0.1, and I did clean build. This was referenced by BLC 3.0

org.broadleafcommerce.common.extensibility.jpa.JPAPropertiesPersistenceUnitPostProcessor:
@Value("${blCMSStorage.hibernate.hbm2ddl.import_files_sql_extractor}")
protected String blCMSStorageHibernateHbm2ddlImport_files_sql_extractor;

In BLC 2.0.1 it uses
@Value("${blPU.hibernate.hbm2ddl.import_files}")
protected String blPUHibernateHbm2ddlImport_files;

Don't know what I should configure this.

Thank you!

-Charlie

pokemon007
Intermediate
Intermediate
Posts: 122
Joined: Sat Mar 31, 2012 2:51 pm

Re: blPU.hibernate.hbm2ddl.import_files_sql_extractor

Postby pokemon007 » Wed Feb 19, 2014 3:12 am

I still have this problem. Anyone know what blPU.hibernate.hbm2ddl.import_files_sql_extractor is for and how to correctly set the string?

Code: Select all

@PostConstruct
public void populatePresetProperties() {

if (!blPUHibernateHbm2ddlImport_files_sql_extractor.startsWith("${"))          persistenceUnitProperties.put("blPU.hibernate.hbm2ddl.import_files_sql_extractor", blPUHibernateHbm2ddlImport_files_sql_extractor);


Appreciate it!

-Charlie


Return to “3.0 Upgrade and Migration”

Who is online

Users browsing this forum: No registered users and 1 guest