pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Datasource portNumber property
2+ messages / 2 participants
[nested] [flat]

* Datasource portNumber property
@ 2011-12-23 15:12 Magosányi Árpád <mag@magwas.rulez.org>
  2011-12-23 15:40 ` Re: Datasource portNumber property Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Magosányi Árpád @ 2011-12-23 15:12 UTC (permalink / raw)
  To: pgsql-jdbc

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?




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

* Re: Datasource portNumber property
  2011-12-23 15:12 Datasource portNumber property Magosányi Árpád <mag@magwas.rulez.org>
@ 2011-12-23 15:40 ` Dave Cramer <pg@fastcrypt.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Cramer @ 2011-12-23 15:40 UTC (permalink / raw)
  To: Magosányi Árpád <mag@magwas.rulez.org>; +Cc: 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@magwas.rulez.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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc



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


end of thread, other threads:[~2011-12-23 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-12-23 15:12 Datasource portNumber property Magosányi Árpád <mag@magwas.rulez.org>
2011-12-23 15:40 ` Dave Cramer <pg@fastcrypt.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