X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B5A28D1C9B8 for ; Thu, 29 Jan 2004 16:54:05 +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 13186-01 for ; Thu, 29 Jan 2004 12:53:34 -0400 (AST) Received: from matrix.gatewaynet.com (unknown [217.19.69.50]) by svr1.postgresql.org (Postfix) with ESMTP id CF062D1D2AD for ; Thu, 29 Jan 2004 12:53:32 -0400 (AST) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id i0TGogSD010418; Thu, 29 Jan 2004 18:50:42 +0200 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.8/8.12.8/Submit) with ESMTP id i0TGogkM010414; Thu, 29 Jan 2004 18:50:42 +0200 Date: Thu, 29 Jan 2004 18:50:41 +0200 (EET) From: Achilleus Mantzios To: mohan@physics.gmu.edu Cc: pgsql-sql@postgresql.org, Subject: Re: java.lang.StringIndexOutOfBoundsException: String index In-Reply-To: <61999.138.88.163.115.1075394099.squirrel@physics.gmu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/268 X-Sequence-Number: 16661 O kyrios mohan@physics.gmu.edu egrapse stis Jan 29, 2004 : > 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) Just from the above, some one could conclude you are running a 7.2.x postgresql driver. Make sure you havent messed up with the CLASSPATH. Also after ensuring your 7.4.1 postgresql.jar is in the right location, make sure you are running a 7.4.1 backend. > > 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. > > > thanks > > --Mohan > > > > ---------------------------(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 > -- -Achilleus