Hi,
I'm trying to connect to Access DB through the JDBC-ODBC bridge, but i'm receiving following Error.
Ignoring resources in Project output: /test2/bin
Adding Project Classpath file:/c:/Java/eclipse/workspace/test2/bin/
Adding Mapping - c:/Java/eclipse/workspace/test2/src/Cat.hbm.xml
java.lang.Exception: Error: Driver returned a null connection: MakConnection
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: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)
I have written simple connection program which uses the same settings as Hibernator, and it works. As you can see i'm trying to connect to the example table "CAT".
Please HELP :-).
Best Regards
Hytrus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That Driver class can return a null connection if the passed URL is not appropriate for the given Driver. This can happen if the classpath is wrong, or two JDBC drivers are in the classpath, or the JDBC URL is slightly wrong.
From your above comment about getting this to work outside of the plugin then I suspect that it may be some kind of other JDBC driver on the classpath.
Any luck since?
Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to connect to Access DB through the JDBC-ODBC bridge, but i'm receiving following Error.
Ignoring resources in Project output: /test2/bin
Adding Project Classpath file:/c:/Java/eclipse/workspace/test2/bin/
Adding Mapping - c:/Java/eclipse/workspace/test2/src/Cat.hbm.xml
java.lang.Exception: Error: Driver returned a null connection: MakConnection
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: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)
I have written simple connection program which uses the same settings as Hibernator, and it works. As you can see i'm trying to connect to the example table "CAT".
Please HELP :-).
Best Regards
Hytrus
That Driver class can return a null connection if the passed URL is not appropriate for the given Driver. This can happen if the classpath is wrong, or two JDBC drivers are in the classpath, or the JDBC URL is slightly wrong.
From your above comment about getting this to work outside of the plugin then I suspect that it may be some kind of other JDBC driver on the classpath.
Any luck since?
Daniel