StringIndexOutOfBoundsException « Exception « JPA Q&A





1. StringIndexOutOfBoundsException when calling uniqueResult    forum.hibernate.org

Hi, I'm using Hibernate 3.2. When I run code like the following log.info("setting criteria license number:" + licenseNumber); Criteria criteria = session.createCriteria(InterlockExtract.class); criteria.add(Restrictions.eq("licenseNumber", licenseNumber.trim())); result = (InterlockExtract) criteria.uniqueResult(); The criteria.uniqueResult line throws the below error. I was under the impression that if no results are to be returned, it should simply return null without an exception being thrown. Could someone explain ...

2. StringIndexOutOfBoundsException while configuring Hibernate    forum.hibernate.org

Hi! I'm trying to create a simple Usermanagment backend. Therefore I have some many-to-many relationships and a one-to-one. Now when I try Configuration cfg = (new Configuration()).configure(); I get a StringIndexOutOfBoundsException. The last thing hibernate "said" before was: net.sf.hibernate.cfg.Configuration - processing one-to-many association mappings I'm a little bit confused, cause I have no one-to-many relationships defined. Someone any ideas? Thanks, Rico. ...

3. StringIndexOutofBoundsException    forum.hibernate.org

Author Message dubbed Post subject: StringIndexOutofBoundsException Posted: Sat Jun 05, 2004 8:14 am Newbie Joined: Fri Jun 04, 2004 11:03 am Posts: 3 Location: Montreal Hello, I get this exception when configuring my datastore but I have no clue what to do with it; here's the stack-trace and the mapping file. Any help is welcome. Thanks Quote: Could not ...

4. Build Examples fails with StringIndexOutOfBoundsException    forum.hibernate.org

I'm an absolute beginner with Hibernate. I installed it and am following the instructions to run it against a postgres DB. After doing: build eg the script successfully creates some tables but stops here: [java] Setting up some test data [java] Viewing all auction item objects [java] java.lang.StringIndexOutOfBoundsException: String index out of range : 23 [java] at java.lang.String.charAt(String.java:444) [java] at org.postgresql.jdbc2.ResultSet.toTimestamp(ResultSet.java:165 ...

5. odd Hibernate Error: StringIndexOutOfBoundsException:?!    forum.hibernate.org

2.1.6