pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL user name specified in startup packet.
10+ messages / 3 participants
[nested] [flat]

* Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL user name specified in startup packet.
@ 2005-03-09 16:10  Rover, Mischa de <mischa.de.rover@capgemini.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Rover, Mischa de @ 2005-03-09 16:10 UTC (permalink / raw)
  To: pgsql-jdbc


With Crystal Reports XI report design application we create reports of a
PostgreSQL database. To establish this connection we must use the JDBC
driver version 8.0, older versions of JDBC drivers generates errors
(This method is not yet implemented).



The Java web application connects to the database also using the 8.0
JDBC driver version. When starting to run an embedded report the
following error occurs:



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



When replacing (in the Java web application) the 8.0 JDBC driver with an
older version 7.3 the logon to the database works fine. But an other
problem occurs, because of the fact that the reports are designed
against an 8.0 JDBC driver most of the queries are not compatible with
the 7.3 JDBC driver version:



select "diagnose"."code", "diagnose"."omschrijving",
"episode_diagnose"."diagnose", "episode_diagnose"."datum_diagnose",
"kliniek"."code", "kliniek"."naam"

FROM   ((("public"."kliniek" "kliniek" LEFT OUTER JOIN
"public"."identificatie" "identificatie" ON
"kliniek"."code"="identificatie"."kliniek_code") LEFT OUTER JOIN
"public"."episode" "episode" ON
"identificatie"."id"="episode"."identificatie_id") LEFT OUTER JOIN
"public"."episode_diagnose" "episode_diagnose" ON
"episode"."id"="episode_diagnose"."episode_id") RIGHT OUTER JOIN
"public"."diagnose" "diagnose" ON
"episode_diagnose"."diagnose"="diagnose"."code"



ERROR:  parser: parse error at or near "{" at character 119



A simple report with no outer join works fine.



Can anyone help us with this issue.



What is the difference considering authentication between driver version
7.3 and 8.0? May be a JDBC driver with the authentication behavior of
7.3 and query handling of 8.0 would help?



Regards,



Mischa



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.

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

* Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL
@ 2005-03-09 21:22  Oliver Jowett <oliver@opencloud.com>
  parent: Rover, Mischa de <mischa.de.rover@capgemini.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Oliver Jowett @ 2005-03-09 21:22 UTC (permalink / raw)
  To: Rover, Mischa de <mischa.de.rover@capgemini.com>; +Cc: pgsql-jdbc

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



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

* Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL
@ 2005-03-09 21:53  Prasanth <dbadmin@nqadmin.com>
  parent: Oliver Jowett <oliver@opencloud.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Prasanth @ 2005-03-09 21:53 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; Rover, Mischa de <mischa.de.rover@capgemini.com>; +Cc: pgsql-jdbc

>- 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







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

* Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL
@ 2005-03-09 22:18  Oliver Jowett <oliver@opencloud.com>
  parent: Prasanth <dbadmin@nqadmin.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Oliver Jowett @ 2005-03-09 22:18 UTC (permalink / raw)
  To: Prasanth <dbadmin@nqadmin.com>; +Cc: Rover, Mischa de <mischa.de.rover@capgemini.com>; pgsql-jdbc

Prasanth wrote:
>>- 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.

Right, but I'd assume that CR has some way to configure the 
user/password it uses if it's using the first form, at least..

>>- 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)

Strange..

Can you try the protocolVersion=2 approach and see if that works?

-O



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

* Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL
@ 2005-03-09 22:49  Prasanth <dbadmin@nqadmin.com>
  parent: Oliver Jowett <oliver@opencloud.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Prasanth @ 2005-03-09 22:49 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; +Cc: Rover, Mischa de <mischa.de.rover@capgemini.com>; pgsql-jdbc


>Right, but I'd assume that CR has some way to configure the
>user/password it uses if it's using the first form, at least..

I do specify the username & password. CR is able to connect to the database
at design time. I use JDBC connection even for designing the report. I works
great at design time. It is during runtime that the report is not able to
connect.
It could well be CR bug, I even emailed their tech support but no response.

>Can you try the protocolVersion=2 approach and see if that works?

Same error message.

P.S: I am using postgresql-8.0-310kh.jdbc3.jar driver

-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 4:19 PM
To: Prasanth
Cc: Rover, Mischa de; pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Crystal Reports: Connection rejected: FATAL: no
PostgreSQL


