Bea Weblogic - Oracle JDBC连接失败

时间:2015-01-15 10:52:42

标签: java oracle jdbc weblogic datasource

我正在使用我的mac OS X Macbook(Yosemite)从Bea Weblogic控制台创建一个简单的JDBC连接数据源。有些东西不起作用。

我正在使用以下参数:

Driver Name: oracle.jdbc.OracleDriver
URL: jdbc:oracle:thin:@anagrafe:1521:MY_SERVICE_NAME

USERNAME PASSWORD 是对的。

尝试使用相同的参数连接 jDeveloper IDE 一切正常,但是从本地运行的Bea WebLogic Server管理控制台12c进行连接,注册以下连接:

<15-gen-2015 11.33.37 CET> <Error> <Console> <BEA-240003> <Administration Console encountered the following error: 
java.sql.SQLRecoverableException: Errore di I/O: Invalid argument
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:816)
    at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:614)
    at weblogic.jdbc.common.internal.DataSourceUtil.testConnection0(DataSourceUtil.java:340)
    at weblogic.jdbc.common.internal.DataSourceUtil.access$000(DataSourceUtil.java:22)
    at weblogic.jdbc.common.internal.DataSourceUtil$1.run(DataSourceUtil.java:254)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.jdbc.common.internal.DataSourceUtil.testConnection(DataSourceUtil.java:251)
    at com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:751)
    at com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:479)
[...........]
Caused by: java.net.SocketException: Invalid argument
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:152)
    at java.net.SocketInputStream.read(SocketInputStream.java:122)
    at oracle.net.nt.MetricsEnabledInputStream.read(TcpNTAdapter.java:759)
    at oracle.net.ns.Packet.receive(Packet.java:312)
    at oracle.net.ns.NSProtocolStream.negotiateConnection(NSProtocolStream.java:168)
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java:275)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1606)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:539)

看起来无法登录......有什么想法吗?

坦克很多,戴维德。

0 个答案:

没有答案