-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: java.lang.StringIndexOutOfBoundsException:String index out 0
PostPosted: Sun Dec 12, 2004 9:14 pm 
Beginner
Beginner

Joined: Thu Sep 23, 2004 6:03 am
Posts: 27
Hibernate version:2.1.3

Mapping documents:Xdoclet 1.2.1

Name and version of the database you are using: MySQL 4

Debug level Hibernate log excerpt:

[schemaexport] (cfg.Binder 229 ) Mapping class: au.edu.tlf.lips.model.Value -> value
[schemaexport] (cfg.Binder 560 ) Mapping collection: au.edu.tlf.lips.model.Value.conditionTypeValue -> table_value_join_condition_type_value
[schemaexport] (dialect.Dialect 82 ) Using dialect: net.sf.hibernate.dialect.MySQLDialect
[schemaexport] (cfg.Configuration 613 ) processing one-to-many association mappings
BUILD FAILED: C:\eclipse\workspace\lips\build.xml:994: java.lang.StringIndexOutOfBoundsException: String index out of range: 0



I have been generating the code correctly until this morning when I tried to do a total rebuild of my application to get this error. I have looked on the hibernate site and checked the name spelling as suggested in the tutorial to no avail. Any more ideas?

Code:
   /**
   * @return Returns the valueSet.
   * @hibernate.bag
   *       table="table_value_join_condition_type_value"
   *       cascade="all"
   * @hibernate.collection-key
   *       column="fk_condition_type_value_id"
   * @hibernate.collection-many-to-many
   *       class="au.edu.tlf.lips.model.Value"
   *       column="fk_value_id"
   */
   public List getValueSet() {
      return valueSet;
   }

Code:
   /**
   * @return Returns the conditionTypeValue.
   * @hibernate.bag
   *       table="table_value_join_condition_type_value"
   *       cascade="all"
   * @hibernate.collection-key
   *       column="fk_value_id"
   * @hibernate.collection-many-to-many
   *       class="au.edu.tlf.lips.model.ConditionTypeValue"
   *       column="fk_condition_type_value_id"
   */
   public List getConditionTypeValue() {
      return conditionTypeValue;
   }


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.