javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement at org.hibernate.ejb.AbstractEntityManagerImpl.conver t(AbstractEntityManagerImpl.java:1387) at org.hibernate.ejb.AbstractEntityManagerImpl.conver t(AbstractEntityManagerImpl.java:1310) at org.hibernate.ejb.AbstractEntityManagerImpl.throwP ersistenceException(AbstractEntityManagerImpl.java :1397) at org.hibernate.ejb.AbstractQueryImpl.executeUpdate( AbstractQueryImpl.java:108) at com.cloudera.cmf.persist.DbCommandDao2.hardStopAct iveCommands(DbCommandDao2.java:644) at com.cloudera.server.cmf.bootstrap.EntityManagerFac toryBean.hardStopActiveCommands(EntityManagerFacto ryBean.java:233) at com.cloudera.server.cmf.bootstrap.EntityManagerFac toryBean.ensureNoActiveCommandsDuringUpgrade(Entit yManagerFactoryBean.java:182) at com.cloudera.server.cmf.bootstrap.EntityManagerFac toryBean.getObject(EntityManagerFactoryBean.java:1 23) at com.cloudera.server.cmf.bootstrap.EntityManagerFac toryBean.getObject(EntityManagerFactoryBean.java:6 4) at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.doGetObjectFromFactoryBean(Fact oryBeanRegistrySupport.java:142) at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.getObjectFromFactoryBean(Factor yBeanRegistrySupport.java:102) at org.springframework.beans.factory.support.Abstract BeanFactory.getObjectForBeanInstance(AbstractBeanF actory.java:1440) at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:247 ) at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:322) at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:106) at org.springframework.beans.factory.support.Construc torResolver.resolveConstructorArguments(Constructo rResolver.java:616) at org.springframework.beans.factory.support.Construc torResolver.autowireConstructor(ConstructorResolve r.java:148) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:1003) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBeanInstance(Abst ractAutowireCapableBeanFactory.java:907) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 93) at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222) at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:290 ) at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:895) at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:425)


Solutions on the web9

Solution icon of web
.hardStopAct iveCommands(DbCommandDao2.java:644) at com.cloudera.server.cmf.bootstrap.EntityManagerFac toryBean.hardStopActiveCommands(EntityManagerFacto ryBean.java:233) at com.cloudera.server.cmf.bootstrap.EntityManagerFac

Solution icon of web
org.hibernate.exception.GenericJDBCException: Could not open connection at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:328) at

Solution icon of web
org.hibernate.exception.GenericJDBCException: Could not open connection at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:328) at

Solution icon of web
org.hibernate.exception.GenericJDBCException: Could not open connection at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:328) at

Solution icon of web
via cloudera.com by Unknown author, 1 year ago
org.hibernate.exception.GenericJDBCException: Could not open connection at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:328) at

Solution icon of web
towireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject

Solution icon of web
via cloudera.com by Unknown author, 1 year ago
towireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject

Solution icon of web
towireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject

Solution icon of web
towireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject

Stack trace

javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement
at org.hibernate.ejb.AbstractEntityManagerImpl.conver
t(AbstractEntityManagerImpl.java:1387)
at org.hibernate.ejb.AbstractEntityManagerImpl.conver
t(AbstractEntityManagerImpl.java:1310)
at org.hibernate.ejb.AbstractEntityManagerImpl.throwP
ersistenceException(AbstractEntityManagerImpl.java
:1397)
at org.hibernate.ejb.AbstractQueryImpl.executeUpdate(
AbstractQueryImpl.java:108)
at com.cloudera.cmf.persist.DbCommandDao2.hardStopAct
iveCommands(DbCommandDao2.java:644)
at com.cloudera.server.cmf.bootstrap.EntityManagerFac
toryBean.hardStopActiveCommands(EntityManagerFacto
ryBean.java:233)
at com.cloudera.server.cmf.bootstrap.EntityManagerFac
toryBean.ensureNoActiveCommandsDuringUpgrade(Entit
yManagerFactoryBean.java:182)
at com.cloudera.server.cmf.bootstrap.EntityManagerFac
toryBean.getObject(EntityManagerFactoryBean.java:1
23)
at com.cloudera.server.cmf.bootstrap.EntityManagerFac
toryBean.getObject(EntityManagerFactoryBean.java:6
4)
at org.springframework.beans.factory.support.FactoryB
eanRegistrySupport.doGetObjectFromFactoryBean(Fact
oryBeanRegistrySupport.java:142)
at org.springframework.beans.factory.support.FactoryB
eanRegistrySupport.getObjectFromFactoryBean(Factor
yBeanRegistrySupport.java:102)
at org.springframework.beans.factory.support.Abstract
BeanFactory.getObjectForBeanInstance(AbstractBeanF
actory.java:1440)
at org.springframework.beans.factory.support.Abstract
BeanFactory.doGetBean(AbstractBeanFactory.java:247
)
at org.springframework.beans.factory.support.Abstract
BeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.BeanDefi
nitionValueResolver.resolveReference(BeanDefinitio
nValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefi
nitionValueResolver.resolveValueIfNecessary(BeanDe
finitionValueResolver.java:106)
at org.springframework.beans.factory.support.Construc
torResolver.resolveConstructorArguments(Constructo
rResolver.java:616)
at org.springframework.beans.factory.support.Construc
torResolver.autowireConstructor(ConstructorResolve
r.java:148)
at org.springframework.beans.factory.support.Abstract
AutowireCapableBeanFactory.autowireConstructor(Abs
tractAutowireCapableBeanFactory.java:1003)
at org.springframework.beans.factory.support.Abstract
AutowireCapableBeanFactory.createBeanInstance(Abst
ractAutowireCapableBeanFactory.java:907)
at org.springframework.beans.factory.support.Abstract
AutowireCapableBeanFactory.doCreateBean(AbstractAu
towireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.Abstract
AutowireCapableBeanFactory.createBean(AbstractAuto
wireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.Abstract
BeanFactory$1.getObject(AbstractBeanFactory.java:2
93)
at org.springframework.beans.factory.support.DefaultS
ingletonBeanRegistry.getSingleton(DefaultSingleton
BeanRegistry.java:222)
at org.springframework.beans.factory.support.Abstract
BeanFactory.doGetBean(AbstractBeanFactory.java:290
)
at org.springframework.beans.factory.support.Abstract
BeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultL
istableBeanFactory.preInstantiateSingletons(Defaul
tListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplic
ationContext.finishBeanFactoryInitialization(Abstr
actApplicationContext.java:895)
at org.springframework.context.support.AbstractApplic
ationContext.refresh(AbstractApplicationContext.ja
va:425)
	at com.cloudera.server.cmf.Main.bootstrapSpringContext(Main.java:387)
	at com.cloudera.server.cmf.Main.<init>(Main.java:242)
	at com.cloudera.server.cmf.Main.main(Main.java:216)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.