开发者社区> 问答> 正文

大神们,碰到的问题越来越难。。求帮助,求给力。。。报错内容如下?报错

是在进行图片上传的时候报的这样的错。。

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.ClassNotFoundException: oracle.sql.BLOB
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.ClassNotFoundException: oracle.sql.BLOB
java.lang.ClassNotFoundException: oracle.sql.BLOB
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at org.springframework.jdbc.support.lob.OracleLobHandler.initOracleDriverClasses(OracleLobHandler.java:150)
    at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.createLob(OracleLobHandler.java:339)
    at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.setBlobAsBytes(OracleLobHandler.java:220)
    at org.springframework.orm.hibernate3.support.BlobByteArrayType.nullSafeSetInternal(BlobByteArrayType.java:99)
    at org.springframework.orm.hibernate3.support.AbstractLobType.nullSafeSet(AbstractLobType.java:190)
    at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:145)
    at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1826)
    at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2172)
    at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2118)
    at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2374)
    at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:91)
    at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
    at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
    at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
    at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:584)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:500)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:473)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:267)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:623)
    at ht.car.service.CarBaseinfoService$$EnhancerByCGLIB$$f79a6a16.saveOrUpdate(<generated>)
    at ht.car.action.SaveCarBaseinfoAction.execute(SaveCarBaseinfoAction.java:147)
    at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at ht.util.UserSessionFilter.doFilter(UserSessionFilter.java:38)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at ht.util.SetCharactorEncoding.doFilter(SetCharactorEncoding.java:23)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:610)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1777)
    at java.lang.Thread.run(Thread.java:662)

跪求帮助。。。

展开
收起
爱吃鱼的程序员 2020-06-09 14:01:41 836 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    ojdbc14.jar不是版本是14,是支持1.4jdk的版本。

    ojdbc14.jar不是版本是14,是支持1.4jdk的版本。

    ojdbc14.jar不是版本是14,是支持1.4jdk的版本。

    回复 @放空:根据是用jdk的版本和oracle数据库版本选择jdbc驱动。只要这两个对了就不会出驱动问题,除非是驱动bug。jdbc驱动从oracle官方网站下载。先找对应的oracle版本,然后选择jdk版本。那,jdbc的版本在哪配置的?怎么弄呀?看异常信息是Oracle驱动版本太低了,要9i以上。回复 @烟雨三月:我用的是jdbc和tomcat应该用什么转换器?回复 @放空:http://blog.csdn.net/java_freshman01/article/details/49797765用的是ojdbc14.jar应该不低了呀。。

    注意jdbc驱动版本! 注意jdbc驱动版本! 注意jdbc驱动版本!


    重要的事情说三遍。

    用的是ojdbc14.jar应该不低了呀

    用的是ojdbc14.jar应该不低了呀


    特么的明明就是没找到类,在纠结半天
    那要怎么解决呢? nestedexceptionisjava.lang.ClassNotFoundException:oracle.sql.BLOB异常信息很明确了啊,驱动问题,找不到类 NotethatOracleLobHandlerrequiresOracleJDBCdriver9iorhigher!;nestedexceptionisjava.lang.ClassNotFoundException:oracle.sql.BLOB
     看这个提示是你的驱动版本过低,需要9i以上,不过你说你自己的版本是14按理说是不低的,后面显示找不到类,估计是别的什么原因.清理一下项目试试吧。按照目前给出的信息能得到的消息就这样架包什么的都从新加了好几遍了,不行。你看看方便加qq详细聊聊么?远程也可以。
    2020-06-09 15:31:43
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
移动与复制 立即下载
《0代码搭应用》 立即下载
不止代码 立即下载