-->
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.  [ 6 posts ] 
Author Message
 Post subject: rev engineering IndexOutOfBoundsException
PostPosted: Wed Jul 16, 2008 10:10 am 
Newbie

Joined: Thu Jul 03, 2008 5:18 pm
Posts: 3
Hello:

I am trying the reverse engineering tools. I keep getting the exception generated below. I even download and installed the nightly build of the tools (HibernateTools-3.2.2.200807151612-nightly), and I still keep getting the same exception.

I can connect to the database and select the schema that I want correctly. hibernate.reveng.xml is included below as well. Any help is appreciated.


Hibernate version: 3.2

Full stack trace of any exception that occurs:

Exception while generating code
Reason:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Index: 0, Size: 0
<No message>

Name and version of the database you are using: postgres 8.3


hibernate.reveng.xml

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >

<hibernate-reverse-engineering>
<table-filter match-schema="public" match-name=".*"/>
</hibernate-reverse-engineering>


Top
 Profile  
 
 Post subject: rev engineering IndexOutOfBoundsException: Supported DB
PostPosted: Thu Jul 17, 2008 1:16 am 
Newbie

Joined: Tue Jul 15, 2008 2:44 pm
Posts: 3
Location: Switzerland
Hi,

I had the same issue with postgresql 8.3 and I had as well issues with derby.

I finally ended up having an exact look at the supported databases: "Reverse Engineering support in database and drivers": http://www.hibernate.org/383.html

Now I'm working with hsqldb 1.8.0.10 which works fine so far.
So finally what you could do is to have a really lightweight hsqldb 1.8.0.10 parallel installation for the reverse engineering and generation and after generation work with postgresql.

Regards
Raoul

_________________
Raoul Becke
Switzerland


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 17, 2008 8:23 pm 
Newbie

Joined: Thu Jul 03, 2008 5:18 pm
Posts: 3
Hmm. I did check out that page and it said you should use a decent driver. I am using jdbc type3 from the postgres website. Is this considered "decent"?

How about a lower version of postgres? Perhaps 8.2?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 18, 2008 12:36 am 
Newbie

Joined: Tue Jul 15, 2008 2:44 pm
Posts: 3
Location: Switzerland
Maybe try jdbc type2 and/or a lower version of postgres ...
Let me know if it works.
good luck

_________________
Raoul Becke
Switzerland


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 18, 2008 7:36 pm 
Newbie

Joined: Thu Jul 03, 2008 5:18 pm
Posts: 3
I tried postgres v8.2, with jdbc types 2, 3, 4, and I still get that error. Has anyone been able to successfully run reverse engineering on postgres?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 21, 2008 1:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what is the full stacktrace?

I havent tried postgresql in a while, it worked "at some point" though ;(

probably best to create a jira issue for it since you shouldnt get an AOOB exception in any case.

_________________
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.  [ 6 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.