Menu

npe on query execute

Help
daniel
2003-10-30
2003-11-05
  • daniel

    daniel - 2003-10-30

    I can create/update an schema, but when I try to execute a simple query, I get no results. The error logs show a NullPointerException.

    I'm using Hibernator 0.95, Eclipse 2.1.1, Hibernate 2.0.3, Sun JDK 1.4.2 and Postgres 7.3

    Thanks
    Daniel

    java.lang.NullPointerException
        at net.sf.hibernator.HibernateConnection.query(HibernateConnection.java:211)
        at net.sf.hibernator.views.QueryView.execute(QueryView.java:97)
        at net.sf.hibernator.views.QueryView.access$0(QueryView.java:93)
        at net.sf.hibernator.views.QueryView$1.handleEvent(QueryView.java:54)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:923)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1641)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1433)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
        at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
        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.basicRun(Main.java:291)
        at org.eclipse.core.launcher.Main.run(Main.java:747)
        at org.eclipse.core.launcher.Main.main(Main.java:583)

     
    • Daniel Bradby

      Daniel Bradby - 2003-11-05

      If you could upgrade to 0.9.6 and show me your query and mapping files that would be great.

      Thanks

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.