facebook

Hibernate reverse engineering internal error

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #321252 Reply

    chalksb
    Participant

    Hi,

    I tried to reverse engineer hibernate from MySQL database.
    While processing the MyEclipse IDE threw an error: An internal error occurred during: “Generating Artifacts”.
    Could not initialize class org.hibernate.util.ReflectHelper

    And wouldn’t finish generation.
    I’m running on Windows 7, JDK6.

    I use latest MyEclipse 10. Even though I have hibernate libraries in my classpath, In the logs I see:
    !ENTRY org.eclipse.core.jobs 4 2 2011-11-20 11:24:00.639
    !MESSAGE An internal error occurred during: “Generating Artifacts”.
    !STACK 0
    java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.util.ReflectHelper
    at org.hibernate.console.ConsoleConfiguration.configureStandardConfiguration(ConsoleConfiguration.java:581)
    at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:230)
    at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
    at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:206)
    at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:125)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:853)
    at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:412)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    Thanks,
    Chalk

    #321264 Reply

    support-tony
    Keymaster

    Chalk,

    Sorry you are seeing this problem.

    I’m unable to replicate the problem on Windows 7 – 64 bit, using 64-bit installations of MyEclipse and MySQL. Is that the same configuration as you have?

    The class not found problem is occurring in the Hibernate tools, not your project, so your project’s class path should not affect this, anyway. It looks like your MyEclipse installation or instance might be corrupted, for some reason. Please try the following actions:

    * Try a new workspace, import your project into the new workspace and try to reverse engineer again.
    * If that doesn’t work, try adding a -clean flag for one launch of MyEclipse and attempt your reverse engineering again.
    * If neither of the above works, try re-installing. You can choose to repair an existing installation, or install a new copy, during the install.

    If you still have problems. Please delete your .log file (in the .metadata folder of your workspace), relaunch MyEclipse, try reverse engineering again and attach the resultant .log file here.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate reverse engineering internal error

You must be logged in to post in the forum log in