X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 30C6DD1B47D for ; Fri, 30 Jan 2004 09:10:45 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 26873-04 for ; Fri, 30 Jan 2004 05:10:46 -0400 (AST) Received: from anchor-post-37.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by svr1.postgresql.org (Postfix) with ESMTP id 52D84D1B458 for ; Fri, 30 Jan 2004 05:10:44 -0400 (AST) Received: from tmsl-adsl.demon.co.uk ([80.177.114.181] helo=bacon.tmsl.demon.co.uk) by anchor-post-37.mail.demon.net with esmtp (Exim 3.35 #1) id 1AmUfk-0006A9-0b; Fri, 30 Jan 2004 09:10:44 +0000 Date: Fri, 30 Jan 2004 09:10:42 +0000 From: Paul Thomas To: mohan@physics.gmu.edu Cc: "pgsql-jdbc @ postgresql . org" Subject: Re: [SQL] java.lang.StringIndexOutOfBoundsException: String index out of range: 23 at java.lang.String.charAt(String.java:460) Message-ID: <20040130091042.A5000@bacon> References: <61999.138.88.163.115.1075394099.squirrel@physics.gmu.edu> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <61999.138.88.163.115.1075394099.squirrel@physics.gmu.edu>; from mohan@physics.gmu.edu on Thu, Jan 29, 2004 at 16:34:59 +0000 X-Mailer: Balsa 1.2.3 Lines: 43 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/302 X-Sequence-Number: 9259 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 | +------------------------------+---------------------------------------------+