facebook

hibernate reverse engineering give errors.

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #594183 Reply

    DB Browser connect to a oracle db, Choice a table, right click menu to Use “hibernate reverse engineering…”, but always pop a error window. tried a few times, look the details, the error has change:
    An internal error occurred during: “Generating Artifacts”.java.lang.NullPointerException
    or:
    An internal error occurred during: “Generating Artifacts”.java.lang.ExceptionInInitializerError
    or:
    An internal error occurred during: “Generating Artifacts”.Could not initialize class org.hibernate.util.ReflectHelper

    What’s the problem?

    Attachments:
    You must be logged in to view attached files.
    #594199 Reply

    support-swapna
    Moderator

    Hi,

    Sorry that you are seeing this problem. Thank you for the screenshots.

    Can you please try these suggestions and see if it helps?

    1. To rule out project specific problems, can you please switch to a new workspace, create a new project and see if the Reverse Engineering works?

    2. Can you please check if Reverse Engineering a table in MyEclipse Derby database works to rule out database specific issues?

    3. If none of the above suggestions work, then try adding a -clean flag for one launch of MyEclipse and attempt your reverse engineering again.

    4. If starting MyEclipse with -clean does not help, then please try re-installing. You can choose to repair an existing installation, or install a new copy, during the install. Delete the .deliverycenter.installs file located in your user home directory and run the MyEclipse installer to install a new copy of MyEclipse.

    5. If you still have problems, then 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. Also share with us the MyEclipse version and build id details (from Help > About MyEclipse section) and Oracle DB version and the JDBC driver details to help us investigate further.

    Apologies for inconvenience caused. Please let us know how you get on with this issue.

    –Swapna
    Genuitec Support

    #594271 Reply

    Hi,
    I tried the first suggestion, switch to a new workspace, created a new project, and the Reverse Engineering worked well.
    Thank you very much!

    #594272 Reply

    Now, the Hibernate Reverse Engineering works well.
    Thank you!

    #594274 Reply

    support-swapna
    Moderator

    Glad that it works. Thank you for getting back to us.
    Please let us know if you see any other issues.

    –Swapna
    Genuitec Support

    #594283 Reply

    Hi,
    I switched to the old workspace,created a new web propject, then Reverse
    Engineering a table in MyEclipse Derby database works, the issues still
    occured.(10.jpg, but I forgot to backup .log file)

    I deleted the .log file, then restarting myeclipse, the issues were
    disappeared! but when I tried to do Hibernate Reverse Engineering for a few
    times, the errors occured again, either oracle or Derby database.(oracle:
    11.jpg and 11.log, 12.jpg and 12.log. Derby: 13.jpg and 13.log)

    I started MyEclipse with -clean, for new Web Project, Reverse Engineering a
    table, it worked well. but for my old Web Project, the issues occured
    again. (14.log) It’s worth noting that the issues occured once, it always occured,
    whether old Web Project or new Web Project, unless starting Myeclipse with
    -clean or create a new workspace.

    My database is oracle 11g, jar is ojdbc5.jar.
    Hibernate’s release is 3.3.2 or 3.2.
    Server Runtime is WebSphere 7.

    Attachments:
    You must be logged in to view attached files.
    #594308 Reply

    To Create new workspace, My problem was solved. I provided the above information, hopefully that will help you find out why the errors occur.
    Good lucky.

    #594314 Reply

    support-swapna
    Moderator

    Thank you for the detailed report and the log files. We are looking into it.
    We will get back to you in case we need any additional information.

    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #594439 Reply

    I asked a question once, the link below:
    https://www.genuitec.com/forums/topic/the-starting-page-of-myeclipse-2017-ci-spend-too-long-time-why/

    Now, the problem solved. The method is as the following:
    Increase the -Xms value to 384m ( the old value is 256m) in the myeclipse.ini file.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: hibernate reverse engineering give errors.

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