Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-279

unset XADatasource's property in BasicManagedDataSource class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.3
    • 1.3
    • None
    • 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)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              paulqing 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