重点是Sql有错误吗!!!
getCount
可执行SQL:
select count(m.id) from WebIlogTradeMessage m left join m.webPlyBase p where 1=1 and m.createTime>= to_date('2017-11-01 00:00:00','yyyy-MM-dd hh24:mi:ss') and m.createTime< to_date('2017-11-16 00:00:00','yyyy-MM-dd hh24:mi:ss') and m.obligateTwo is not null and m.obligateOne = 'send' and p.plyNo='3'
<2017-11-15 上午11时54分38秒 CST> <Error> <HTTP> <BEA-101017> <[ServletContext@1644069291[app:ais module:ais.war path:/ais spec-version:2.5]] Root cause of ServletException.
org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2216)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
Truncated. see log file for complete stacktrace
Caused By: java.sql.SQLException: ORA-12154: TNS: 无法解析指定的连接标识符
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
Truncated. see log file for complete stacktrace
9 个解决方案
从错误日志上看,是jdbc的连接串配置错了。
1、贴出你连接串的内容
2、用这个连接串的信息,看是否可用sqlplus或plsq等工具连接