pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Murad Nayal <murad@godel.bioc.columbia.edu>
To: pgsql-interfaces@postgresql.org
Subject: [Fwd: postgresql JDBC driver question]
Date: Wed, 28 Oct 1998 12:21:27 -0500
Message-ID: <36375297.2854FDF4@godel.bioc.columbia.edu> (raw)

I am resubmitting this since my subscription to pgsql-interfaces didn't
seem to go through the first time around. If you submitted a suggestion in
response, please submit it again or forward it directly to me at
mailto:murad@godel.bioc.columbia.edu

thank you very much in advance

Murad Nayal wrote:

> I am baffled:
>
> I wrote a small java program to test postgresql jdbc driver. the applet
> runs fine locally using applet viewer. indicating that the driver is
> recognizing the url and responding to it correctly. however I get the
> message "NO suitable Driver" when the applet is run from a remote
> browser. the Class.forName("postgresql.Driver"); does not produce an
> exception leading me to believe that the Driver is found but it is not
> accepting the url (same one that worked locally)?
>
> code
>
>   String url =
> "jdbc:postgresql://godel.bioc.columbia.edu:1212/stockprices";
>   String usr = "murad";
>   String pwd = "*******";
>
>     try {
>
>       Class.forName("postgresql.Driver");
>       con = DriverManager.getConnection(url, usr, pwd); // <- this
> generates the problem
>       stmt = con.createStatement();
>
>     } catch (Exception e) {
>
> part of the html file:
> <body>
>
> Enter one of the following company symbols:
> SGI, CCI, CMB. A bit of a small database I know.
>
> <Applet code="JDBCtest.class" archive=postgresql.jar width=300
> height=300> </Applet>
>
> Thanks for the help



--
Murad Nayal M.D. Ph.D.
Department of Biochemistry and Molecular Biophysics
College of Physicians and Surgeons of Columbia University
630 West 168th Street. New York, NY 10032
Tel: 212-305-6884       Fax: 212-305-6926






view thread (3+ messages)  latest in thread

Message-ID: <36375297.2854FDF4@godel.bioc.columbia.edu>
Permalink:  ../36375297.2854FDF4@godel.bioc.columbia.edu/
Also on:    postgresql.org/message-id/36375297.2854FDF4@godel.bioc.columbia.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-interfaces@postgresql.org
  Cc: murad@godel.bioc.columbia.edu
  Subject: Re: [Fwd: postgresql JDBC driver question]
  In-Reply-To: <36375297.2854FDF4@godel.bioc.columbia.edu>
  References: <36375297.2854FDF4@godel.bioc.columbia.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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