facebook

NullPointer in SQL Editor with Intersystems Cache

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #223767 Reply

    Dirk Essers
    Member

    I’m having a problem with the Database Explorer and an Intersystems Cache database. When I’m switching from any other view to the SQL Editor view, I’m getting a NullPointerException. Queries are working fine though, just the continuous error message is rather annoying.

    
    !SESSION Jan 27, 2005 15:49:42.690 ---------------------------------------------
    eclipse.buildId=M200409161125
    java.version=1.4.2_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
    
    !ENTRY org.eclipse.core.runtime 4 2 Jan 27, 2005 15:49:42.705 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime".
    !STACK 0
    java.lang.NullPointerException
        at com.genuitec.eclipse.sqlexplorer.editors.SQLEditor$7.partActivated(Unknown Source)
        at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:49)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616)
        at org.eclipse.core.runtime.Platform.run(Platform.java:747)
        at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:47)
        at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:1370)
        at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2738)
        at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2415)
        at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:304)
        at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:127)
        at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:284)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:801)
        at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:935)
        at org.eclipse.swt.widgets.Shell.WM_MOUSEACTIVATE(Shell.java:1461)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3009)
        at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1391)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1468)
        at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:77)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3050)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
        at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:1887)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2426)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
        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:185)
        at org.eclipse.core.launcher.Main.run(Main.java:704)
        at org.eclipse.core.launcher.Main.main(Main.java:688)
    

    I’m using a fresh Installation of Eclipse 3.0.1 with MyEclipse 3.8.3, running on Java 1.4.2 / Windows XP.

    With Eclipse 2.x I used JFaceDbc (http://www.jfacedbc.com/), which looks very similar to your Database Explorer; I did have problems there getting database metadata but no Exceptions.

    #223807 Reply

    Riyad Kalla
    Member

    Checking on this, hang tight.

    #223948 Reply

    support-jeff
    Member

    I am not sure that it is anything in the DE views per se. The depth and content of the stacktrace makes me think SWT issues. But the part of the code on which it is barfing has to do with catalogs. Does Intersystems Cache database support catalogs? Are there any catalogs defined for your database? If there are, they should appear in the a little drop down list at the top of the SQL Editor, to the right of another drop-down list of connection profile names.

    I cannot understand how this could happen unless there are indeed no catalogs, in which case I can put some extra checks in the code for nulls, but that is about all.

    #224141 Reply

    Dirk Essers
    Member

    The Cache database stores Table Metadata in a proprietary format; connection.getCatalog() returns null, that should be the problem then.

    The DB Browser view gets as far as showing the table names, but the catalog dropdown in the SQL Editor view only shows the connection’s username.

    I don’t need catalog data in the Database Explorer though, Cache comes with some own tools for that. It’s just the ability to use SQL in Eclipse which is important for me.

    #250867 Reply

    asdf999
    Member
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: NullPointer in SQL Editor with Intersystems Cache

You must be logged in to post in the forum log in