pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Jason Porter <Jason.Porter@student.neumont.edu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JPOX Types.CHAR error
Date: Mon, 15 May 2006 17:22:31 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0605151508090.9269@leary2.csoft.net> (raw)
In-Reply-To: <1C47F9167B873F489B45243528C5EF03BED99B@studentmail.Student.Northface.local>
References: <1C47F9167B873F489B45243528C5EF03BED99B@studentmail.Student.Northface.local>



On Mon, 15 May 2006, Jason Porter wrote:

> I'm playing around with JPOX right now trying to get things to work, but
> I'm having a problem with mapping the Java types to the JDBC types it
> seems like.  JPOX comes back and tells me that the JDBC driver doesn't
> support Types.CHAR, which I find very hard to believe.
>
> 22:47:00,978 (main) ERROR [JPOX.SchemaTool] - An exception was thrown
> during the operation of SchemaTool. Please refer to the log for full
> details. The following may help : Failed to generate new Mapping of type
> org.jpox.store.rdbms.mapping.CharRDBMSMapping, exception : JDBC type
> "Types.CHAR" not supported by the JDBC driver. Please check your
> specification of "jdbc-type" and the driver capabilities.
> 	at
> org.jpox.store.rdbms.adapter.DatabaseAdapter.getTypeInfo(DatabaseAdapter
> .java:706)
>
> 	at
> org.jpox.store.rdbms.mapping.CharRDBMSMapping.getTypeInfo(CharRDBMSMappi
> ng.java:205)

A quick check reveals nothing obviously wrong with how 
DatabaseMetaData.getTypeInfo returns data for Types.CHAR.

The best thing to do would probably add some debugging code to JPOX to 
show how it sets up its type information and what it thinks is has 
available when the failing call is made.

Kris Jurka




view thread (9+ messages)  latest in thread

Message-ID: <Pine.BSO.4.63.0605151508090.9269@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.63.0605151508090.9269@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.63.0605151508090.9269@leary2.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, Jason.Porter@student.neumont.edu
  Subject: Re: JPOX Types.CHAR error
  In-Reply-To: <Pine.BSO.4.63.0605151508090.9269@leary2.csoft.net>
  References: <1C47F9167B873F489B45243528C5EF03BED99B@studentmail.Student.Northface.local> <Pine.BSO.4.63.0605151508090.9269@leary2.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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