 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: Hibernate Reverse Engineering won't generate classes
Posted: Sep 17, 2008 - 10:31 PM
|
|
Registered Member


Joined: May 24, 2006
Posts: 12
|
|
Hi!
I've been working on this problem for two days now and I followed all the leads I found (Even here) without any success.
When I try to reverse engineer a table from my MySQL database I get the following error :
«Generating artifacts (Time of error ...)
Reason : java.util.NoSuchElementException
Then I look in the log and I get
| Quote: | !ENTRY org.eclipse.core.jobs 4 2 2008-09-17 17:25:15.786
!MESSAGE An internal error occurred during: "Generating Artifacts".
!STACK 0
java.util.NoSuchElementException
at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
at java.util.HashMap$ValueIterator.next(Unknown Source)
at com.genuitec.eclipse.hibernate.tool.MESingleClassExporter.doStart(MESingleClassExporter.java:59)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VAbstractExporter.start(VAbstractExporter.java:97)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:547)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:91)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:412)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) |
Here is my installation summury
| Code: | *** Date:
Wednesday, September 17, 2008 5:27:52 o'clock PM EDT
** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.5.1 GA
Build id: 6.5.1-GA-20080715
*** Eclipse details:
MyEclipse Enterprise Workbench
Version: 6.5.1 GA
Build id: 6.5.1-GA-20080715
Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800
Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800
Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800
Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800
Eclipse Project SDK
Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800
Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Users\Denis\AppData\Local\MyEclipse 6.5\eclipse\eclipse.exe
-name
Eclipse
--launcher.library
C:\Users\Denis\AppData\Local\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
C:\Users\Denis\AppData\Local\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata
1d54_120
-clean
-vm
C:\Users\Denis\AppData\Local\MyEclipse 6.5\jre\bin\javaw.exe |
Please help me... Any insight will be very appreciated...
Regards |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Hibernate Reverse Engineering won
Posted: Sep 18, 2008 - 08:02 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8013
|
|
What version of MySQL are you working with ? I would suggest you try out another version of MySQL as well. Does the problem persist? |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 09, 2009 - 07:32 PM
|
|
Registered Member


Joined: May 24, 2006
Posts: 12
|
|
Hi !
I have the exact same problem...
I'm using MyEclipse 7.1.1 on vista with MySQL 5.0.67 and mysql-connector-java-5.1.7-bin.jar...
I installed the latest version of MySQL with the same result (V 5.1.11)
I had the problem also with MyEclipse 6.5 before I installed version 7.1.1
Do you have a solution for this ?
Any insights will be appreciated...
Best regards !
The are my installation details :
*** Date:
mercredi 8 avril 2009 17 h 01 EDT
** System properties:
OS=WindowsVista
OS version=6.0.0
Java version=1.5.0_11
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.1.1
Build id: 7.1.1-20090310
*** Eclipse details:
MyEclipse Enterprise Workbench
Version: 7.1.1
Build id: 7.1.1-20090310
Eclipse Platform
Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
Build id: M20080911-1700
Eclipse Java Development Tools
Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
Build id: M20080709-0800
Eclipse Graphical Editing Framework GEF
Version: 3.4.1.v20080806-67718083A56B4H2A3213573
Build id: 200809101400
Eclipse RCP
Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
Build id: M20080703-0800
Eclipse Plug-in Development Environment
Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
Build id: M20080703-0800
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Users\Denis\AppData\Local\Genuitec\MyEclipse 7.1\myeclipse.exe
-name
Myeclipse
--launcher.library
C:\Users\Denis\AppData\Local\Genuitec\MyEclipse 7.1\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Users\Denis\AppData\Local\Genuitec\MyEclipse 7.1\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
-clean
-configuration
configuration
-vm
C:\Users\Denis\AppData\Local\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\client\jvm.dll |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 09, 2009 - 09:50 PM
|
|
Registered Member


Joined: May 24, 2006
Posts: 12
|
|
Hello everyone !
I found the cause of my problem... My database was the source of the problem...
I first tested the project on a new database with only one table... It worked !
Then I copied a table from the old database to the one I just created and it work too...
So I made a copy of all the tables and deleted the old (and somehow corrupted) database. Then I recreated the database from scratch and copied the saved tables and it worked too...
I will have to redo my relations since I had to change all my tables from InnoDB to MyISAM in order to copy all my tables... Maybe I could just backup the tables and restore them in a new database but I might have copy the source of the problem in the process...
Best regards ! |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 10, 2009 - 06:54 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8013
|
|
| Quote: |
I found the cause of my problem... My database was the source of the problem...
|
Glad you found the solution. Thanks for letting us know. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |