Hibernate version: 3.1.0.alpha5
Mapping documents: does not appear to matter, but for instance:
Quote:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.rangegate.razor.entities.containment.CZoneType"
table="ZONETYPE" >
<id name="id" type="long" column="hibid">
<generator class="native"/>
</id>
<version name = "version" column="hibversion" type="long"
unsaved-value="undefined" />
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close(): tools usage, not coding
Full stack trace of any exception that occurs:Quote:
java.lang.IllegalStateException: Old-style documentChanged() called
at com.objfac.xmleditor.partition.Partitioner.documentChanged(Partitioner.java)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.notifyDocumentPartitionersDocumentChanged(BasicStructuredDocument.java:465)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1180)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.setText(BasicStructuredDocument.java:2500)
at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.setText(JobSafeStructuredDocument.java:140)
at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.set(BasicStructuredDocument.java:2358)
at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.setDocumentContent(ResourceTextFileBuffer.java:511)
at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:248)
at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:238)
at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:99)
at org.eclipse.pde.internal.builders.XMLErrorReporter.<init>(XMLErrorReporter.java:68)
at org.eclipse.pde.internal.builders.ManifestErrorReporter.<init>(ManifestErrorReporter.java:30)
at org.eclipse.pde.internal.builders.ExtensionsErrorReporter.<init>(ExtensionsErrorReporter.java:39)
at org.eclipse.pde.internal.builders.ManifestConsistencyChecker.checkFile(ManifestConsistencyChecker.java:76)
at org.eclipse.pde.internal.builders.ManifestConsistencyChecker.checkThisProject(ManifestConsistencyChecker.java:44)
at org.eclipse.pde.internal.builders.ManifestConsistencyChecker.build(ManifestConsistencyChecker.java:33)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Name and version of the database you are using: not accesing a d/b
The generated SQL (show_sql=true): n/a
Debug level Hibernate log excerpt: n/a
Installed the current tools: 3.1.0.alpha5 against eclipse 3.1 via the update site. Restarted eclipse following install and then restarted again with -clean.
My features listing does not show any hibernate or wst features, but the plugins listing shows 4 hibernate plugins and 9 wst 0.7.0 plugins.
Hibernate perspective exists, but:
1) XML files offer "text editor", "XML Buddy" or "XML Editor". From other posts I gather the "XML Editor" option is the one I need. When I open the document this opens a two tab window with the words "The document is empty. Right mouse here to insert content.", but right mouse does nothing. Switching the editor from "design" to "source" shows an un-anotated, uncloured editor containing my mapping file without any auto-expansion etc.
2) Three warnings appear without stack traces each time I try to open a mapping file:
Unexpected IDocument implementation: org.eclipse.jface.text.Document
StructuredTextEditor being used without StructuredDocument
Input Name: CZoneType.hbm.xml
The order these appear in varies.
3) Two exceptions occur at intervals: the one shown at the top and the following:
Quote:
java.lang.RuntimeException: WARNING: Prevented recursive attempt to activate part org.eclipse.ui.views.PropertySheet while still in the middle of activating part org.hibernate.eclipse.console.views.QueryPageTabView
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2818)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2471)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:249)
at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:214)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:998)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:1855)
at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:1961)
at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:3630)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3102)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
at org.eclipse.swt.internal.win32.OS.ShowWindow(Native Method)
at org.eclipse.swt.widgets.Tree.showWidget(Tree.java:2284)
at org.eclipse.swt.widgets.Control.setVisible(Control.java:2482)
at org.eclipse.ui.part.PageBook.showPage(PageBook.java:108)
at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:797)
at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:617)
at org.eclipse.ui.views.properties.PropertySheet.partActivated(PropertySheet.java:189)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:58)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:108)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2859)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2471)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:249)
at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:295)
at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:788)
at org.eclipse.ui.internal.PartStack.access$0(PartStack.java:771)
at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:119)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:126)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:84)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:660)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3138)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1922)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
If I disable XML Buddy then everything works. Not much of an issue for me as I primarily use XML Buddy for editting mapping files, but this may bite others.