websphere测试连接失败java.sql.SQLException:callDSRA0010E中的参数无效

时间:2013-10-07 10:00:31

标签: jdbc websphere

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

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

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

我做了什么:

  1. 在server3中创建了数据库wasdb02 resdies中的用户(appli_01)。
  2. 来自server2的telnet server3 1521以及server1的成功。
  3. 使用alias = sample1 username = appli_01(数据库用户名)密码=该数据库用户的密码创建了JAAS - J2C身份验证别名
  4. 创建了JDBC提供程序
  5. 创建数据源并提供如下值

    JNDI name :jdbc/sample1  
    Component-managed authentication alias : sample1  
    URL = jdbc:oracle:thin:@server3:1521:wasdb02
    
  6. 然后保存并同步更改。

  7. 最后如果我点击测试连接我得到以下错误:

    节点server3Node03上服务器nodeagent上的数据源sampledb的测试连接操作失败,但有以下异常:java.sql.SQLException:callDSRA0010E中的无效参数:SQL State = 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)
    

1 个答案:

答案 0 :(得分:4)

我曾经在WebSphere 6.1中获得了很多,并且只能通过重新启动nodeagent和服务器进程来解决它。不幸的是,我从来没有机会诊断根本原因。