-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate tools generation issue
PostPosted: Wed Jun 06, 2007 9:41 am 
Newbie

Joined: Wed Mar 07, 2007 1:29 pm
Posts: 3
Hi,

I am using Eclipse 3.2, JD1.5 and Hibernate Tools 3.2.0beta9a.

I have successfully created the Hibernate Configuration File and the Hibernate Configurations Console (I can
even see the imported tables).

When I try to run the Hibernate Code Generation, I get this error:

java.lang.IndexOutOfBoundsException:Index:0,Size:0
<No message>


How can I fix this please?

This is an extract of my hibernate.cfg.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">retlit</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@retcap.migreto.dmz:1521:ret</property>
<property name="hibernate.connection.username">retlit</property>
<property name="hibernate.default_schema">RETLIT</property>
<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
</session-factory>
</hibernate-configuration>


Thanks a million in advance for help.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 2:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
when and where do you get that exception ?

is there any errors before or after with a more sensible stacktrace?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 3:58 am 
Newbie

Joined: Wed Mar 07, 2007 1:29 pm
Posts: 3
max wrote:
when and where do you get that exception ?

is there any errors before or after with a more sensible stacktrace?



This error occurs when I run the Hibernate Code Generation.
I cannot find the stack trace error but I can remember that I got some warning about primary keys not found.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 6:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
open Error Log, double click the message and copy/paste the stacktrace and i can see what is the issue.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 24, 2007 12:49 pm 
Newbie

Joined: Sun Jun 24, 2007 12:39 pm
Posts: 1
I have the same problem
Environment:

eclipse.buildId=M20060921-0945
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86

db=mysql-noinstall-5.0.41-win32.zip

my.ini
Code:
[WinMySQLAdmin]
Server=D:/mysql5.0.41/bin/mysqld-nt.exe

[mysqld]
basedir=D:/mysql5.0.41
datadir=D:/mysql5.0.41/data
default-table-type=innodb
default-character-set=utf8


exception:

Code:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.remove(ArrayList.java:389)
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:639)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:754)
at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:944)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.