Hi,
I have a list of strange error when I try to open the Hibernator perspective in Eclipse 3.1M5 (I guess).
I use :
Hibernate Tools 3.0 alpha 1
Hibernate 3.0.1
Eclipse Platform Version: 3.1.0 (eclipse.buildId=I20050401-1645)
java version (of Eclipse)=1.4.2_06
JRE for the software : 1.3.1
This is one of the error:
Code:
Unable to create view ID org.hibernate.eclipse.console.views.QueryPageTabView: An unexpected exception was thrown.
with this stack trace:
Code:
java.lang.NullPointerException
at com.mysql.jdbc.SingleByteCharsetConverter.toString(SingleByteCharsetConverter.java:190)
at com.mysql.jdbc.ResultSet.extractStringFromNativeColumn(ResultSet.java:4175)
at com.mysql.jdbc.ResultSet.getNativeConvertToString(ResultSet.java:6855)
at com.mysql.jdbc.ResultSet.getNativeBoolean(ResultSet.java:5628)
at com.mysql.jdbc.ResultSet.getBoolean(ResultSet.java:734)
at com.mysql.jdbc.ResultSet.getBoolean(ResultSet.java:747)
at org.hibernate.type.BooleanType.get(BooleanType.java:24)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:62)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:53)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:70)
at org.hibernate.persister.BasicEntityPersister.hydrate(BasicEntityPersister.java:1525)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:817)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:775)
at org.hibernate.loader.Loader.getRow(Loader.java:687)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:280)
at org.hibernate.loader.Loader.doQuery(Loader.java:368)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:195)
at org.hibernate.loader.Loader.doList(Loader.java:1360)
at org.hibernate.loader.Loader.list(Loader.java:1343)
at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:872)
at org.hibernate.impl.SessionImpl.find(SessionImpl.java:973)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at org.hibernate.console.HQLQueryPage.getList(HQLQueryPage.java:30)
at org.hibernate.eclipse.console.views.QueryPageViewer$ContentProviderImpl.getElements(QueryPageViewer.java:74)
at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:765)
at org.eclipse.jface.viewers.TableViewer.getRawChildren(TableViewer.java:1046)
at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:707)
at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:822)
at org.eclipse.jface.viewers.TableViewer.internalRefreshAll(TableViewer.java:762)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:712)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:701)
at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1171)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1108)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1169)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1128)
at org.eclipse.jface.viewers.TableViewer.inputChanged(TableViewer.java:662)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:248)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1324)
at org.hibernate.eclipse.console.views.QueryPageViewer.createTable(QueryPageViewer.java:168)
at org.hibernate.eclipse.console.views.QueryPageViewer.createControl(QueryPageViewer.java:147)
at org.hibernate.eclipse.console.views.QueryPageViewer.<init>(QueryPageViewer.java:105)
at org.hibernate.eclipse.console.views.QueryPageTabView.rebuild(QueryPageTabView.java:78)
at org.hibernate.eclipse.console.views.QueryPageTabView.createPartControl(QueryPageTabView.java:125)
at org.eclipse.ui.internal.ViewFactory.busyRestoreViewHelper(ViewFactory.java:429)
at org.eclipse.ui.internal.ViewFactory.busyRestoreView(ViewFactory.java:299)
at org.eclipse.ui.internal.ViewFactory$1.run(ViewFactory.java:697)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.ViewFactory.restoreView(ViewFactory.java:694)
at org.eclipse.ui.internal.ViewFactory$ViewReference.getPart(ViewFactory.java:119)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:260)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:519)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
at org.eclipse.ui.internal.presentations.newapi.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.newapi.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.newapi.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1070)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1019)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1223)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:543)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:495)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:485)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:230)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:781)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:2821)
at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:837)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:822)
at org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:2972)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:2970)
at org.eclipse.ui.internal.ChangeToPerspectiveMenu.run(ChangeToPerspectiveMenu.java:91)
at org.eclipse.ui.actions.PerspectiveMenu.run(PerspectiveMenu.java:331)
at org.eclipse.ui.actions.PerspectiveMenu.runOther(PerspectiveMenu.java:346)
at org.eclipse.ui.actions.PerspectiveMenu$3.runWithEvent(PerspectiveMenu.java:108)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
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:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306)
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:228)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315)
at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
at org.eclipse.core.launcher.Main.run(Main.java:942)
at org.eclipse.core.launcher.Main.main(Main.java:926)
I also have a JFace error....? this is the error stack:
Code:
java.lang.NoClassDefFoundError: org/apache/commons/lang/builder/HashCodeBuilder
at com.desjardins.vmd.etl.persistence.model.Part.hashCode(Part.java:36)
at java.lang.Object.toString(Unknown Source)
at org.hibernate.eclipse.console.views.QueryPageViewer$LabelProviderImpl.getColumnText(QueryPageViewer.java:55)
at org.eclipse.jface.viewers.TableViewer.doUpdateItem(TableViewer.java:436)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:351)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1021)
at org.eclipse.core.runtime.Platform.run(Platform.java:757)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:40)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1670)
at org.eclipse.jface.viewers.TableViewer.createItem(TableViewer.java:322)
at org.eclipse.jface.viewers.TableViewer.internalRefreshAll(TableViewer.java:814)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:712)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:701)
at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1171)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1108)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1169)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1128)
at org.eclipse.jface.viewers.TableViewer.inputChanged(TableViewer.java:662)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:248)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1324)
at org.hibernate.eclipse.console.views.QueryPageViewer.createTable(QueryPageViewer.java:168)
at org.hibernate.eclipse.console.views.QueryPageViewer.createControl(QueryPageViewer.java:147)
at org.hibernate.eclipse.console.views.QueryPageViewer.<init>(QueryPageViewer.java:105)
at org.hibernate.eclipse.console.views.QueryPageTabView.rebuild(QueryPageTabView.java:78)
at org.hibernate.eclipse.console.views.QueryPageTabView.createPartControl(QueryPageTabView.java:125)
at org.eclipse.ui.internal.ViewFactory.busyRestoreViewHelper(ViewFactory.java:429)
at org.eclipse.ui.internal.ViewFactory.busyRestoreView(ViewFactory.java:299)
at org.eclipse.ui.internal.ViewFactory$1.run(ViewFactory.java:697)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.ViewFactory.restoreView(ViewFactory.java:694)
at org.eclipse.ui.internal.ViewFactory$ViewReference.getPart(ViewFactory.java:119)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:260)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:519)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
at org.eclipse.ui.internal.presentations.newapi.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.newapi.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.newapi.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1070)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1019)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1223)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:543)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:495)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:485)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:230)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:781)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:2821)
at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:837)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:822)
at org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:2972)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:2970)
at org.eclipse.ui.internal.ChangeToPerspectiveMenu.run(ChangeToPerspectiveMenu.java:91)
at org.eclipse.ui.actions.PerspectiveMenu.run(PerspectiveMenu.java:331)
at org.eclipse.ui.actions.PerspectiveMenu.runOther(PerspectiveMenu.java:346)
at org.eclipse.ui.actions.PerspectiveMenu$3.runWithEvent(PerspectiveMenu.java:108)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
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:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2894)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2527)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306)
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:228)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:315)
at org.eclipse.core.launcher.Main.basicRun(Main.java:268)
at org.eclipse.core.launcher.Main.run(Main.java:942)
at org.eclipse.core.launcher.Main.main(Main.java:926)
I know I am using the HashCodeBuilder in my POJO persistence class, but why it is interfering with the Hibernate Tool?
Thanks for any idea.
Etienne.