Prasanth wrote:
>>- 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.

Right, but I'd assume that CR has some way to configure the
user/password it uses if it's using the first form, at least..

>>- 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)

Strange..

Can you try the protocolVersion=2 approach and see if that works?

-O

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings







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

* Re: Crystal Reports:  Connection rejected: FATAL:  no
@ 2005-03-11 13:20  Rover, Mischa de <mischa.de.rover@capgemini.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Rover, Mischa de @ 2005-03-11 13:20 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc


> 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?

I tried this but getting a different error message:

Logon Error: A connection could not be made using the requested protocol
2;DatabaseName=lir_nvog;user=dba;password=pw.

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

Caused by: org.postgresql.util.PSQLException: A connection could not be
made using the requested protocol
2;DatabaseName=lir_nvog;user=dba;password=pw.
        at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.j
ava:70)
        at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connect
ion.java:117)
        at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connect
ion.java:30)
        at
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
        at org.postgresql.Driver.connect(Driver.java:235)
        ... 77 more

> 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)

This is done by CR at runtime

> - 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?

The url is saved in *.rpt file. I can save the url into the rpt file in
designer mode. At runtime I get a different error message:

Logon Error: The server requested password-based authentication, but no
password was provided.

Using this url:
jdbc:postgresql://server/lir_nvog?protocolVersion=2&user=dba&password=pw

Returns following error:
Logon Error: Connection rejected: FATAL:  Password authentication failed
for user "dba"



Regards,

Mischa

-----Original Message-----
From: Oliver Jowett [mailto:oliver@opencloud.com]
Sent: Wednesday, March 09, 2005 10:23 PM
To: Rover, Mischa de
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Crystal Reports: Connection rejected: FATAL: no
PostgreSQLuser name specified in startup packet.

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

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.




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

* Re: Crystal Reports:  Connection rejected: FATAL:  no
@ 2005-03-11 21:21  Prasanth <dbadmin@nqadmin.com>
  parent: Rover, Mischa de <mischa.de.rover@capgemini.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Prasanth @ 2005-03-11 21:21 UTC (permalink / raw)
  To: Rover, Mischa de <mischa.de.rover@capgemini.com>; Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc

>Logon Error: The server requested password-based authentication, but no
>password was provided.

In your code are you setting the ConnectionInfos object?
I am assuming that you are using the JRC.

-Prasanth.

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Rover, Mischa de
Sent: Friday, March 11, 2005 7:21 AM
To: Oliver Jowett
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Crystal Reports: Connection rejected: FATAL: no



> 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?

I tried this but getting a different error message:

Logon Error: A connection could not be made using the requested protocol
2;DatabaseName=lir_nvog;user=dba;password=pw.

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

Caused by: org.postgresql.util.PSQLException: A connection could not be
made using the requested protocol
2;DatabaseName=lir_nvog;user=dba;password=pw.
        at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.j
ava:70)
        at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connect
ion.java:117)
        at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connect
ion.java:30)
        at
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
        at org.postgresql.Driver.connect(Driver.java:235)
        ... 77 more

> 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)

This is done by CR at runtime

> - 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?

The url is saved in *.rpt file. I can save the url into the rpt file in
designer mode. At runtime I get a different error message:

Logon Error: The server requested password-based authentication, but no
password was provided.

Using this url:
jdbc:postgresql://server/lir_nvog?protocolVersion=2&user=dba&password=pw

Returns following error:
Logon Error: Connection rejected: FATAL:  Password authentication failed
for user "dba"



Regards,

Mischa

-----Original Message-----
From: Oliver Jowett [mailto:oliver@opencloud.com]
Sent: Wednesday, March 09, 2005 10:23 PM
To: Rover, Mischa de
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Crystal Reports: Connection rejected: FATAL: no
PostgreSQLuser name specified in startup packet.

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

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.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly







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

* Re: Crystal Reports:  Connection rejected: FATAL:  no
@ 2005-03-11 21:36  Rover, Mischa de <mischa.de.rover@capgemini.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Rover, Mischa de @ 2005-03-11 21:36 UTC (permalink / raw)
  To: Prasanth <dbadmin@nqadmin.com>; Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc


> In your code are you setting the ConnectionInfos object?
> I am assuming that you are using the JRC.

