X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3FD8D52D42 for ; Wed, 9 Mar 2005 21:52:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61088-10 for ; Wed, 9 Mar 2005 21:52:46 +0000 (GMT) Received: from mail.liquidcore.com (mail.liquidcore.net [68.17.96.60]) by svr1.postgresql.org (Postfix) with ESMTP id E720F555BA for ; Wed, 9 Mar 2005 21:52:43 +0000 (GMT) Received: (from root@localhost) by mail.liquidcore.com (8.13.1/8.12.10) id j29LqdGs025543; Wed, 9 Mar 2005 15:52:39 -0600 Received: from ppasala3 (ppasala.nqadmin.com [192.168.0.7]) by mail.liquidcore.com (8.13.1/8.12.10) with SMTP id j29Lqcxm025507; Wed, 9 Mar 2005 15:52:39 -0600 From: "Prasanth" To: "Oliver Jowett" , "Rover, Mischa de" Cc: Subject: Re: Crystal Reports: Connection rejected: FATAL: no PostgreSQL Date: Wed, 9 Mar 2005 15:53:43 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <422F691C.8020807@opencloud.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-scanner: scanned for malicious content X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/97 X-Sequence-Number: 12489 >- 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