pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
"No class found for inet"
6+ messages / 5 participants
[nested] [flat]

* "No class found for inet"
@ 2001-05-30 17:22  Larry Mulcahy <lmulcahy@qip.qwest.net>
  0 siblings, 1 reply; 6+ messages in thread

From: Larry Mulcahy @ 2001-05-30 17:22 UTC (permalink / raw)
  To: pgsql-jdbc

I'm using the PostgreSQL 7.1.1 JDBC2 Enterprise driver, compiled
myself on Solaris 8 with the 1.3 JDK.

I'm trying to access a column of the PostgreSQL datatype 'inet'.
When my program gets to the 'inet' field:

	rs.getObject(3);

it fails with the exception "no class found for inet".
Does the JDBC driver support all PostgreSQL data types?

-- 
	    Larry Mulcahy		lmulcahy@qip.qwest.net
			  PGP public key at:
   http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x2C4C5A03



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

* Re: "No class found for inet"
@ 2001-05-30 18:23  Dave Cramer <Dave@micro-automation.net>
  parent: Larry Mulcahy <lmulcahy@qip.qwest.net>
  0 siblings, 1 reply; 6+ messages in thread

From: Dave Cramer @ 2001-05-30 18:23 UTC (permalink / raw)
  To: Larry Mulcahy <lmulcahy@qip.qwest.net>; pgsql-jdbc

No, the driver wouldn't be able to handle inet type. 

This is postgres specific, and isn't supported by the JDBC spec.


Dave
----- Original Message ----- 
From: "Larry Mulcahy" <lmulcahy@qip.qwest.net>
To: <pgsql-jdbc@postgresql.org>
Sent: Wednesday, May 30, 2001 1:22 PM
Subject: [JDBC] "No class found for inet"


> I'm using the PostgreSQL 7.1.1 JDBC2 Enterprise driver, compiled
> myself on Solaris 8 with the 1.3 JDK.
> 
> I'm trying to access a column of the PostgreSQL datatype 'inet'.
> When my program gets to the 'inet' field:
> 
> rs.getObject(3);
> 
> it fails with the exception "no class found for inet".
> Does the JDBC driver support all PostgreSQL data types?
> 
> -- 
>     Larry Mulcahy lmulcahy@qip.qwest.net
>   PGP public key at:
>    http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x2C4C5A03
> 
> ---------------------------(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] 6+ messages in thread

* Re: "No class found for inet"
@ 2001-05-30 20:35  Larry Mulcahy <lmulcahy@qip.qwest.net>
  parent: Dave Cramer <Dave@micro-automation.net>
  0 siblings, 1 reply; 6+ messages in thread

From: Larry Mulcahy @ 2001-05-30 20:35 UTC (permalink / raw)
  To: Dave Cramer <Dave@micro-automation.net>; +Cc: pgsql-jdbc

Weird, I tried using rs.getString() instead of rs.getObject() and
it seems to be working OK now.

Dave Cramer wrote:
> 
> No, the driver wouldn't be able to handle inet type.
> 
> This is postgres specific, and isn't supported by the JDBC spec.
> 
> Dave
> ----- Original Message -----
> From: "Larry Mulcahy" <lmulcahy@qip.qwest.net>
> To: <pgsql-jdbc@postgresql.org>
> Sent: Wednesday, May 30, 2001 1:22 PM
> Subject: [JDBC] "No class found for inet"
> 
> > I'm using the PostgreSQL 7.1.1 JDBC2 Enterprise driver, compiled
> > myself on Solaris 8 with the 1.3 JDK.
> >
> > I'm trying to access a column of the PostgreSQL datatype 'inet'.
> > When my program gets to the 'inet' field:
> >
> > rs.getObject(3);
> >
> > it fails with the exception "no class found for inet".
> > Does the JDBC driver support all PostgreSQL data types?

-- 
	    Larry Mulcahy		lmulcahy@qip.qwest.net
			  PGP public key at:
   http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x2C4C5A03



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

* Re: "No class found for inet"
@ 2001-05-30 20:56  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Larry Mulcahy <lmulcahy@qip.qwest.net>
  0 siblings, 0 replies; 6+ messages in thread

