原创:隔壁老王(http://wallimn.iteye.com),欢迎转载,转载请保留本人信息。
Hibernate版本3.5.2、Oracle版本9i、JDK版本1.6
一切配好了之后,报了这样一个警告,
WARN SettingsFactory:130 - Could not obtain connection metadata
java.sql.SQLException: 不支持的特性
仔细看了一下报错信息,出现问题的代码位置:
at $java.sql.DatabaseMetaData$$EnhancerByProxool$$711971dc.supportsGetGeneratedKeys(<generated>)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:127)
注意:我使用了proxool连接池,未使用的可能有点儿不一样,但都会显示
supportsGetGeneratedKeys这个函数
看了看hibernate的源码,第127行为:
metaSupportsGetGeneratedKeys = meta.supportsGetGeneratedKeys();
个人觉得这个错误应该不影响系统的正常运行。但有个错误很让人不爽。分析错误原因可能跟JDBC的驱动有关系。
虽然使用的是ojdbc14.jar,但看了一下MANIFEST.MF,显示
Implementation-Time: "Thu Apr 25 23:14:02 2002"
去官方网站下载了个最新的ojdbc14.jar,发现MANIFEST.MF中信息为:
Implementation-Time: "Fri Jun 9 04:31:01 2006"
应该有些变化,虽然名字一样。
替换了系统中旧的ojdbc14.jar,问题果然解决了。
分享到:
相关推荐
报错 org.apache.hadoop.hdfs.BlockMissingException: Could not obtain block 2、百度结果 参考 https://blog.csdn.net/xiaozhaoshigedasb/article/details/88999595 防火墙记得关掉; 查看DataNode是否启动;...
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot get a ...
#hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver #hibernate.connection.username ora #hibernate.connection.password ora #hibernate.connection.url jdbc:oracle:thin:@localhost:1521:orcl...
里面详细介绍了怎么去使用这个用户控件,很方便的上传控件,4步搞定上传,上传后你还能用这个控件察看/下载刚 上传的文件,简单来说这个控件包含了上传/邦定/下载/察看缩列图的多重功能
freertos 在msp430F5529上得移植代码。
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user ‘root’@‘localhost’ (using ...
The Genymotion virtual device could not obtain an IP address 尝试了 http://blog.csdn.net/beiminglei/article/details/17399333 还是不行, 后来发现,官方推荐的Virtual和Genymotion 不匹配, 则使用...
《Cortex-M3之STM32嵌入式系统设计》开发软件 《Cortex-M3之STM32嵌入式系统设计》介绍了以ARMCortex-M3为内核的STM32F103增强型微控制器的特点,深入讲解其硬件和软件设计方法。本书分为STM32基础开发、STM32深入...
“Performance Problems,” explains not only why it’s essential to approach performance problems at the right moment and in a methodological way, but also why understanding business needs and problems...
第三部分
版本说明 操作系统:IBM AIX 6.1(64bit) Java环境:IBM JDK 1.6(64bit) ... hostname要正确设置,否则启动服务会出现这样的错误信息:Could not obtainthe localhost address。 希望对大家有用
2部分
Upgrade note: RDG files with this version of RDCMan are not compatible with older program versions. Any legacy RDG file opened and saved with this version will be backed up as filename.old
由于50M的限制不得不分成3部分,将3个文件解压后放到一个文件夹中直接使用,
前段时间,早上刚到公司,打开电脑就发现启动Oracle实例的时候报了下面的错误: SQL> startup nomount; ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance ORA-16032: parameter LOG_...
hive解决问题的一些方案
Resource stopwords not found. Please use the NLTK Downloader to obtain the resource: import nltk ...错误解决方法。 NLTK下载停用词(stopwords)资源,下载后解压到相应目录中即可,亲测可用!
有关Cadence出错的解决方法,希望对学习Cadence的你有所帮助
让fme支持mapgis的插件。 1.将CopyToFme文件夹中的文件全部拷贝到FME的安装目录下 2.<FME>\MDLL\MapEnv.exe,将其中的目录设置为<FME>\MDLL(需要写完整路径) 3.设置系统环境变量中的path,添加MDll所在目录。...
3个文件,都安装一下 1、新的pdflm15.dll覆盖掉原先的pdflm15.dll文件 2、Patch PowerDesigner 15.1.exe拷到安装目录运行,点击“应用”即可 3、运行PowerDesigner程序,在弹出的提示框中选择本地上传,... 4、成功!!