You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by bu...@apache.org on 2002/05/06 03:50:50 UTC
DO NOT REPLY [Bug 8818] New: -
ODBCJDBC driver not working with Torque 3.0b1
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8818>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8818
ODBCJDBC driver not working with Torque 3.0b1
Summary: ODBCJDBC driver not working with Torque 3.0b1
Product: Turbine
Version: 3.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Torque
AssignedTo: turbine-dev@jakarta.apache.org
ReportedBy: farid@jbusiness.org
When trying to use Torque with MS SQLServer with a JDBC-ODBC bridge (Sun
JDBCODBC driver), the following error occur
java.lang.NullPointerException
at org.apache.java.lang.InstantiationException: Unknown JDBC driver:
sun.jdbc.odbc.JdbcOdbcDriver: Check your configuration file
at org.apache.torque.adapter.DBFactory.create(DBFactory.java:224)
at org.apache.torque.Torque.initDatabaseMap(Torque.java:632)
at org.apache.torque.Torque.getDatabaseMap(Torque.java:606)
at org.apache.torque.map.PublisherMapBuilder.doBuild(PublisherMapBuilder.java:85)
at org.apache.torque.util.BasePeer.getMapBuilder(BasePeer.java:2135)
at org.apache.torque.BasePublisherPeer.getMapBuilder(BasePublisherPeer.java:40)
at org.apache.torque.BasePublisherPeer.<clinit>(BasePublisherPeer.java:57)
at org.apache.torque.BasePublisher.<clinit>(BasePublisher.java:26)
at Test.main(Test.java:24)
This is because driverToAdapterMap in DBFactory class do not register an adaptor
for this kind of driver.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: DO NOT REPLY [Bug 8818] New: - ODBCJDBC driver not working with Torque 3.0b1
Posted by Will Glass-Husain <wg...@forio.com>.
Hi,
I submitted a patch to the Torque-dev list last week that fixes this. It let's
you specify an adapter in the Torque.properties file.
Haven't seen it committed yet. I'll write to the Torque list and enquire.
(May not be necessary if people read both lists, but I'll do it anyway).
WILL
Quoting bugzilla@apache.org:
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8818>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8818
>
> ODBCJDBC driver not working with Torque 3.0b1
>
> Summary: ODBCJDBC driver not working with Torque 3.0b1
> Product: Turbine
> Version: 3.0
> Platform: All
> OS/Version: All
> Status: NEW
> Severity: Normal
> Priority: Other
> Component: Torque
> AssignedTo: turbine-dev@jakarta.apache.org
> ReportedBy: farid@jbusiness.org
>
>
> When trying to use Torque with MS SQLServer with a JDBC-ODBC bridge
> (Sun
> JDBCODBC driver), the following error occur
> java.lang.NullPointerException
> at org.apache.java.lang.InstantiationException: Unknown JDBC
> driver:
> sun.jdbc.odbc.JdbcOdbcDriver: Check your configuration file
> at org.apache.torque.adapter.DBFactory.create(DBFactory.java:224)
> at org.apache.torque.Torque.initDatabaseMap(Torque.java:632)
> at org.apache.torque.Torque.getDatabaseMap(Torque.java:606)
> at
> org.apache.torque.map.PublisherMapBuilder.doBuild(PublisherMapBuilder.java:85)
> at org.apache.torque.util.BasePeer.getMapBuilder(BasePeer.java:2135)
> at
> org.apache.torque.BasePublisherPeer.getMapBuilder(BasePublisherPeer.java:40)
> at
> org.apache.torque.BasePublisherPeer.<clinit>(BasePublisherPeer.java:57)
> at org.apache.torque.BasePublisher.<clinit>(BasePublisher.java:26)
> at Test.main(Test.java:24)
>
> This is because driverToAdapterMap in DBFactory class do not register an
> adaptor
> for this kind of driver.
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
------------------------------------
Will Glass-Husain <wg...@forio.com>
Forio Business Simulations
office: (415) 440-7500
mobile: (415) 235-4293
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>