From: Bruce Momjian @ 2001-05-30 20:56 UTC (permalink / raw)
  To: Larry Mulcahy <lmulcahy@qip.qwest.net>; +Cc: Dave Cramer <Dave@micro-automation.net>; pgsql-jdbc

> Weird, I tried using rs.getString() instead of rs.getObject() and
> it seems to be working OK now.

Well, sort of.  It is a string now and not a real IP address, but that
may be fine for you.  PostgreSQL transfers fields to clients as
character strings.

> 
> Dave Cramer wrote:
> > 
> > No, the driver wouldn't be able to handle inet type.
> > 
> > This is postgres specific, and isn't supported by the JDBC spec.
> > 
> > Dave
> > ----- Original Message -----
> > From: "Larry Mulcahy" <lmulcahy@qip.qwest.net>
> > To: <pgsql-jdbc@postgresql.org>
> > Sent: Wednesday, May 30, 2001 1:22 PM
> > Subject: [JDBC] "No class found for inet"
> > 
> > > I'm using the PostgreSQL 7.1.1 JDBC2 Enterprise driver, compiled
> > > myself on Solaris 8 with the 1.3 JDK.
> > >
> > > I'm trying to access a column of the PostgreSQL datatype 'inet'.
> > > When my program gets to the 'inet' field:
> > >
> > > rs.getObject(3);
> > >
> > > it fails with the exception "no class found for inet".
> > > Does the JDBC driver support all PostgreSQL data types?
> 
> -- 
> 	    Larry Mulcahy		lmulcahy@qip.qwest.net
> 			  PGP public key at:
>    http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x2C4C5A03
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://www.postgresql.org/search.mpl
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



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

* No class found for inet
@ 2004-07-11 13:28  Antony Paul <antonypaul24@hotmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Antony Paul @ 2004-07-11 13:28 UTC (permalink / raw)
  To: pgsql-jdbc

Hi all,
    I am using Apache Commons BeanUtils RowSetDynaClass for disconnected
resul tsets. But it gives error when I pass a ResultSet which contains an
inet column type what to do with it. Why postgres is not providing classes
for postgres specific data types ?.
Using Postgres 7.3

rgds
Antony Paul.



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

* Re: No class found for inet
@ 2004-07-11 14:54  Oliver Jowett <oliver@opencloud.com>
  parent: Antony Paul <antonypaul24@hotmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Oliver Jowett @ 2004-07-11 14:54 UTC (permalink / raw)
  To: Antony Paul <antonypaul24@hotmail.com>; +Cc: pgsql-jdbc

Antony Paul wrote:
> Hi all,
>     I am using Apache Commons BeanUtils RowSetDynaClass for disconnected
> resul tsets. But it gives error when I pass a ResultSet which contains an
> inet column type what to do with it.

What is the error?

> Why postgres is not providing classes
> for postgres specific data types ?.

Because noone has written support for them yet. java.net.InetAddress is 
not a good data container for the inet type as it does not store netmask 
information, so we'd need a postgresql-specific type.

It's pretty easy to write code to support new types -- take a look at 
how the geometric types (org.postgresql.geometric.*) are supported. Once 
written you can either register the class with the driver at runtime 
(PGConnection.addDataType) or patch the driver to know about the new 
class automatically.

> Using Postgres 7.3

What JDBC driver version?

-O



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


end of thread, other threads:[~2004-07-11 14:54 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-30 17:22 "No class found for inet" Larry Mulcahy <lmulcahy@qip.qwest.net>
2001-05-30 18:23 ` Dave Cramer <Dave@micro-automation.net>
2001-05-30 20:35   ` Larry Mulcahy <lmulcahy@qip.qwest.net>
2001-05-30 20:56     ` Bruce Momjian <pgman@candle.pha.pa.us>
2004-07-11 13:28 No class found for inet Antony Paul <antonypaul24@hotmail.com>
2004-07-11 14:54 ` Re: No class found for inet Oliver Jowett <oliver@opencloud.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