commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dain Sundstrom (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DBCP-53) [dbcp] commons dbcp does not supports Firebird DB.
Date Thu, 19 Jul 2007 23:05:06 GMT

    [ https://issues.apache.org/jira/browse/DBCP-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514039
] 

Dain Sundstrom commented on DBCP-53:
------------------------------------

I don't think this is a DBCP issue.  My guess is your torque configuration is wrong, but I'm
not torque expert.  The org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS class has the
following method:

    public void setDriver(String v) throws ClassNotFoundException {
        assertInitializationAllowed();
        this.driver = v;
        // make sure driver is registered
        Class.forName(v);
    }

Which can fail for two reasons.  First, if any connections have already been allocated from
the data source, the assertInitializationAllowed method will throw and IllegalStateException
because the data source is already actively creating connections for a data base.  The second
place this method can fail is the call to Class.forName.  In either case, I don't think it
is a DBCP issue.

I think we should close this as invalid, and if Torque team find a bug in DBCP, they can open
a new issue.


> [dbcp] commons dbcp does not supports Firebird DB.
> --------------------------------------------------
>
>                 Key: DBCP-53
>                 URL: https://issues.apache.org/jira/browse/DBCP-53
>             Project: Commons Dbcp
>          Issue Type: Bug
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: DMoL
>             Fix For: 1.3
>
>
> I'm trying to use Torque-3.2 with open-source Firebird DBMS, but simple example
> not works. Here is the log output:
> 15.03.2006 21:47:38 org.apache.torque.dsfactory.AbstractDataSourceFactory
> setProperty
> SEVERE: Property: driver value: org.firebirdsql.jdbc.FBDriver is not supported
> by DataSource: org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message