no suitable driver

Поиск
Список
Период
Сортировка
Искать

no suitable driver

От:
umakanth parsi <umaparsi@yahoo.com>
Дата:

Hi,

I am using following JDBC driver for my application
C:\Program Files\PostgreSQL\8.0\jdbc\postgresql-8.0-311.jdbc3.jar , but i am getting follwoing error
Beginning TPCW Database population.
Found Properties file C:\tpcw\populate\database.ini
java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at TPCW_Populate.getConnection(TPCW_Populate.java:1145)
        at TPCW_Populate.main(TPCW_Populate.java:115)
Table Already Dropped ADDRESS
Table Already Dropped AUTHOR
Table Already Dropped CC_XACTS
Table Already Dropped COUNTRY
Table Already Dropped CUSTOMER
Table Already Dropped ITEM
Table Already Dropped ORDER_LINE
Table Already Dropped ORDERS
Table Already Dropped SHOPPING_CART
Table Already Dropped SHOPPING_CART_LINE
Table Already Dropped AUTHOR1
Table Already Dropped ADDRESS1
Table Already Dropped COUNTRY1
Table Already Dropped CC_XACTS1
Table Already Dropped ORDER_LINE1
Table Already Dropped ORDERS1
Table Already Dropped ITEM1
Unable to create table: COUNTRY
java.lang.NullPointerException
        at TPCW_Populate.createTables(TPCW_Populate.java:1282)
        at TPCW_Populate.main(TPCW_Populate.java:117)
thanx in advance , please help me out to fix the problem

Thanx and Regards
Umakanth Parsi
Software Engineer (ATG)
Cincom systems Pvt,Ltd.
K-1 Building,412 , Mehurali-Gurgaon Road
Sector-14, Gurgaon-122001
Ph : 91-124-5082568,69,70,71 x325
Mobile : 09213228839


Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.

Re: no suitable driver

От:
Roland Walter <rwa@mosaic-ag.com>
Дата:
umakanth parsi schrieb:
> Hi,
> 
> I am using following JDBC driver for my application
> C:\Program Files\PostgreSQL\8.0\jdbc\postgresql-8.0-311.jdbc3.jar , but 
> i am getting follwoing error
> Beginning TPCW Database population.
> Found Properties file C:\tpcw\populate\database.ini
> java.sql.SQLException: No suitable driver
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at TPCW_Populate.getConnection(TPCW_Populate.java:1145)
>         at TPCW_Populate.main(TPCW_Populate.java:115)

Looks as if the jdbc-driver is not in the classpath.

-- 
Roland Walter
MOSAIC SOFTWARE AG
Telefon: 02225/882-411 Fax: 02225/882-201
http://www.mosaic-ag.com
-------  L E G A L    D I S C L A I M E R  ---------

Die Informationen in dieser Nachricht sind vertraulich 
und ausschliesslich fuer den Adressaten bestimmt. 
Kenntnisnahme durch Dritte ist unzulaessig. Die 
Erstellung von Kopien oder das Weiterleiten an weitere, 
nicht originaere und benannte Adressaten ist nicht 
vorgesehen und kann ungesetzlich sein. Die Meinungen 
in dieser Nachricht stellen lediglich die Meinungen 
des Senders dar. Falls Sie vermuten, dass diese 
Nachricht veraendert wurde, setzen Sie sich mit dem 
Absender in Verbindung. Der Absender uebernimmt ohne 
weitere Ueberpruefung keine Verantwortung fuer die 
Richtigkeit und Vollstaendigkeit des Inhalts. Unbefugte 
Empfaenger werden gebeten, die Vertraulichkeit der 
Nachricht zu wahren und den Absender sofort ueber 
einen Uebertragungsfehler zu informieren.
------------------------------------------------------

Re: no suitable driver

От:
Diego Gil <diego@adminsa.com>
Дата:
It seems to be a malformed or wrong URL to me. It happened once to me,
when wrote jdbc:postgresq://locahost instead of
jdbc:postgresql://localhost. 

Diego.

El mar, 31-05-2005 a las 10:05 +0200, Roland Walter escribió:
> umakanth parsi schrieb:
> > Hi,
> > 
> > I am using following JDBC driver for my application
> > C:\Program Files\PostgreSQL\8.0\jdbc\postgresql-8.0-311.jdbc3.jar , but 
> > i am getting follwoing error
> > Beginning TPCW Database population.
> > Found Properties file C:\tpcw\populate\database.ini
> > java.sql.SQLException: No suitable driver
> >         at java.sql.DriverManager.getConnection(Unknown Source)
> >         at java.sql.DriverManager.getConnection(Unknown Source)
> >         at TPCW_Populate.getConnection(TPCW_Populate.java:1145)
> >         at TPCW_Populate.main(TPCW_Populate.java:115)
> 
> Looks as if the jdbc-driver is not in the classpath.
> 

FAQ