Yes, I am setting the ConnectionInfos object, that is why it does work
with the 7.3 driver version, I think.

Rigth now I have it work with the 8.0 version. When using this db url,
it works fine:

jdbc:postgresql://server/dbname?user=dba&password=pw&

When ending the url with a '&' it works fine. Ending with a '&' is
because of the fact that Crystal Reports puts a string with parameters
separated by ';' at the end. And hand this over to the jdbc driver.

jdbc:postgresql://server/dbname?user=dba&password=pw&
DatabaseName=;user=;password

I hope this solution works also for you.

With this solution there is no need to set the ConnectionInfos object.

- Mischa


-----Original Message-----
From: Prasanth [mailto:dbadmin@nqadmin.com]
Sent: Friday, March 11, 2005 10:22 PM
To: Rover, Mischa de; Oliver Jowett
Cc: pgsql-jdbc@postgresql.org
Subject: RE: [JDBC] Crystal Reports: Connection rejected: FATAL: no

>Logon Error: The server requested password-based authentication, but no
>password was provided.

In your code are you setting the ConnectionInfos object?
I am assuming that you are using the JRC.

-Prasanth.

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Rover, Mischa de
Sent: Friday, March 11, 2005 7:21 AM
To: Oliver Jowett
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Crystal Reports: Connection rejected: FATAL: no



> 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?

I tried this but getting a different error message:

Logon Error: A connection could not be made using the requested protocol
2;DatabaseName=lir_nvog;user=dba;password=pw.

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

Caused by: org.postgresql.util.PSQLException: A connection could not be
made using the requested protocol
2;DatabaseName=lir_nvog;user=dba;password=pw.
        at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.j
ava:70)
        at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connect
ion.java:117)
        at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connect
ion.java:30)
        at
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
        at org.postgresql.Driver.connect(Driver.java:235)
        ... 77 more

> 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)

This is done by CR at runtime

> - 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?

The url is saved in *.rpt file. I can save the url into the rpt file in
designer mode. At runtime I get a different error message:

Logon Error: The server requested password-based authentication, but no
password was provided.

Using this url:
jdbc:postgresql://server/lir_nvog?protocolVersion=2&user=dba&password=pw

Returns following error:
Logon Error: Connection rejected: FATAL:  Password authentication failed
for user "dba"



Regards,

Mischa

-----Original Message-----
From: Oliver Jowett [mailto:oliver@opencloud.com]
Sent: Wednesday, March 09, 2005 10:23 PM
To: Rover, Mischa de
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Crystal Reports: Connection rejected: FATAL: no
PostgreSQLuser name specified in startup packet.

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

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.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly





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.




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

* Re: Crystal Reports:  Connection rejected: FATAL:  no
@ 2005-03-11 21:55  Oliver Jowett <oliver@opencloud.com>
  parent: Rover, Mischa de <mischa.de.rover@capgemini.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Oliver Jowett @ 2005-03-11 21:55 UTC (permalink / raw)
  To: Rover, Mischa de <mischa.de.rover@capgemini.com>; +Cc: Prasanth <dbadmin@nqadmin.com>; pgsql-jdbc

Rover, Mischa de wrote:

> jdbc:postgresql://server/dbname?user=dba&password=pw&
> 
> When ending the url with a '&' it works fine. Ending with a '&' is
> because of the fact that Crystal Reports puts a string with parameters
> separated by ';' at the end. And hand this over to the jdbc driver.
> 
> jdbc:postgresql://server/dbname?user=dba&password=pw&
> DatabaseName=;user=;password

Aha, that explains what is going on. Crystal Reports seems pretty broken 
if it's munging the URL itself, since the sub-protocol URL syntax is 
driver-specific.

-O



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

* Re: Crystal Reports:  Connection rejected: FATAL:  no
@ 2005-03-11 22:02  Prasanth <dbadmin@nqadmin.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Prasanth @ 2005-03-11 22:02 UTC (permalink / raw)
  To: pgsql-jdbc

>jdbc:postgresql://server/dbname?user=dba&password=pw&

That worked out well. Thank you for sharing that info.
Have you tried it with JNDI. I would really like to take that routine
rather than having the url in 300 reports.

Thanks,
-Prasanth.


