- This topic has 8 replies, 2 voices, and was last updated 6 years, 3 months ago by Gao Yongpeng Industrial and Commercial bank of China LTD, Hebei Branch.
-
AuthorPosts
-
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.ReflectHelperWhat’s the problem?
Attachments:
You must be logged in to view attached files.
support-swapnaModeratorHi,
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 SupportHi,
I tried the first suggestion, switch to a new workspace, created a new project, and the Reverse Engineering worked well.
Thank you very much!Now, the Hibernate Reverse Engineering works well.
Thank you!
support-swapnaModeratorGlad that it works. Thank you for getting back to us.
Please let us know if you see any other issues.–Swapna
Genuitec SupportHi,
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.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.
support-swapnaModeratorThank 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 SupportI 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. -
AuthorPosts