Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » NullpointerExceptions on Connect, disappear with eclipse -clean
NullpointerExceptions on Connect, disappear with eclipse -clean [message #590760] Mon, 07 April 2008 10:53
Eclipse UserFriend
Originally posted by: knb.gfz-potsdam.de

Whe I try to connect to a Sybase ASE database I sometimes get
NullPointerExceptions. Please see Stacktrace below.
This happens when I try to open a .sql file with the DTP sql-file
editor, choosing context menu (right mouse click) / "set connection info".

When I start eclipse from the command line, with the -clean option I
*can* connect to the database, using the method mentioned above.

Why is that so? Any Ideas?

Knut


eclipse.buildId=I20070625-1500
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Command-line arguments: -os linux -ws gtk -arch x86_64

Error
Mon Apr 07 10:39:58 GMT 2008
Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".

java.lang.NullPointerException
at
org.eclipse.datatools.sqltools.core.profile.ProfileUtil.getD atabase(ProfileUtil.java:494)
at
org.eclipse.datatools.sqltools.core.profile.ProfileUtil.getD atabaseList(ProfileUtil.java:756)
at
org.eclipse.datatools.sqltools.internal.sqlscrapbook.connect ion.AbstractConnectionInfoComposite.initDBNames(AbstractConn ectionInfoComposite.java:136)
at
org.eclipse.datatools.sqltools.internal.sqlscrapbook.connect ion.AbstractConnectionInfoComposite.init(AbstractConnectionI nfoComposite.java:264)
at
org.eclipse.datatools.sqltools.internal.sqlscrapbook.connect ion.ConnectionInfoComposite2.init(ConnectionInfoComposite2.j ava:249)
at
org.eclipse.datatools.sqltools.internal.sqlscrapbook.connect ion.AbstractConnectionInfoComposite.init(AbstractConnectionI nfoComposite.java:224)
at
org.eclipse.datatools.sqltools.internal.sqlscrapbook.editor. SQLScrapbookEditor$ToolbarSourceViewer.refreshConnectionStat us(SQLScrapbookEditor.java:108)
at
org.eclipse.datatools.sqltools.internal.sqlscrapbook.editor. SQLScrapbookEditor.refreshConnectionStatus(SQLScrapbookEdito r.java:262)
at
org.eclipse.datatools.sqltools.sqleditor.SQLEditor.setFocus( SQLEditor.java:1448)
at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:318)
at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java: 127)
at org.eclipse.ui.internal.WorkbenchPage$3.run(WorkbenchPage.ja va:623)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at
org.eclipse.ui.internal.WorkbenchPage.activatePart(Workbench Page.java:618)
at
org.eclipse.ui.internal.WorkbenchPage.setActivePart(Workbenc hPage.java:3398)
at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage .java:611)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2748)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2651)
at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPag e.java:2643)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2595)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2590)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2574)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2565)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:286)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:139)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:19 4)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:17 5)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:268)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:244)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActio nGroup.handleOpen(PackageExplorerActionGroup.java:316)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$ 5.open(PackageExplorerPart.java:613)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:19 9)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:818)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1079)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1183)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:297)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Previous Topic:Final connectivity usability design for review until 4/11
Next Topic:Updated policy for 1.6 M7 rampdown
Goto Forum:
  


Current Time: Sat Dec 05 13:13:33 GMT 2020

Powered by FUDForum. Page generated in 0.01842 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top