From: Paul Thomas <paul@tmsl.demon.co.uk>
To: mohan@physics.gmu.edu
Cc: pgsql-jdbc @ postgresql . org <pgsql-jdbc@postgresql.org>
Subject: Re: [SQL] java.lang.StringIndexOutOfBoundsException: String index out of range: 23 at java.lang.String.charAt(String.java:460)
Date: Fri, 30 Jan 2004 09:10:42 +0000
Message-ID: <20040130091042.A5000@bacon> (raw)
In-Reply-To: <61999.138.88.163.115.1075394099.squirrel@physics.gmu.edu>
References: <61999.138.88.163.115.1075394099.squirrel@physics.gmu.edu>
On 29/01/2004 16:34 mohan@physics.gmu.edu wrote:
> Hi All
>
> I am having the torque3.1.jar and postgresql-7.4. I have compiled the new
> jdbc driver called as postgresql.jar and have placed it in the lib
> directory from where the ant scripts catch the jars. Whenever i try to
> access through torque
>
> gestList = BaseGestlistPeer.doSelect(new Criteria());
>
> this error arises
>
> java.lang.StringIndexOutOfBoundsException: String index out of range: 23
> at java.lang.String.charAt(String.java:460)
> at
> org.postgresql.jdbc2.ResultSet.toTimestamp(ResultSet.java:1653)
> at
> org.postgresql.jdbc2.ResultSet.getTimestamp(ResultSet.java:398)
>
> I have searched all the lists and the answer i got is a jdbc driver
> issue.
> Please let me know what i need to for getting around with this problem.
> This happens only with this method in the whole application. But the same
> method works when i did not use the new torque 3.1 and everything happens
> smoothly.Please let me know if there is a way to configure jdbc with
> torque or any other configuration issue for postgres you know might have
> been creating this problem. I am having one heck of a night mare wid this
> issue.
You're more likely to get help on the jdbc list.
HTH
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: paul@tmsl.demon.co.uk, mohan@physics.gmu.edu, pgsql-jdbc@postgresql.org
Subject: Re: [SQL] java.lang.StringIndexOutOfBoundsException: String index out of range: 23 at java.lang.String.charAt(String.java:460)
In-Reply-To: <20040130091042.A5000@bacon>
* 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