-->
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: ArrayIndexOutOfBoundsException while using middlegen
PostPosted: Fri May 07, 2004 6:16 am 
Newbie

Joined: Sat Mar 13, 2004 9:46 am
Posts: 10
Hi,

I'm trying to create the hbm files using middlegen, I downloaded the middlegen package and modified the existing build.xml shipped with middlegen (see code block).

When I start the middlegen tool I get the following exception:

build.xml:90: middlegen.MiddlegenException: Couldn't connect to database: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 26

Don't know what to do with it, please could someone help me out!?

Regards,
dee3lmo.

Code:
<target
      name="middlegen"
      description="Run Middlegen"
      unless="middlegen.skip"
      depends="init, check-driver-present, panic-if-driver-not-present"
   >
      <mkdir dir="${build.gen-src.dir}"/>

      <taskdef
         name="middlegen"
         classname="middlegen.MiddlegenTask"
         classpathref="lib.class.path"
      />

      <middlegen
         appname="${name}"
         gui="${gui}"
         databaseurl="${database.url}"
         driver="${database.driver}"
         username="${database.userid}"
         password="${database.password}"
      >
     
          <hibernate
            destination="${build.gen-src.dir}"
            package="${name}.hibernate"
            javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper"
         />     
     
      </middlegen>
     
   </target>


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 08, 2004 12:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Simply not enough information. The first step is to check your JDBC driver to make sure its able to connect to the data source. A secondly, the driver has the feature set to work correctly. Stating the obvious but don't use (unless you have to) non-stable drivers.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 08, 2004 7:28 am 
Newbie

Joined: Sat Mar 13, 2004 9:46 am
Posts: 10
I've changed the database driver and it now works fine! Was using the beta release...


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.