- This topic has 9 replies, 3 voices, and was last updated 16 years, 10 months ago by
Brian Fernandes.
-
AuthorPosts
-
JoseMemberI have NOT installed any other pluggins. I suddenly started to get this exception when I tried to open the HQL Editor (which was working previously).
After getting this exception I got any current updates to existing features and installed those, but still get the error. I am using Version 6.0.1 GA Build id: 6.0.1-GA-200710
I also uninstalled MyEclipse 6.0.1 and installed the latest 6.5 version. I’m still getting this exception.
Any ideas? Here is the exception:
!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2008-06-25 15:11:12.375
!MESSAGE org.eclipse.core.internal.resources.WorkspaceRoot
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:11:12.375
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:11:12.390
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2008-06-25 15:11:12.390
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2008-06-25 15:11:29.218
!MESSAGE org.eclipse.core.internal.resources.WorkspaceRoot
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:11:29.218
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:11:29.218
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2008-06-25 15:11:29.218
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2008-06-25 15:11:32.234
!MESSAGE org.eclipse.core.internal.resources.WorkspaceRoot
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:11:32.234
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:11:32.234
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2008-06-25 15:11:32.234
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2008-06-25 15:11:57.921
!MESSAGE org.eclipse.core.internal.resources.WorkspaceRoot
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:11:57.921
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:11:57.921
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2008-06-25 15:11:57.921
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2008-06-25 15:14:07.000
!MESSAGE org.eclipse.core.internal.resources.WorkspaceRoot
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:14:07.000
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:14:07.000
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2008-06-25 15:14:07.000
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2008-06-25 15:14:10.890
!MESSAGE org.eclipse.core.internal.resources.WorkspaceRoot
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:14:10.890
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:14:10.890
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2008-06-25 15:14:10.890
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException!ENTRY com.genuitec.org.hibernate.eclipse.console 4 4 2008-06-25 15:14:53.703
!MESSAGE org.eclipse.core.internal.resources.WorkspaceRoot
!SUBENTRY 1 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:14:53.703
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
!SUBENTRY 2 com.genuitec.org.hibernate.eclipse.console 4 150 2008-06-25 15:14:53.703
!MESSAGE java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
!STACK 0
java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot
at com.genuitec.eclipse.hibernate.wizards.MEConsoleConfiguration.buildWith(MEConsoleConfiguration.java:114)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:119)
at com.genuitec.eclipse.hibernate.action.MERefreshCCAction$1.run(MERefreshCCAction.java:93)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)!ENTRY com.genuitec.org.hibernate.eclipse.console 1 0 2008-06-25 15:14:53.843
!MESSAGE Could not refresh Hibernate project context com.genuitec.eclipse.hibernate.action.MERefreshCCAction$InProgressException
JoseMembereclipse.buildId=M20080221-1800
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -clean
Loyal WaterMemberCan you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.
Brian FernandesModeratorWhen you said it was working fine before, which version was that – MyEclipse 5.5?
From the stack trace, there seems to be a problem with your configuration file. If you right click on your project, go to properties and then MyEclipse > Hibernate, can you ensure that a valid Hibernate configuration file is selected? This configuration file must be a member of the same project. Could you paste the contents of the .myhibernatedata file in your project here?
Thanks
JoseMemberAhhhhh! No valid coinfiguration file must be the issue – not sure how it is no longer present (maybe mistakenly deleted). How can I re-generate or do I have to write manually – if so, what contents? Thanks for your help!!
(Was working in version 6.0.1)
*** Date:
Friday, June 27, 2008 9:50:12 AM CDT** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.5.0 GA
Build id: 6.5.0-GA-20080609*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 6.5.0 GA
Build id: 6.5.0-GA-20080609Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800Eclipse Project SDK
Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\tools\MyEclipse 6.5\eclipse\eclipse.exe
-name
Eclipse
–launcher.library
C:\tools\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
C:\tools\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata
11f4_7c
-clean
-vm
C:\tools\MyEclipse 6.5\jre\bin\javaw.exe
JoseMemberCorrection: the myhibernatedata file is what is missing so MyEclipse->Hibernate not aware of my Hibernate.cfg.
Brian FernandesModeratorNote, the file is .myhibernatedata (because it starts with a period, it may be hidden by default, you would need top disable the filter in the Package Explorer view or just have a look at that same project Windows Explorer).
In any case, go to the property page I pointed out earlier, does it point to a valid, existing Hibernate configuration file? If not, use the browse button to reselect your configuration file. If you do not have a configuration file (unlikely if you have a working Hibernate application), you will need to create one from scratch, you can use our Hibernate configuration file wizard to create one and then you can populate it using our form based editor (which will open on double click).
In the unlikely event that you are actually missing the .myhibernatedata file in your project, let us know so we can direct you further.
Hope this helps.
JoseMemberIssue Resolved. I was able to cheat off one of my other projects to regen the myhibernatedata file, copy to my current project, change the entry to point to my hibernate.cfg and all is well. Now project properties->MyEclipse->Hibernate properly displays my cfg file. Thanks for pointing me in the right direction 😉
JoseMember@Support-Brian wrote:
Note, the file is .myhibernatedata (because it starts with a period, it may be hidden by default, you would need top disable the filter in the Package Explorer view or just have a look at that same project Windows Explorer).
In any case, go to the property page I pointed out earlier, does it point to a valid, existing Hibernate configuration file? If not, use the browse button to reselect your configuration file. If you do not have a configuration file (unlikely if you have a working Hibernate application), you will need to create one from scratch, you can use our Hibernate configuration file wizard to create one and then you can populate it using our form based editor (which will open on double click).
In the unlikely event that you are actually missing the .myhibernatedata file in your project, let us know so we can direct you further.
Hope this helps.
Sorry, I didn’t notice this response before my last post. Thanks for the info on how to point to the Hibernate.cfg. I appreciate your help. Thanks!!
Brian FernandesModeratorNo problem, glad it’s working now. Thanks for following up!
-
AuthorPosts