For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 8 replies, 3 voices, and was last updated 19 years, 7 months ago by
eporeily.
-
AuthorPosts
-
eporeilyMemberI get the following error when I open an HQL file.
java.lang.NullPointerException
at org.eclipse.core.runtime.Path.<init>(Path.java:152)
at com.genuitec.eclipse.hibernate.util.HibernateUtils.getConfigFile(HibernateUtils.java:321)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfigurationPreferences(HTUtils.java:173)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfigurationPreferences(HTUtils.java:136)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:128)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:109)
at com.genuitec.eclipse.hibernate.util.ConsoleConfigurationRepository.createFromHibernateProject(ConsoleConfigurationRepository.java:52)
at com.genuitec.eclipse.hibernate.util.ConsoleConfigurationRepository.find(ConsoleConfigurationRepository.java:39)
at com.genuitec.eclipse.hibernate.util.ConsoleConfigurationRepository.getHibernateConfigsFromWorkspace(ConsoleConfigurationRepository.java:81)
at com.genuitec.eclipse.hibernate.util.ConsoleConfigurationRepository.getConfigurations(ConsoleConfigurationRepository.java:59)
at org.hibernate.console.KnownConfigurations.getConfigurations(KnownConfigurations.java:178)
at com.genuitec.eclipse.hibernate.editors.MEHQLEditor.createSourceViewer(MEHQLEditor.java:76)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2549)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:367)
at org.hibernate.eclipse.hqleditor.HQLEditor.createPartControl(HQLEditor.java:113)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2588)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2521)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2513)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2498)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2493)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2470)
at org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:132)
at org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:100)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)I’m running windows 2000 with Eclipse SDK
Version: 3.2.0
Build id: M20060629-1905 with Milestone 2August 3, 2006 at 4:37 pm #256106
Riyad KallaMemberCan you please paste the result from the MyEclipse menu, then About MyEclipse then Installation Summary?
August 4, 2006 at 8:19 am #256139
eporeilyMember*** Date: Fri Aug 04 09:17:57 EDT 2006
*** System properties:
OS=Windows2000
OS version=5.0
Java version=1.5.0_07*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.0 Milestone 2
Build id: 20060703-5.0-M2*** Eclipse details:
Eclipse SDKVersion: 3.2.0
Build id: M20060629-1905Eclipse Graphical Editing Framework
Version: 3.2.0.v20060626
Build id: 20060627-0816Eclipse Platform
Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
Build id: M20060629-1905Eclipse RCP
Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
Build id: M20060629-1905Eclipse Java Development Tools
Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
Build id: M20060629-1905Eclipse Plug-in Development Environment
Version: 3.2.0.v20060609m——6zXJJzJzJq
Build id: M20060629-1905Eclipse Project SDK
Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
Build id: M20060629-1905Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
c:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
378_378
-data
c:\workspace
-vm
c:\jdk1.5.0_07\bin\javaw.exeLet me know if you need anything else.
Thanks,
ErickAugust 4, 2006 at 8:20 am #256140
Riyad KallaMemberCan you post the HQL file here so I can try this locally?
August 4, 2006 at 8:41 am #256141
eporeilyMemberFROM FCBATCHPROCESSDATE and it also occurs when I open a ‘blank’ new editor as well.
August 6, 2006 at 8:42 am #256196
Brian FernandesModeratoreporeily,
Can you tell me how you are opening the HQL file?
To work with HQL, you must make sure your project has hibernate capabilities added to it. When you open the project properties and go to the Hibernate page, the config file path should point to an existing config file in your project.
You can then open the HQL editor either by creating one in your project and double clicking it or right click the project, and choose MyEclipse > Open HQL Editor.Let us know if you still experience issues,
Best,
Brian.August 8, 2006 at 1:51 pm #256359
eporeilyMemberI’m opening the file as you have described. I thought the issue is with the version of Hibernate I’m using in my project (I upgrade the project to 3.1) but I just created a new project and added Hibernate to it and tried to open the hql file in that project and it gave me the same error. Also, the config path is pointed to the correct configuration file.
Thanks,
ErickAugust 8, 2006 at 3:56 pm #256369
Brian FernandesModeratorErick,
Well, this is really odd. I can’t understand why it’s failing where it does – especially if your project is setup right.
Can you check your error log again (try clearing it to make sure).Also, can you past the contents of the .project and .myhibernatemetadata file here for us to see?
Thanks,
Brian.August 11, 2006 at 8:43 am #256577
eporeilyMemberHere you go.
#
#Tue Aug 08 14:39:57 EDT 2006
genBasicCompId=false
sessionFactoryName=com.duke.interf.wincprosym.mapping.HibernateSessionFactory
profile=
daoSFId=
version=3.0
jndiPath=
springDaoFile=
useJavaTypes=true
keyGenerator=
libInstallFolder=/lib
addLibs2Project=true
genVersionTag=false
sessionFactoryId=
basePersistenceClass=
reSettingsFile=
configFile=/WinCProsym/src/hibernate.cfg.xml
createConfigFile=false
addLibs2Classpath=true
baseDaoClass=com.duke.interf.wincprosym.mapping.BaseHibernateDAO<?xml version=”1.0″ encoding=”UTF-8″?>
<projectDescription>
<name>WinCProsym</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.hibernate.HibernateBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.genuitec.eclipse.hibernate.hibernatenature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription> -
AuthorPosts
