Menu

Driver returned a null connection

Help
Anonymous
2003-07-16
2003-11-20
  • Anonymous

    Anonymous - 2003-07-16

    Im running Hibernator 0.9.5 in Eclipse 2.1 trying to connect to an Oracle Database having this exception in the log window:
    java.lang.Exception: Error: Driver returned a null connection: prueba
        at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:179)
        at net.sf.hibernator.views.ConnectionView.connect(ConnectionView.java:185)
        at net.sf.hibernator.views.ConnectionView.access$4(ConnectionView.java:180)
        at net.sf.hibernator.views.ConnectionView$6.run(ConnectionView.java:164)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
        at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
        at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
        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:845)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
        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.basicRun(Main.java:291)
        at org.eclipse.core.launcher.Main.run(Main.java:747)
        at org.eclipse.core.launcher.Main.main(Main.java:583)

    Thanks!!!!

     
    • Anonymous

      Anonymous - 2003-11-08

      Your driver settings are probably incorrect - check the connection url in particular.  You may want to provide more details regarding your connection settings

      -Scott

       
    • Anonymous

      Anonymous - 2003-11-20

      in oracle you must supply the complete url connection string ... like this:

      jdbc:oracle:thin:@127.0.0.1:1521:ora

      voil

       
    • Anonymous

      Anonymous - 2003-11-20

      i forgot this....... i'am using:

      eclipse 2.1.2
      hibernator_0.9.6
      Personal Oracle9i Release 9.2.0.1.0

      ok see ya

       

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.