创建blob(Oracle)返回“方法未由JDBC驱动程序实现". (Jboss EAP 5.1) [英] Creating blob (Oracle) returns "Method is not implemented by JDBC driver" (Jboss eap 5.1)

查看:249
本文介绍了创建blob(Oracle)返回“方法未由JDBC驱动程序实现". (Jboss EAP 5.1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 Blob bl = pstmt.getConnection().createBlob();试图在Oracle中创建/保存Blob的代码: 返回以下错误: 方法不是由JDBC驱动程序实现的"

I have Blob bl = pstmt.getConnection().createBlob(); a code where it is trying to create/save a blob in Oracle: returning the following error: "Method is not implemented by JDBC driver"

那是我收到的消息,看不到更多.

That is the message I am getting, cant see more.

该应用程序在Jboss EAP 5.1中,具有以下更改: -jboss-common-jdbc-wrapper.jar --changed-> jboss-as-connector-6.1.0.final-jboss-common-jdbc-wrapper.jar -服务器/全部/lib/ojdbc6.jar

The application is in a Jboss EAP 5.1 with the following changes: - jboss-common-jdbc-wrapper.jar --changed--> jboss-as-connector-6.1.0.final-jboss-common-jdbc-wrapper.jar - server/all/lib/ojdbc6.jar

可能是什么问题?

推荐答案

这是JDBC版本/JDBC驱动程序不匹配.在JDBC级别4中添加了Connection.createBlob()方法,并且ojdbc6 JAR应该支持该方法:请参见

This is a JDBC version / JDBC driver mismatch. The Connection.createBlob() method is added in JDBC level 4, and the ojdbc6 JAR is supposed to support that: see Support for JDBC 4 in the Oracle "Database JDBC Developer's Guide and Reference" document (Oracle 11g release 1).

您说您正在使用ojdbc6.jar,但也许它是一个较旧的版本,或者在运行时类路径上前面有一个不同的Oracle驱动程序JAR.

You say you are using ojdbc6.jar, but maybe it is an older version, or maybe there is a different Oracle driver JAR ahead of it on the runtime classpath.

这篇关于创建blob(Oracle)返回“方法未由JDBC驱动程序实现". (Jboss EAP 5.1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