Re: [SQL] java.lang.StringIndexOutOfBoundsException: String index out of range: 23 at java.lang.String.charAt(String.java:460)

From: Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk>
To: mohan(at)physics(dot)gmu(dot)edu
Cc: "pgsql-jdbc (at) postgresql (dot) org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [SQL] java.lang.StringIndexOutOfBoundsException: String index out of range: 23 at java.lang.String.charAt(String.java:460)
Date: 2004-01-30 09:10:42
Message-ID: 20040130091042.A5000@bacon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-sql


On 29/01/2004 16:34 mohan(at)physics(dot)gmu(dot)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 |
+------------------------------+---------------------------------------------+

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-01-30 09:27:09 Re: [SQL] java.lang.StringIndexOutOfBoundsException: String
Previous Message Achilleus Mantzios 2004-01-30 09:00:44 Re: java.lang.StringIndexOutOfBoundsException: String index

Browse pgsql-sql by date

  From Date Subject
Next Message Kris Jurka 2004-01-30 09:27:09 Re: [SQL] java.lang.StringIndexOutOfBoundsException: String
Previous Message Alexandra Birch 2004-01-30 09:06:13 Re: limit 1 and functional indexes: SOLVED