From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Magosányi Árpád <mag(at)magwas(dot)rulez(dot)org> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Datasource portNumber property |
Date: | 2011-12-23 15:40:13 |
Message-ID: | CADK3HHLnqXA0SG=Z54s3cvXCR-D7T=3+fBmbXZ6Cs36=EyF61w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Looks like the exception comes from net4j
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On Fri, Dec 23, 2011 at 10:12 AM, Magosányi Árpád <mag(at)magwas(dot)rulez(dot)org> wrote:
> Hi!
>
> I need to define the port number in a cdo-server.xml file.
> I was trying the following forms:
> <dataSource
> class="org.postgresql.ds.PGSimpleDataSource"
> url="jdbc:postgresql://127.0.0.1:5433/"
> databaseName="cdo"
> user="cdo" password="cdo"/>
>
> In this case the application tries to connect to port 5432.
>
> <dataSource
> class="org.postgresql.ds.PGSimpleDataSource"
> url="jdbc:postgresql://127.0.0.1/"
> databaseName="cdo" portNumber="5433"
> user="cdo" password="cdo"/>
>
> in this case I get:
> java.lang.IllegalArgumentException: Value of property portNumber can not be
> assigned to type int
> org.eclipse.net4j.db.DBException: java.lang.IllegalArgumentException: Value
> of property portNumber can not be assigned to type int
>
> Any hint to solve the problem?
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
From | Date | Subject | |
---|---|---|---|
Next Message | Leandro Guimarães | 2011-12-26 18:08:20 | Bidimensional Array |
Previous Message | Magosányi Árpád | 2011-12-23 15:12:58 | Datasource portNumber property |