-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Possible HQL Result View bug?
PostPosted: Sat Dec 31, 2005 7:47 pm 
Newbie

Joined: Thu Jun 03, 2004 7:42 pm
Posts: 3
Hello,

I've spent the day playing with the Tools plugin for Eclipse. Both Eclipse and the plugin are the newest versions available, I did clean installs today, and I'm on Linux (GTK version of Eclipse).

Things go just great until I try to view HQL results in the HQL Query Result View. The underlying error seems to be "Unable to create view: null argument", with stack trace

Quote:
org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:149)
at org.eclipse.jface.util.Assert.isNotNull(Assert.java:125)
at org.eclipse.jface.viewers.StructuredViewer.assertElementsNotNull(StructuredViewer.java:545)
at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:849)
at org.eclipse.jface.viewers.TableViewer.getRawChildren(TableViewer.java:1086)
at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:790)
at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:905)
at org.eclipse.jface.viewers.TableViewer.internalRefreshAll(TableViewer.java:798)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:748)
at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:737)
at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1264)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1201)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1262)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1221)
at org.eclipse.jface.viewers.TableViewer.inputChanged(TableViewer.java:698)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:248)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1417)
at org.hibernate.eclipse.console.views.QueryPageViewer.createTable(QueryPageViewer.java:174)
at org.hibernate.eclipse.console.views.QueryPageViewer.createControl(QueryPageViewer.java:153)
at org.hibernate.eclipse.console.views.QueryPageViewer.<init>(QueryPageViewer.java:111)
at org.hibernate.eclipse.console.views.QueryPageTabView.rebuild(QueryPageTabView.java:88)
at org.hibernate.eclipse.console.views.QueryPageTabView.createPartControl(QueryPageTabView.java:130)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:305)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:180)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1655)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:937)
at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:920)
at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3199)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3196)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3174)
at org.eclipse.ui.internal.ShowViewAction.run(ShowViewAction.java:76)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
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:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
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:585)
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)


which gets triggered pretty much every time the Result View is accessed.

The weirdest thing is that this is not completely consistent -- sometimes I actually do get a resultset out of the database and it gets displayed as I'd expect. This is, however, just about 5% of the time.

Am I missing something in my installation here? There shouldn't be anything conflicting in the setup... getting a "null" in the assertion does not really even point me in any direction as to how to solve this :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 01, 2006 5:11 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm - bummer I thought that bug were not present anymore.

Any hints on how to reproduce it would be great...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 01, 2006 10:14 am 
Newbie

Joined: Thu Jun 03, 2004 7:42 pm
Posts: 3
Would love to help you with that, but I really am not doing anything complex -- just trying to put a resultset into the view. I suspect there has to be something wrong with or otherwise "special" about my setup as this would be such a glaring problem that I wouldn't be alone if this was not the case.

I just reproduced it simply by going to the Hibernate console and clicking on the properties of my objects under the sessionfactory. First query lists values of one property fine, second query causes the error in the view, and all subsequent queries fail similarly.


Top
 Profile  
 
 Post subject: Unable to create view: null argument
PostPosted: Wed Jun 14, 2006 2:45 am 
Regular
Regular

Joined: Mon May 22, 2006 8:32 am
Posts: 67
Hi there,

i seem to have a similar problem. I just query my db view with

Code:
from mytable


and i got following error:

Code:
org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
   at org.eclipse.jface.util.Assert.isNotNull(Assert.java:149)
   at org.eclipse.jface.util.Assert.isNotNull(Assert.java:125)
   at org.eclipse.jface.viewers.StructuredViewer.assertElementsNotNull(StructuredViewer.java:545)
   at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:849)
   at org.eclipse.jface.viewers.TableViewer.getRawChildren(TableViewer.java:1086)
   at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:790)
   at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:905)
   at org.eclipse.jface.viewers.TableViewer.internalRefreshAll(TableViewer.java:798)
   at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:748)
   at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:737)
   at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1264)
   at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1201)
   at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1262)
   at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1221)
   at org.eclipse.jface.viewers.TableViewer.inputChanged(TableViewer.java:698)
   at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:248)
   at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1417)
   at org.hibernate.eclipse.console.views.QueryPageViewer.createTable(QueryPageViewer.java:173)
   at org.hibernate.eclipse.console.views.QueryPageViewer.createControl(QueryPageViewer.java:152)
   at org.hibernate.eclipse.console.views.QueryPageViewer.<init>(QueryPageViewer.java:110)
   at org.hibernate.eclipse.console.views.QueryPageTabView.rebuild(QueryPageTabView.java:88)
   at org.hibernate.eclipse.console.views.QueryPageTabView.createPartControl(QueryPageTabView.java:130)
   at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:305)
   at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:180)
   at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
   at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
   at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:512)
   at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
   at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:269)
   at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
   at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
   at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
   at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
   at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:785)
   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:3125)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
   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(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: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)



Is that a known bug? What can i do to query my views and tables correctly?

Regards,

a.k.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.