您的位置:首页 > 数据库 > Oracle

Caused by: java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCo

2012-11-10 22:30 896 查看
Caused by: java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCopy()Z

    at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:143)

    at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

    at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

    at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:77)

    at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2283)

    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2279)

    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1748)

    at com.iovvo.bookstore.util.HibernateSessionFactoryUtil.buildSessionFactory(HibernateSessionFactoryUtil.java:26)
    ... 3 more

工程环境:hibernate4,oracle10g。

原因之一:ojdbc 驱动版本等不兼容问题,去oracle官网根据本地oracle数据库版本下载相应驱动进行更换即可。

oracle jdbc url http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