Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
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
- relates to
-
DBCP-360 BasicManagedDataSource fails with OracleXADataSource
- Closed