pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
exception running example.basic
2+ messages / 2 participants
[nested] [flat]

* exception running example.basic
@ 2000-02-21 15:57 Floyd Shackelford <FloydS@4peakstech.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Floyd Shackelford @ 2000-02-21 15:57 UTC (permalink / raw)
  To: pgsql-interfaces



I have built the postgress jdbc interfaces. When I try to run the example as
follows:

CLASSPATH=.:./postgresql.jar:$JDKTOP/lib/classes.zip

java -Djdbc.drivers=postgresql.Driver example.basic
jdbc:postgresql://localhost
/a_database a_userid a_password

I get the following error.

PostgreSQL basic test v6.3 rev 1

Connecting to Database URL = jdbc:postgresql://localhost/a_database
Unknown object of type:java.lang.ClassNotFoundException
Exception caught.
java.lang.IllegalArgumentException: Unknown argument
java.lang.IllegalArgumentException: Unknown argument
        at java.text.MessageFormat.format(MessageFormat.java)
        at java.text.MessageFormat.format(MessageFormat.java)
        at java.text.MessageFormat.format(MessageFormat.java)
        at postgresql.util.PSQLException.translate(PSQLException.java:83)
        at postgresql.util.PSQLException.<init>(PSQLException.java:45)
        at postgresql.Driver.connect(Driver.java:106)
        at java.sql.DriverManager.getConnection(DriverManager.java:91)
        at java.sql.DriverManager.getConnection(DriverManager.java:134)
        at example.basic.<init>(basic.java:32)
        at example.basic.main(basic.java:171)

Regards,
Floyd Shackelford
4 Peaks Technology Group, Inc.
http://www.4peakstech.com/
office: +1.888.398.4405
fax: +1.916.404.7125




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* RE: [INTERFACES] exception running example.basic
@ 2000-02-22 07:31 Peter Mount <petermount@it.maidstone.gov.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Mount @ 2000-02-22 07:31 UTC (permalink / raw)
  To: 'FloydS@4peakstech.com' <FloydS@4peakstech.com>; pgsql-interfaces

edit the file: postgresql/errors.properties and replace (in this order):
	{1} with {0}
	{2} with {1}

That should fix it. That bug was fixed in the following release.

Peter

-- 
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.



-----Original Message-----
From: Floyd Shackelford [mailto:FloydS@4peakstech.com]
Sent: Monday, February 21, 2000 3:58 PM
To: pgsql-interfaces
Subject: [INTERFACES] exception running example.basic




I have built the postgress jdbc interfaces. When I try to run the
example as
follows:

CLASSPATH=.:./postgresql.jar:$JDKTOP/lib/classes.zip

java -Djdbc.drivers=postgresql.Driver example.basic
jdbc:postgresql://localhost
/a_database a_userid a_password

I get the following error.

PostgreSQL basic test v6.3 rev 1

Connecting to Database URL = jdbc:postgresql://localhost/a_database
Unknown object of type:java.lang.ClassNotFoundException
Exception caught.
java.lang.IllegalArgumentException: Unknown argument
java.lang.IllegalArgumentException: Unknown argument
        at java.text.MessageFormat.format(MessageFormat.java)
        at java.text.MessageFormat.format(MessageFormat.java)
        at java.text.MessageFormat.format(MessageFormat.java)
        at
postgresql.util.PSQLException.translate(PSQLException.java:83)
        at postgresql.util.PSQLException.<init>(PSQLException.java:45)
        at postgresql.Driver.connect(Driver.java:106)
        at java.sql.DriverManager.getConnection(DriverManager.java:91)
        at java.sql.DriverManager.getConnection(DriverManager.java:134)
        at example.basic.<init>(basic.java:32)
        at example.basic.main(basic.java:171)

Regards,
Floyd Shackelford
4 Peaks Technology Group, Inc.
http://www.4peakstech.com/
office: +1.888.398.4405
fax: +1.916.404.7125


************



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-02-22 07:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-02-21 15:57 exception running example.basic Floyd Shackelford <FloydS@4peakstech.com>
2000-02-22 07:31 RE: [INTERFACES] exception running example.basic Peter Mount <petermount@it.maidstone.gov.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox