A HQL keyword member (non-MySQL) caused by VO Data Save database error

Source: Internet
Author: User
Tags aop

2015-03-19 14:16:29,285 ERROR [Thread-3] (daohelper.java:312)-Updatebyentitypk:[email protected]
Java.lang.ClassCastException:Org.hibernate.hql.ast.tree.SqlNode cannot is cast to Org.hibernate.hql.ast.tree.FromReferenceNode
At Org.hibernate.hql.ast.HqlSqlWalker.generateSyntheticDotNodeForNonQualifiedPropertyRef (hqlsqlwalker.java:495)
At Org.hibernate.hql.ast.HqlSqlWalker.lookupNonQualifiedProperty (hqlsqlwalker.java:488)
At Org.hibernate.hql.antlr.HqlSqlBaseWalker.propertyRef (hqlsqlbasewalker.java:1102)
At Org.hibernate.hql.antlr.HqlSqlBaseWalker.assignment (hqlsqlbasewalker.java:1008)
At Org.hibernate.hql.antlr.HqlSqlBaseWalker.setClause (hqlsqlbasewalker.java:729)
At Org.hibernate.hql.antlr.HqlSqlBaseWalker.updateStatement (hqlsqlbasewalker.java:349)
At Org.hibernate.hql.antlr.HqlSqlBaseWalker.statement (hqlsqlbasewalker.java:237)
At Org.hibernate.hql.ast.QueryTranslatorImpl.analyze (querytranslatorimpl.java:228)
At Org.hibernate.hql.ast.QueryTranslatorImpl.doCompile (querytranslatorimpl.java:160)
At Org.hibernate.hql.ast.QueryTranslatorImpl.compile (querytranslatorimpl.java:111)
At Org.hibernate.engine.query.hqlqueryplan.<init> (hqlqueryplan.java:77)
At Org.hibernate.engine.query.hqlqueryplan.<init> (hqlqueryplan.java:56)
At Org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan (queryplancache.java:72)
At Org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan (abstractsessionimpl.java:133)
At Org.hibernate.impl.AbstractSessionImpl.createQuery (abstractsessionimpl.java:112)
At Org.hibernate.impl.SessionImpl.createQuery (sessionimpl.java:1623)
At Org.hibernate.ejb.AbstractEntityManagerImpl.createQuery (abstractentitymanagerimpl.java:93)
At Sun.reflect.GeneratedMethodAccessor705.invoke (Unknown Source)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:25)
At Java.lang.reflect.Method.invoke (method.java:597)
At Org.springframework.orm.jpa.sharedentitymanagercreator$sharedentitymanagerinvocationhandler.invoke ( sharedentitymanagercreator.java:240)
At $Proxy 22.createQuery (Unknown Source)
At Com.agileeagle.dao.core.support.HibernateBeanHelper.updateByPK (hibernatebeanhelper.java:294)
At Com.agileeagle.dao.core.DAOHelper.updateByEntityPK (daohelper.java:308)
At Com.agileeagle.webgame.game.service.imp.CacheService.updateEntityList (cacheservice.java:60)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection (aoputils.java:309)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint (Reflectivemethodinvocation.java : 183)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:150)
At Org.springframework.transaction.interceptor.TransactionInterceptor.invoke (transactioninterceptor.java:110)
At Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (reflectivemethodinvocation.java:172)
At Org.springframework.aop.framework.JdkDynamicAopProxy.invoke (jdkdynamicaopproxy.java:202)
At $Proxy 28.updateEntityList (Unknown Source)
At Com.agileeagle.webgame.game.service.imp.CacheStore.updateEntityList0 (cachestore.java:90)
At Com.agileeagle.webgame.game.service.imp.CacheStore.updateEntityList (cachestore.java:120)
At Com.agileeagle.webgame.framework.cache.AbstractPersistCache.persist (abstractpersistcache.java:432)
At Com.agileeagle.webgame.game.cache.imp.UnionCache.persist (unioncache.java:515)
At Com.agileeagle.webgame.game.debuggameserver$debugthread.persist (debuggameserver.java:150)
At Com.agileeagle.webgame.game.debuggameserver$debugthread.run (debuggameserver.java:66)
2015-03-19 14:16:29,296 ERROR [Thread-3] (cacheservice.java:66)-BATCH UPDATE class Com.agileeagle.dao.webgame.entity.UnionInfo set:[{"Build": 1800, "Dissolvesec": 0, "leader": 80001 ...

---"Above is the Three Kingdoms Corps object to save the database when the exception occurred, after constant testing, the original is HQL keyword exception, that is, my regiment used the member as a member property, and member is just the keyword in hql, so save error occurred exception. In the course of testing, the original is the MySQL keyword exception, the result of testing is not, but the HQL keyword exception.

A HQL keyword member (non-MySQL) caused by VO Data Save database error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.