Commons Dbcp
  1. Commons Dbcp
  2. DBCP-279

unset XADatasource's property in BasicManagedDataSource class

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Labels:
      None
    • Environment:

      jdk1.5(via BasicManagedDataSource class to create ds.)

      Description

      hi,everyone:
      when i use dbcp1.3's source,i find no where to set XADatasource's connect parameter;such as url hasn't setted for XADatasource's instance.anyone response to me is very kindy.

      Paul qing
      stacktrace is:
      org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (指定了无效的 Oracle URL: OracleDataSource.makeURL)
      at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1228)
      at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:884)
      at com.test.xa.TestJtaWithXaDs.addUser(TestJtaWithXaDs.java:85)
      at com.test.xa.TestJtaWithXaDs.main(TestJtaWithXaDs.java:41)
      Caused by: java.sql.SQLException: 指定了无效的 Oracle URL: OracleDataSource.makeURL
      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
      at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
      at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
      at oracle.jdbc.pool.OracleDataSource.makeURL(OracleDataSource.java:966)
      at oracle.jdbc.pool.OracleDataSource.getURL(OracleDataSource.java:575)
      at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:115)
      at org.apache.commons.dbcp.managed.DataSourceXAConnectionFactory.createConnection(DataSourceXAConnectionFactory.java:103)
      at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:298)
      at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1340)
      at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1224)

        Issue Links

          Activity

          Aaron Hamid made changes -
          Link This issue relates to DBCP-360 [ DBCP-360 ]
          Aaron Hamid made changes -
          Link This issue is blocked by DBCP-360 [ DBCP-360 ]
          Aaron Hamid made changes -
          Link This issue is blocked by DBCP-360 [ DBCP-360 ]
          Phil Steitz made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mark Thomas made changes -
          Resolution Invalid [ 6 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Phil Steitz made changes -
          Fix Version/s 1.3 [ 12311977 ]
          paul qing made changes -
          Environment jdk1.5 jdk1.5(via BasicManagedDataSource class to create ds.)
          Description hi,everyone:
           when i use dbcp1.3's source,i find no where to set XADatasource's connect parameter;such as url hasn't setted for XADatasource's instance.anyone response to me is very kindy.
           Paul qing
          stacktrace is:
          org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (指定了无效的 Oracle URL: OracleDataSource.makeURL)
          at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1228)
          at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:884)
          at com.test.xa.TestJtaWithXaDs.addUser(TestJtaWithXaDs.java:85)
          at com.test.xa.TestJtaWithXaDs.main(TestJtaWithXaDs.java:41)
          Caused by: java.sql.SQLException: 指定了无效的 Oracle URL: OracleDataSource.makeURL
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
          at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
          at oracle.jdbc.pool.OracleDataSource.makeURL(OracleDataSource.java:966)
          at oracle.jdbc.pool.OracleDataSource.getURL(OracleDataSource.java:575)
          at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:115)
          at org.apache.commons.dbcp.managed.DataSourceXAConnectionFactory.createConnection(DataSourceXAConnectionFactory.java:103)
          at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:298)
          at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1340)
          at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1224)
          hi,everyone:
           when i use dbcp1.3's source,i find no where to set XADatasource's connect parameter;such as url hasn't setted for XADatasource's instance.anyone response to me is very kindy.

           Paul qing
          stacktrace is:
          org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (指定了无效的 Oracle URL: OracleDataSource.makeURL)
          at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1228)
          at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:884)
          at com.test.xa.TestJtaWithXaDs.addUser(TestJtaWithXaDs.java:85)
          at com.test.xa.TestJtaWithXaDs.main(TestJtaWithXaDs.java:41)
          Caused by: java.sql.SQLException: 指定了无效的 Oracle URL: OracleDataSource.makeURL
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
          at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
          at oracle.jdbc.pool.OracleDataSource.makeURL(OracleDataSource.java:966)
          at oracle.jdbc.pool.OracleDataSource.getURL(OracleDataSource.java:575)
          at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:115)
          at org.apache.commons.dbcp.managed.DataSourceXAConnectionFactory.createConnection(DataSourceXAConnectionFactory.java:103)
          at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:298)
          at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1340)
          at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1224)
          paul qing made changes -
          Field Original Value New Value
          Description hi,everyone:
           when i use dbcp1.3's source,i find no where to set XADatasource's connect parameter;such as url hasn't setted for XADatasource's instance.anyone response to me is very kindy.
           Paul qing
          hi,everyone:
           when i use dbcp1.3's source,i find no where to set XADatasource's connect parameter;such as url hasn't setted for XADatasource's instance.anyone response to me is very kindy.
           Paul qing
          stacktrace is:
          org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (指定了无效的 Oracle URL: OracleDataSource.makeURL)
          at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1228)
          at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:884)
          at com.test.xa.TestJtaWithXaDs.addUser(TestJtaWithXaDs.java:85)
          at com.test.xa.TestJtaWithXaDs.main(TestJtaWithXaDs.java:41)
          Caused by: java.sql.SQLException: 指定了无效的 Oracle URL: OracleDataSource.makeURL
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
          at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
          at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130)
          at oracle.jdbc.pool.OracleDataSource.makeURL(OracleDataSource.java:966)
          at oracle.jdbc.pool.OracleDataSource.getURL(OracleDataSource.java:575)
          at oracle.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:115)
          at org.apache.commons.dbcp.managed.DataSourceXAConnectionFactory.createConnection(DataSourceXAConnectionFactory.java:103)
          at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:298)
          at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1340)
          at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1224)
          paul qing created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              paul qing
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development