pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Prasanth <dbadmin@nqadmin.com>
To: Oliver Jowett <oliver@opencloud.com>
To: Rover, Mischa de <mischa.de.rover@capgemini.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL
Date: Wed, 9 Mar 2005 15:53:43 -0600
Message-ID: <LGEKIACNKCMPMALCJMLOCENKEBAA.dbadmin@nqadmin.com> (raw)
In-Reply-To: <422F691C.8020807@opencloud.com>

>- pass it to DriverManager.getConnection(url, user, password)
>- pass a "user" property when calling DriverManager.getConnection(url,
>properties)

These two options can't be used as its done by Crystal Reports at runtime.

>- pass it in the URL: jdbc:postgresql://host:port/database?user=username

I tried this but getting the same error message Logon Failed.
(I am not able to include the message in my server log as it seems to have
broken.
No messages since yesterday. Not sure why my logging has stopped)

-Prasanth.

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Oliver Jowett
Sent: Wednesday, March 09, 2005 3:23 PM
To: Rover, Mischa de
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Crystal Reports: Connection rejected: FATAL: no
PostgreSQL


Rover, Mischa de wrote:

> ERROR [datainterface]
> com.crystaldecisions.reports.reportdefinition.datainterface.h: Logon
> Error: Connection rejected: FATAL:  no PostgreSQL user name specified in
> startup packet

This means that you are passing no user information when trying to make
a connection (JDBC does not default to any particular user). It's a bit
weird that it works against 7.3, though. If you specify
"?protocolVersion=2" in the connection URL against an 8.0 server, does
it work?

Is Crystal Reports the one that eats all the stack traces? It'd be
useful to know the call path that generated this exception.

You have a few of choices as to how to pass in the user info:

- pass it to DriverManager.getConnection(url, user, password)
- pass a "user" property when calling DriverManager.getConnection(url,
properties)
- pass it in the URL: jdbc:postgresql://host:port/database?user=username

I'm not familiar with Crystal Reports so I don't know how you'd
configure it to use one of these approaches. Does it let you tweak the
connection URL directly?

> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient,
> you are not authorized to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all
> copies of this message.

You are sending this message to a public list, so the boilerplate is
pointless. (and anyway, what does "RCPT TO" mean if not "intended
recipient"?)

-O

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org







view thread (10+ messages)  latest in thread

Message-ID: <LGEKIACNKCMPMALCJMLOCENKEBAA.dbadmin@nqadmin.com>
Permalink:  ../LGEKIACNKCMPMALCJMLOCENKEBAA.dbadmin@nqadmin.com/
Also on:    postgresql.org/message-id/LGEKIACNKCMPMALCJMLOCENKEBAA.dbadmin@nqadmin.com

 · 

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-jdbc@postgresql.org
  Cc: dbadmin@nqadmin.com, oliver@opencloud.com, mischa.de.rover@capgemini.com
  Subject: Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL
  In-Reply-To: <LGEKIACNKCMPMALCJMLOCENKEBAA.dbadmin@nqadmin.com>
  References: <422F691C.8020807@opencloud.com> <LGEKIACNKCMPMALCJMLOCENKEBAA.dbadmin@nqadmin.com>

* 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