- This topic has 11 replies, 3 voices, and was last updated 19 years, 3 months ago by tanwen.
-
AuthorPosts
-
Randall SvancaraMemberWhen ever I try to add a new connection to the dbexplorer, nothing happens. In the .log file I have these errors when I try to connect.
!SESSION 2005-10-27 21:16:58.781 ———————————————–
eclipse.buildId=M20050929-0840
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:07.671
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\css_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:07.718
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\forms_lists_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:07.765
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\htmlform_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:07.796
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\html_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:07.843
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\javascript_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:07.875
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\jsf_f_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:08.15
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\jsf_h_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:08.62
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_bean_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:08.125
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_html_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:08.156
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_logic_snippets.xml!ENTRY com.genuitec.eclipse.wizards 1 0 2005-10-27 21:17:08.187
!MESSAGE Installed snippet library: c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wizards_4.0.1\snippets\struts_tiles_snippets.xml!ENTRY org.eclipse.ui 4 4 2005-10-27 21:19:41.656
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-10-27 21:19:41.656
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createDialogArea(OpenConnectionDialog.java:150)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:157)
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createContents(OpenConnectionDialog.java:102)
at org.eclipse.jface.window.Window.create(Window.java:418)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
at org.eclipse.jface.window.Window.open(Window.java:776)
at com.genuitec.eclipse.sqlexplorer.actions.OpenPasswordConnectDialogAction.run(OpenPasswordConnectDialogAction.java:79)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:70)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:84)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
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$6.handleEvent(ActionContributionItem.java:441)
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:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
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)!ENTRY org.eclipse.ui 4 4 2005-10-27 21:19:42.265
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-10-27 21:19:42.265
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createDialogArea(OpenConnectionDialog.java:150)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:157)
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createContents(OpenConnectionDialog.java:102)
at org.eclipse.jface.window.Window.create(Window.java:418)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
at org.eclipse.jface.window.Window.open(Window.java:776)
at com.genuitec.eclipse.sqlexplorer.actions.OpenPasswordConnectDialogAction.run(OpenPasswordConnectDialogAction.java:79)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:70)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:84)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
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$6.handleEvent(ActionContributionItem.java:441)
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:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
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)!ENTRY org.eclipse.ui 4 4 2005-10-27 21:19:42.468
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-10-27 21:19:42.468
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createDialogArea(OpenConnectionDialog.java:150)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:157)
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createContents(OpenConnectionDialog.java:102)
at org.eclipse.jface.window.Window.create(Window.java:418)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
at org.eclipse.jface.window.Window.open(Window.java:776)
at com.genuitec.eclipse.sqlexplorer.actions.OpenPasswordConnectDialogAction.run(OpenPasswordConnectDialogAction.java:79)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:70)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:84)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
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$6.handleEvent(ActionContributionItem.java:441)
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:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
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)!ENTRY org.eclipse.ui 4 4 2005-10-27 21:19:42.671
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-10-27 21:19:42.671
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createDialogArea(OpenConnectionDialog.java:150)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:157)
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createContents(OpenConnectionDialog.java:102)
at org.eclipse.jface.window.Window.create(Window.java:418)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
at org.eclipse.jface.window.Window.open(Window.java:776)
at com.genuitec.eclipse.sqlexplorer.actions.OpenPasswordConnectDialogAction.run(OpenPasswordConnectDialogAction.java:79)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:70)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:84)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
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$6.handleEvent(ActionContributionItem.java:441)
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:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
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)!ENTRY org.eclipse.ui 4 4 2005-10-27 21:19:42.843
!MESSAGE Unhandled event loop exception!ENTRY org.eclipse.ui 4 0 2005-10-27 21:19:42.843
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createDialogArea(OpenConnectionDialog.java:150)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:157)
at com.genuitec.eclipse.sqlexplorer.actions.OpenConnectionDialog.createContents(OpenConnectionDialog.java:102)
at org.eclipse.jface.window.Window.create(Window.java:418)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:996)
at org.eclipse.jface.window.Window.open(Window.java:776)
at com.genuitec.eclipse.sqlexplorer.actions.OpenPasswordConnectDialogAction.run(OpenPasswordConnectDialogAction.java:79)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:70)
at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:84)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
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$6.handleEvent(ActionContributionItem.java:441)
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:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
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)
Riyad KallaMemberWhat version of Eclipse is that Build ID for? Is it a nightly build? Also what version of MyEclipse are you running? (Window > Prefs > MyEclipse).
Additionally, if you have a MyEclipse > About > Configuration Summary button, please paste the results here.
Randall SvancaraMember———————Eclipse SDK—————————————–
Version: 3.1.1
Build id: M20050929-0840(c) Copyright Eclipse contributors and others 2000, 2005. All rights reserved.
Visit http://www.eclipse.org/platformThis product includes software developed by the
Apache Software Foundation http://www.apache.org/—————–MYECLIPSE VERSION INFO——————————-
MyEclipse Application Server Tooling
Version: 4.0.3
Build id: 20051025-4.0.3-GA(c) Copyright Genuitec, LLC and others 2000, 2003. All rights reserved.
Visit http://www.myeclipseide.com
Riyad KallaMemberLet’s try a new workspace: File > Switch Workspace > C:\tempworkspace, hit OK. Now try and add the driver, did that work?
Randall SvancaraMemberYes, I tried creating a new workspace. I even downloaded eclipse 3.1.1 from the eclipse download site and the lates myeclipse installer.
I am wondering if it has something to do the the JTDS SQL Server driver I am using. Would I have better luck with the MSSQL database driver, since it has been test probably more thoroughly?
I will have to play around a little bit. I am sure it is just some tiny little incompatibility from the driver that is giving me a headache trying to make this work.
I keep everyone informed on my progress.
Randall SvancaraMemberWhere are the jdbc drivers supposed to be located. Do you have to supply the driver somewhere….does it just need to be in the classpath.
Riyad KallaMemberAre you asking when setting up the DB explorer? You need to add them to the driver path, that is covered in this doc: http://www.myeclipseide.com/images/tutorials/quickstarts/dbexplorer/
Randall SvancaraMemberIt appears that the driver is not being loaded for some reason. I can only speculate at this.
1. Go to the preferences–>MyEclipse–>My Database Explorer–>Drivers.
2. Add the jtds driver. Make sure you choose the location of the jtds driver.
3. Give it a unique name, like “JTDS DRIVER”. Make note of this name, we will need it later.
4. Close the dialogue box.
5. In the listview, you should see your driver with a blue check mark.
6. Open up your workspace directory.
7. Open the .metadata directory.
8. Open the .plugins directory.
9. Open the com.genuitec.eclipse.sqlexplorer directory.
10. In this directory, edit the file SQLDrivers.xml.
11. Find the driver entry. CTRL-F for find and put in JTDS DRIVER
12. Edit the following tag:CHANGE THIS SECTION FROM THIS–>
<Bean Class=”net.sourceforge.squirrel_sql.fw.util.beanwrapper.StringWrapper”>
<string>C:\Tomcat5.5\common\lib\jtds-1.1.jar</string>
</Bean>TO THIS(REPLACE BACK SLASHES IN THE PATH WITH FORWARD SLASHES)
<Bean Class=”net.sourceforge.squirrel_sql.fw.util.beanwrapper.StringWrapper”>
<string>C:/Tomcat5.5/common/lib/jtds-1.1.jar</string>
</Bean>13. Save the file.
14. Restart eclipse
15. Create a new database connection with your newly configure drivers file and life should be ok.
16. If someone wants to submit a bugzilla on this, I have not done so as of Saturday, 10-29-2005 at 10:49 A.M Mountain standard time.
Randall SvancaraMemberDamn……I should have just read the documenation!!!
Never mind about all this crap up above!!!
Riyad KallaMemberNo worries, is it working now?
Randall SvancaraMemberYes, Thank you for your assistance. MyEclipse is a great tool and this forum and moderators like you make it an even better tool.
Thanks again.
tanwenMemberI ever have mistake the same to you!!!
-
AuthorPosts