-->
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: re: IndexOutOfBounds exception thrown from Code Generation
PostPosted: Thu Aug 16, 2007 8:13 am 
Newbie

Joined: Thu Aug 16, 2007 7:26 am
Posts: 2
I am using Eclipse 3.2 and 3.3 and both exhibit the same behavior.

When I use the Hibernate Code Generation Dialog, I have two configurations, one that I am trying to create a new database from java classes, using annotations, and the other is to go to another database and reverse engineer it, using annotations.

I am also using jdk1.6, on WinXP.

Hibernate Tools 3.2 beta 9 is also what I am using.

For the reverse engineering, the hibernate.cfg.xml works, as it is able to find the tables, and show me the schema of the tables, but, I have only created the other database, I am trying to get Hibernate to create everything.

When I select exporter->Schema Document I get this error, under both configurations, but when I don't select it, no error, but no java classes, just some html files and other resources.

I am not concerned with the lack of source creation, but the error message may be of interest, as it appears that you assume that some files will be created.

Error
Thu Aug 16 08:08:43 EDT 2007
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.remove(Unknown Source)
at org.hibernate.tool.hbm2x.DocExporter.generatePackageSummary(DocExporter.java:386)
at org.hibernate.tool.hbm2x.DocExporter.doStart(DocExporter.java:161)
at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:257)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:89)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:228)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:130)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Top
 Profile  
 
 Post subject: re: IndexOutOfBounds exception thrown from Code Generation
PostPosted: Thu Aug 16, 2007 10:21 am 
Newbie

Joined: Thu Aug 16, 2007 7:26 am
Posts: 2
I made some changes to the reveng.xml file and it was able to create the files, but, I think having a possibility of an IndexOutOfBounds exception may be a problem.

So, most likely the problem with the other configuration is my fault also.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 11:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
report in jira.

_________________
Max
Don't forget to rate


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.