gpt4 book ai didi

jdbc - websphere 测试连接失败 java.sql.SQLException : invalid arguments in callDSRA0010E

转载 作者:行者123 更新时间:2023-12-01 01:05:27 24 4
gpt4 key购买 nike

服务器 1:DMGR 服务器(6.1 版本)

服务器 2:安装 WAS 6.1 并用作应用程序服务器的节点(将 ojdbc14.jar 文件复制到此服务器中)

服务器 3:安装了 Oracle 10gR2 并且正确设置了监听器和 tns

我做了什么:

  • 在 server3 的数据库 wasdb02 resdies 中创建了一个用户 (appli_01)。
  • telnet server3 1521 从 server2 以及 server1 成功。
  • 创建了一个 JAAS - J2C 身份验证别名,其中 alias=sample1 username = appli_01(数据库用户名)password=该数据库用户的密码
  • 创建了 JDBC 提供程序
  • 创建了一个数据源并给出如下值
    JNDI name :jdbc/sample1  
    Component-managed authentication alias : sample1
    URL = jdbc:oracle:thin:@server3:1521:wasdb02
  • 然后保存并同步更改。

  • 最后,如果我单击测试连接,则会出现以下错误:

    节点 server3Node03 上的服务器 nodeagent 上的数据源 sampledb 的测试连接操作失败,出现以下异常:java.sql.SQLException:callDSRA0010E 中的参数无效:SQL 状态 = null,错误代码 = 17,433。查看 JVM 日志以获取更多详细信息。

    和 systemout 日志如下。
    10/7/13 15:02:00:482 IST] 000011d5 DataSourceCon E   DSRA8040I: Failed to connect to the DataSource.  Encountered "": java.sql.SQLException: invalid arguments in callDSRA0010E: SQL State = null, Error Code = 17,433
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:190)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:286)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:250)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:839)
    at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:389)
    at oracle.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:557)
    at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:177)
    at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:163)
    at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:112)
    at com.ibm.ws.rsadapter.DSConfigurationHelper$1.run(DSConfigurationHelper.java:1137)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at com.ibm.ws.rsadapter.DSConfigurationHelper.getPooledConnection(DSConfigurationHelper.java:1132)
    at com.ibm.ws.rsadapter.DSConfigurationHelper.testConnectionForGUI(DSConfigurationHelper.java:2355)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at com.ibm.ws.management.DataSourceConfigHelperMBean.testConnectionToDataSource2(DataSourceConfigHelperMBean.java:532)
    at com.ibm.ws.management.DataSourceConfigHelperMBean.testConnection(DataSourceConfigHelperMBean.java:460)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
    at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
    at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
    at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
    at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1055)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:948)
    at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:338)
    at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:204)
    at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:55)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:680)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:484)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

    最佳答案

    我曾经在 WebSphere 6.1 中经常遇到这种情况,只能通过重新启动 nodeagent 和服务器进程来解决。不幸的是,我从来没有机会诊断出根本原因。

    关于jdbc - websphere 测试连接失败 java.sql.SQLException : invalid arguments in callDSRA0010E,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19221851/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com