DB2 Hibernate 查询 SQLCODE: -418, SQLSTATE: 42610, SQLERRMC: null
环境是 tomcat+DB2 9.510:21:44.083 DEBUG o.h.hql.ast.util.JoinProcessor - Using FROM fragment
10:21:44.083 DEBUG o.h.hql.antlr.HqlSqlBaseWalker - select >> end
10:21:44.083 DEBUG org.hibernate.hql.ast.AST - --- SQL AST ---
\- QueryNode: 'SELECT'querySpaces (flow)
+- SelectClause: '{select clause}'
|\- ConstructorNode: '('
| +- IdentNode: 'map' {originalText=map}
| +- DotNode: 'flow0_.pin' {propertyName=pin,dereferenceType=4,propertyPath=pin,path=f.pin,tableAlias=flow0_,className=com.techown.proxy.entity.Flow,classAlias=f}
| |+- IdentNode: 'flow0_.flowId' {alias=f, className=com.techown.proxy.entity.Flow, tableAlias=flow0_}
| |\- IdentNode: 'pin' {originalText=pin}
| +- SqlNode: ' as col_0_0_'
| +- DotNode: 'flow0_.pushCode' {propertyName=pushCode,dereferenceType=4,propertyPath=pushCode,path=f.pushCode,tableAlias=flow0_,className=com.techown.proxy.entity.Flow,classAlias=f}
| |+- IdentNode: 'flow0_.flowId' {alias=f, className=com.techown.proxy.entity.Flow, tableAlias=flow0_}
| |\- IdentNode: 'pushCode' {originalText=pushCode}
| \- SqlNode: ' as col_1_0_'
+- FromClause: 'FROM' FromClause{level=1, fromElementCounter=1, fromElements=1, fromElementByClassAlias=, fromElementByTableAlias=, fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
|\- FromElement: 'flow flow0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=f,role=null,tableName=flow,tableAlias=flow0_,origin=null,colums={,className=com.techown.proxy.entity.Flow}}
\- SqlNode: 'WHERE'
\- SqlNode: 'AND'
+- SqlNode: 'AND'
|+- BetweenOperatorNode: 'between'
||+- DotNode: 'flow0_.createTime' {propertyName=createTime,dereferenceType=4,propertyPath=createTime,path=f.createTime,tableAlias=flow0_,className=com.techown.proxy.entity.Flow,classAlias=f}
|||+- IdentNode: 'flow0_.flowId' {alias=f, className=com.techown.proxy.entity.Flow, tableAlias=flow0_}
|||\- IdentNode: 'createTime' {originalText=createTime}
||+- ParameterNode: '?' {ordinal=0, expectedType=org.hibernate.type.TimestampType@e890d3}
||\- ParameterNode: '?' {ordinal=1, expectedType=org.hibernate.type.TimestampType@e890d3}
|\- SqlNode: 'OR'
| +- BinaryLogicOperatorNode: '='
| |+- DotNode: 'flow0_.status' {propertyName=status,dereferenceType=4,propertyPath=status,path=f.status,tableAlias=flow0_,className=com.techown.proxy.entity.Flow,classAlias=f}
| ||+- IdentNode: 'flow0_.flowId' {alias=f, className=com.techown.proxy.entity.Flow, tableAlias=flow0_}
| ||\- IdentNode: 'status' {originalText=status}
| |\- ParameterNode: '?' {ordinal=2, expectedType=org.hibernate.type.IntegerType@1c22e0}
| \- BinaryLogicOperatorNode: '='
| +- DotNode: 'flow0_.status' {propertyName=status,dereferenceType=4,propertyPath=status,path=f.status,tableAlias=flow0_,className=com.techown.proxy.entity.Flow,classAlias=f}
| |+- IdentNode: 'flow0_.flowId' {alias=f, className=com.techown.proxy.entity.Flow, tableAlias=flow0_}
| |\- IdentNode: 'status' {originalText=status}
| \- ParameterNode: '?' {ordinal=3, expectedType=org.hibernate.type.IntegerType@1c22e0}
\- SqlNode: 'AND'
+- BinaryLogicOperatorNode: '='
|+- MethodNode: '('
||+- IdentNode: 'lower' {originalText=lower}
||\- SqlNode: 'exprList'
|| \- DotNode: 'flow0_.osType' {propertyName=osType,dereferenceType=4,propertyPath=osType,path=f.osType,tableAlias=flow0_,className=com.techown.proxy.entity.Flow,classAlias=f}
|| +- IdentNode: 'flow0_.flowId' {alias=f, className=com.techown.proxy.entity.Flow, tableAlias=flow0_}
|| \- IdentNode: 'osType' {originalText=osType}
|\- MethodNode: '('
| +- IdentNode: 'lower' {originalText=lower}
| \- SqlNode: 'exprList'
| \- ParameterNode: '?' {ordinal=4, expectedType=null}
\- BinaryLogicOperatorNode: '<='
+- DotNode: 'flow0_.pushTime' {propertyName=pushTime,dereferenceType=4,propertyPath=pushTime,path=f.pushTime,tableAlias=flow0_,className=com.techown.proxy.entity.Flow,classAlias=f}
|+- IdentNode: 'flow0_.flowId' {alias=f, className=com.techown.proxy.entity.Flow, tableAlias=flow0_}
|\- IdentNode: 'pushTime' {originalText=pushTime}
\- ParameterNode: '?' {name=date, expectedType=org.hibernate.type.TimestampType@e890d3}
10:21:44.083 DEBUG org.hibernate.hql.ast.ErrorCounter - throwQueryException() : no errors
10:21:44.084 DEBUG o.h.hql.ast.QueryTranslatorImpl - HQL: SELECT new map(f.pin,f.pushCode) FROM com.techown.proxy.entity.Flow as f WHERE (f.createTime between ? AND ? ) AND(f.status=? OR f.status=?) AND (lower(f.osType)=lower(?) AND (f.pushTime <=:date))
10:21:44.084 DEBUG o.h.hql.ast.QueryTranslatorImpl - SQL: select flow0_.pin as col_0_0_, flow0_.pushCode as col_1_0_ from flow flow0_ where (flow0_.createTime between ? and ?) and (flow0_.status=? or flow0_.status=?) and lower(flow0_.osType)=lower(?) and flow0_.pushTime<=?
10:21:44.084 DEBUG org.hibernate.hql.ast.ErrorCounter - throwQueryException() : no errors
- Retrieved value for key bound to thread
10:21:44.084 DEBUG org.hibernate.jdbc.AbstractBatcher - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
10:21:44.084 DEBUG org.hibernate.SQL - select flow0_.pin as col_0_0_, flow0_.pushCode as col_1_0_ from flow flow0_ where (flow0_.createTime between ? and ?) and (flow0_.status=? or flow0_.status=?) and lower(flow0_.osType)=lower(?) and flow0_.pushTime<=?
- com.mchange.v2.c3p0.impl.NewPooledConnection@6470a6 handling a throwable.
com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -418, SQLSTATE: 42610, SQLERRMC: null
at com.ibm.db2.jcc.b.hh.c(hh.java:1662)
at com.ibm.db2.jcc.b.hh.d(hh.java:1650)
at com.ibm.db2.jcc.b.hh.a(hh.java:1219)
at com.ibm.db2.jcc.c.db.g(db.java:139)
at com.ibm.db2.jcc.c.db.a(db.java:39)
at com.ibm.db2.jcc.c.t.a(t.java:34)
at com.ibm.db2.jcc.c.sb.f(sb.java:142)
at com.ibm.db2.jcc.b.hh.n(hh.java:1190)
at com.ibm.db2.jcc.b.ih.eb(ih.java:1997)
at com.ibm.db2.jcc.b.ih.d(ih.java:2439)
at com.ibm.db2.jcc.b.ih.V(ih.java:492)
at com.ibm.db2.jcc.b.ih.executeQuery(ih.java:475)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:116)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1808)
at org.hibernate.loader.Loader.doQuery(Loader.java:697)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2228)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at com.techown.proxy.dao.PushDaoImpl$3.doInHibernate(PushDaoImpl.java:117)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at com.techown.proxy.dao.PushDaoImpl.queryAndroidPushByTime(PushDaoImpl.java:101)
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:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy4.queryAndroidPushByTime(Unknown Source)
at com.techown.server.dao.DataManagerImpl.getPushListForPush(DataManagerImpl.java:201)
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:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy19.getPushListForPush(Unknown Source)
at com.techown.server.scheduler.service.secondary.CommandPushPorcess.doProcess(CommandPushPorcess.java:24)
at com.techown.server.scheduler.service.secondary.ResultHandlerContext.doProcess(ResultHandlerContext.java:45)
at com.techown.server.scheduler.service.secondary.ResultHandlerContext$$FastClassByCGLIB$$7baefe8.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at com.techown.server.scheduler.service.secondary.ResultHandlerContext$$EnhancerByCGLIB$$40f3b5f9.doProcess(<generated>)
at com.techown.server.scheduler.service.CommandProcessServiceImpl.doPush(CommandProcessServiceImpl.java:46)
at com.techown.server.scheduler.service.CommandProcessServiceImpl.commandProcess(CommandProcessServiceImpl.java:35)
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:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy30.commandProcess(Unknown Source)
at com.techown.server.scheduler.CommmandHandleJob.executeInternal(CommmandHandleJob.java:41)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
- Attempted to convert SQLException to SQLException. Leaving it alone.
com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -418, SQLSTATE: 42610, SQLERRMC: null
at com.ibm.db2.jcc.b.hh.c(hh.java:1662)
at com.ibm.db2.jcc.b.hh.d(hh.java:1650)
at com.ibm.db2.jcc.b.hh.a(hh.java:1219)
at com.ibm.db2.jcc.c.db.g(db.java:139)
at com.ibm.db2.jcc.c.db.a(db.java:39)
at com.ibm.db2.jcc.c.t.a(t.java:34)
at com.ibm.db2.jcc.c.sb.f(sb.java:142)
at com.ibm.db2.jcc.b.hh.n(hh.java:1190)
at com.ibm.db2.jcc.b.ih.eb(ih.java:1997)
at com.ibm.db2.jcc.b.ih.d(ih.java:2439)
at com.ibm.db2.jcc.b.ih.V(ih.java:492)
at com.ibm.db2.jcc.b.ih.executeQuery(ih.java:475)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:116)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1808)
at org.hibernate.loader.Loader.doQuery(Loader.java:697)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2228)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at com.techown.proxy.dao.PushDaoImpl$3.doInHibernate(PushDaoImpl.java:117)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at com.techown.proxy.dao.PushDaoImpl.queryAndroidPushByTime(PushDaoImpl.java:101)
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:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy4.queryAndroidPushByTime(Unknown Source)
at com.techown.server.dao.DataManagerImpl.getPushListForPush(DataManagerImpl.java:201)
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:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy19.getPushListForPush(Unknown Source)
at com.techown.server.scheduler.service.secondary.CommandPushPorcess.doProcess(CommandPushPorcess.java:24)
at com.techown.server.scheduler.service.secondary.ResultHandlerContext.doProcess(ResultHandlerContext.java:45)
at com.techown.server.scheduler.service.secondary.ResultHandlerContext$$FastClassByCGLIB$$7baefe8.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
at com.techown.server.scheduler.service.secondary.ResultHandlerContext$$EnhancerByCGLIB$$40f3b5f9.doProcess(<generated>)
at com.techown.server.scheduler.service.CommandProcessServiceImpl.doPush(CommandProcessServiceImpl.java:46)
at com.techown.server.scheduler.service.CommandProcessServiceImpl.commandProcess(CommandProcessServiceImpl.java:35)
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:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy30.commandProcess(Unknown Source)
at com.techown.server.scheduler.CommmandHandleJob.executeInternal(CommmandHandleJob.java:41)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
首先在网上查找了一下 SQLCODE: -418, SQLSTATE: 42610, SQLERRMC: null 状态码,没有很好的提示。
然后根据报错的类,反编译了代码来看,后来发现 at org.hibernate.engine.query.HQLQueryPlan.performList HQL 解析成为 SQL时出错了(其实仔细看上面能够看得出)
这个HQL 转义成SQL 时出问题了。
SELECT new map(f.pin,f.pushCode) FROM com.techown.proxy.entity.Flow as f WHERE (f.createTime between ? AND ? ) AND(f.status=? OR f.status=?) AND (lower(f.osType)=lower(?) AND (f.pushTime <=:date))
仔细检查发现lower(f.osType)=lower(?)有问题,因此修改为lower(f.osType)=?
问题解决
页:
[1]