-->
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.  [ 3 posts ] 
Author Message
 Post subject: its bugging
PostPosted: Mon Oct 27, 2003 7:04 pm 
Beginner
Beginner

Joined: Wed Oct 22, 2003 11:26 am
Posts: 31
I am doing a mapping to a class which is extended by few classes in a heirarchical manner and some are referenced by other classes. And there are 43 classes which are related to each other and the class diagram looks like a pyramid. And i am trying to build a session factory after adding all 43 classes and i get the following stack trace :

java.lang.ArrayIndexOutOfBoundsException: 1
at net.sf.hibernate.persister.EntityPersister.initPropertyPaths(EntityPersister.java:918)
at net.sf.hibernate.persister.EntityPersister.initPropertyPaths(EntityPersister.java:892)
at net.sf.hibernate.persister.EntityPersister.postInstantiate(EntityPersister.java:113)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:223)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:627)
at com.bunge.bgm.contract.business.domain.ContractMain.configure(ContractMain.java:124)
at com.bunge.bgm.contract.business.domain.ContractMain.main(ContractMain.java:692)

If anyone has encountered such error condition, please reply. I am trying to isolate the problem but till now no use. I am confused about the direction i have to go to solve it. I am trying. If anyone can suggest something, it will be a great help. Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2003 10:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
The first step would be to turn Hibernate logging to DEBUG level so that we can see which mapping file Hibernate is parsing when the error is encountered. Post the logging output. And post the relevent mapping.


Top
 Profile  
 
 Post subject: simplify
PostPosted: Tue Oct 28, 2003 3:43 am 
Beginner
Beginner

Joined: Fri Aug 29, 2003 10:01 am
Posts: 34
Location: florence, italy
well, maybe its so obvious that it won't help much, but just try persisting one class at a time, and even for that one class, persist first only the id field, then progressively all the rest. you don't need to put all the properties you want to persist at once in the xml mapping files (or in the xdoclet tags, if you use that)


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

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.