willis3131 2011-05-09 00:40
浏览 410
已采纳

weblogic报错:Couldn't initialize OracleLobHandler,有谁遇到过吗?

之前的war包都运行的好好的,可最近忽然weblogic报出这样的错误:
org.springframework.dao.DataAccessResourceFailureException: Could not create Oracle LOB; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Couldn't initialize OracleLobHandler because Oracle driver classes are not available. Note that OracleLobHandler requires Oracle JDBC driver 9i or higher!; nested exception is java.lang.NullPointerException
at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.createLob(OracleLobHandler.java:368)
at
......
org.springframework.dao.InvalidDataAccessApiUsageException: Couldn't initialize OracleLobHandler because Oracle driver classes are not available. Note that OracleLobHandler requires Oracle JDBC driver 9i or higher!; nested exception is java.lang.NullPointerException
at org.springframework.jdbc.support.lob.OracleLobHandler.initOracleDriverClasses(OracleLobHandler.java:164)
at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.createLob(OracleLobHandler.java:339)

spring配置文件都有配置:
<!-- 支持对clob的支持 add by yangbo 0601-->
class="org.springframework.jdbc.support.lob.OracleLobHandler"
lazy-init="true">





class="org.springframework.jdbc.support.nativejdbc.CommonsDbcpNativeJdbcExtractor"
lazy-init="true" />
weblogic的jdb选的驱动是oracle 9i的 Oracle's Driver(Thin)Versions:0.0.1,9.2.0,10

怎么样才能解决这个问题呀?急死我了!都好几天了

  • 写回答

4条回答 默认 最新

  • iihero 《SybaseASE15.X全程实践》书籍作者 2011-05-09 08:57
    关注

    [quote]Couldn't initialize OracleLobHandler because Oracle driver classes are not available. Note that OracleLobHandler requires Oracle JDBC driver 9i or higher!; nested exception is java.lang.NullPointerException [/quote]

    栈里边告诉你了错误的根源:
    driver class得不到,驱动加载有问题啊。
    你再检查一下,是否驱动被换过?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?
  • ¥15 python爬取bilibili校园招聘网站
  • ¥30 求解达问题(有红包)
  • ¥15 请解包一个pak文件