我创建了一个在Glassfish 4上运行的测试Jee7应用程序,在z / os上访问DB2 v10。
我正在使用Hibernate
这一切都符合预期的APART来自此服务器警告
INFO: HV000001: Hibernate Validator 5.0.0.Final
INFO: HHH000204: Processing PersistenceUnitInfo
INFO: HHH000412: Hibernate Core {4.3.0.Final}
INFO: HHH000206: hibernate.properties not found
INFO: HHH000021: Bytecode provider name : javassist
INFO: HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
WARN: HHH000362: Unable to retrieve type info result set : com.ibm.db2.jcc.am.SqlException: DB2 SQL Error: SQLCODE=-525, SQLSTATE=51015, SQLERRMC=2;DSN00000.NULLID.SYSSTAT;5359534C564C3031, DRIVER=4.14.111
INFO: HHH000400: Using dialect: org.hibernate.dialect.DB2Dialect
INFO: HHH000397: Using ASTQueryTranslatorFactory
我宁愿我的服务器启动没有错误或警告,我该如何解决这个问题呢?
答案 0 :(得分:1)
<强> SQLCODE = -525 强>
SQL语句不能被执行,因为它在错误中 部分的绑定时间= sectno PACKAGE = pkgname CONSONSENCY TOKEN = contoken
答案 1 :(得分:0)
-525的原因是z / os上缺少LICENSE包DB2LIC.SYSLIC
来自IBM DOCS
Resolving the problem
For connections to DB2 LUW servers this error can be ignored as it is only logged in the JCC diagnostic log (jccdiag.log) and within a driver trace and is not returned to the application. There is no impact on the application and does not cause connections to fail.
For connections to DB2 for z/OS, this package can be created by running the db2connectactivate command that is found within the license activation package for DB2 Connect Unlimited Edition for System z. This package can be obtained from Passport Advantage.