-----Original Message-----
From: Rover, Mischa de [mailto:mischa.de.rover@capgemini.com]
Sent: Friday, March 11, 2005 3:37 PM
To: Prasanth; Oliver Jowett
Cc: pgsql-jdbc@postgresql.org
Subject: RE: [JDBC] Crystal Reports: Connection rejected: FATAL: no



> In your code are you setting the ConnectionInfos object?
> I am assuming that you are using the JRC.

Yes, I am setting the ConnectionInfos object, that is why it does work
with the 7.3 driver version, I think.

Rigth now I have it work with the 8.0 version. When using this db url,
it works fine:

jdbc:postgresql://server/dbname?user=dba&password=pw&

When ending the url with a '&' it works fine. Ending with a '&' is
because of the fact that Crystal Reports puts a string with parameters
separated by ';' at the end. And hand this over to the jdbc driver.

jdbc:postgresql://server/dbname?user=dba&password=pw&
DatabaseName=;user=;password

I hope this solution works also for you.

With this solution there is no need to set the ConnectionInfos object.

- Mischa


-----Original Message-----
From: Prasanth [mailto:dbadmin@nqadmin.com]
Sent: Friday, March 11, 2005 10:22 PM
To: Rover, Mischa de; Oliver Jowett
Cc: pgsql-jdbc@postgresql.org
Subject: RE: [JDBC] Crystal Reports: Connection rejected: FATAL: no

>Logon Error: The server requested password-based authentication, but no
>password was provided.

In your code are you setting the ConnectionInfos object?
I am assuming that you are using the JRC.

-Prasanth.

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Rover, Mischa de
Sent: Friday, March 11, 2005 7:21 AM
To: Oliver Jowett
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Crystal Reports: Connection rejected: FATAL: no



> 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?

I tried this but getting a different error message:

Logon Error: A connection could not be made using the requested protocol
2;DatabaseName=lir_nvog;user=dba;password=pw.

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

Caused by: org.postgresql.util.PSQLException: A connection could not be
made using the requested protocol
2;DatabaseName=lir_nvog;user=dba;password=pw.
        at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.j
ava:70)
        at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connect
ion.java:117)
        at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connect
ion.java:30)
        at
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
        at org.postgresql.Driver.connect(Driver.java:235)
        ... 77 more

> 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)

This is done by CR at runtime

> - 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?

The url is saved in *.rpt file. I can save the url into the rpt file in
designer mode. At runtime I get a different error message:

Logon Error: The server requested password-based authentication, but no
password was provided.

Using this url:
jdbc:postgresql://server/lir_nvog?protocolVersion=2&user=dba&password=pw

Returns following error:
Logon Error: Connection rejected: FATAL:  Password authentication failed
for user "dba"



Regards,

Mischa

-----Original Message-----
From: Oliver Jowett [mailto:oliver@opencloud.com]
Sent: Wednesday, March 09, 2005 10:23 PM
To: Rover, Mischa de
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Crystal Reports: Connection rejected: FATAL: no
PostgreSQLuser name specified in startup packet.

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

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.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly





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.








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


end of thread, other threads:[~2005-03-11 22:02 UTC | newest]

Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-09 16:10 Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL user name specified in startup packet. Rover, Mischa de <mischa.de.rover@capgemini.com>
2005-03-09 21:22 ` Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL Oliver Jowett <oliver@opencloud.com>
2005-03-09 21:53   ` Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL Prasanth <dbadmin@nqadmin.com>
2005-03-09 22:18     ` Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL Oliver Jowett <oliver@opencloud.com>
2005-03-09 22:49       ` Re: Crystal Reports:  Connection rejected: FATAL:  no PostgreSQL Prasanth <dbadmin@nqadmin.com>
2005-03-11 13:20 Re: Crystal Reports:  Connection rejected: FATAL:  no Rover, Mischa de <mischa.de.rover@capgemini.com>
2005-03-11 21:21 ` Re: Crystal Reports:  Connection rejected: FATAL:  no Prasanth <dbadmin@nqadmin.com>
2005-03-11 21:36 Re: Crystal Reports:  Connection rejected: FATAL:  no Rover, Mischa de <mischa.de.rover@capgemini.com>
2005-03-11 21:55 ` Re: Crystal Reports:  Connection rejected: FATAL:  no Oliver Jowett <oliver@opencloud.com>
2005-03-11 22:02 Re: Crystal Reports:  Connection rejected: FATAL:  no Prasanth <dbadmin@nqadmin.com>

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