- This topic has 6 replies, 4 voices, and was last updated 15 years, 7 months ago by Brian Fernandes.
-
AuthorPosts
-
alexmcbethMemberWhe I try and open a HQL editor for my proejct I get the following error :-
A configuration object could not be built, autocomplete and dynamic query translation will be unavailable.Queries cannot be executed.
Reason:
org.eclipse.core.internal.resources.WorkspaceRoot cannot be cast to org.eclipse.core.resources.IFileAny ideas?
Here are my installation details :-
*** Date: Friday, 19 June 2009 18:04:12 o'clock BST ** System properties: OS=WindowsVista OS version=6.0.0 Java version=1.6.0_13 *** MyEclipse details: MyEclipse Enterprise Workbench Version: 7.5 Build id: 7.5-20090609 *** Eclipse details: MyEclipse Enterprise Workbench Version: 7.5 Build id: 7.5-20090609 Eclipse Plug-in Development Environment Version: 3.4.2.R342_v20090122-7T7U1E9imVKz-A8Vz-p_jRS Build id: M20080703-0800 Eclipse Platform Version: 3.4.2.R342_v20090122-9I96EiWElHi8lheoJKJIvhM3JfVsYbRrgVIWL Build id: M20090211-1700 Eclipse Graphical Editing Framework GEF Version: 3.4.2.v20090218-1145-67728084A56B4I233613552 Build id: 200809101400 Eclipse RCP Version: 3.4.200.R342_v20090122-989JESTEbig-SVaL8UJHcYBr4A63 Build id: M20090211-1700 Eclipse Java Development Tools Version: 3.4.2.r342_v20081217-7o7tEAoEEDWEm5HTrKn-svO4BbDI Build id: M20090211-1700 Eclipse startup command=-os win32 -ws win32 -arch x86 -showsplash -launcher C:\Users\macbea\AppData\Local\Genuitec\MyEclipse 7.1\myeclipse.exe -name Myeclipse --launcher.library C:\Users\macbea\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\macbea\AppData\Local\Genuitec\MyEclipse 7.1\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar -clean -configuration configuration -vm C:\Users\macbea\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
Loyal WaterMemberDoes this happen with all projects or just one particular hibernate project? Did you upgrade to ME 7.5 or install ME 7.5 from scratch? Can you create a new hibernate project and check if you are able to work with the HQL editor.
alexmcbethMemberI have just created a new project, added hibernate capabilities and the error does not appear.
I have noticed that my original project does not have either a hibernate.cg.xml or a .myhibernatedata file – i have tried copying these from my new project and changed the libInstallFolder location but the error is still showing.
alexmcbethMemberHang on – I have now added the same hibernate libraries as in the new working project and the error has no gone.
Thanks for pointing me in the right direction.
alexmcbethMemberUnfortunately I have now moved onto a different error.
I simply enter “from category” into the editor, run it and a pop-up appears (and dissappears quickly) saying “refreshing hibernate project context”.
The following entry appears in the logs
!ENTRY org.hibernate.eclipse.console 1 0 2009-06-20 10:18:29.923
!MESSAGE Could not refresh Hibernate project context java.lang.reflect.InvocationTargetException
support-shaliniMemberalexmcbeth,
Can you clarify if any of the class names are duplicated under different packages?
Brian FernandesModeratorAlex,
I have a few questions:
1) Can you please paste the contents of your .myhibernatedata file here for us?
2) You mentioned earlier that you copied your hibernate.cfg.xml file in from another project, is this file valid for your current project?
3) Is this a Hibernate 3.2 project (when you created it, did you select Hibernate 3.2?)
4) Are you using POJOs and .hbm.xml (mapping) files or just annotated POJOs? -
AuthorPosts