facebook

NPE trying to connect to Oracl

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

    jcastell
    Member

    All,

    I’ve had ME setup to connect to several Oracle instances for a while now, but all of a sudden I can’t connect to any of them, even if I drop and recreate the connection. Any ideas? The stack trace I’m getting looks like this:

    !ENTRY com.genuitec.eclipse.sqlexplorer 4 4 2007-02-25 11:29:48.358
    !MESSAGE Error while trying to login to database
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.sqlexplorer.actions.OpenPasswordConnectDialogAction.perfomLoginAndRetrieval(OpenPasswordConnectDialogAction.java:114)
    at com.genuitec.eclipse.sqlexplorer.actions.OpenPasswordConnectDialogAction.run(OpenPasswordConnectDialogAction.java:75)
    at com.genuitec.eclipse.sqlexplorer.actions.NewConnection.run(NewConnection.java:70)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    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:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    #266637 Reply

    Haris Peco
    Member

    jcastell ,

    This NPE is thrown when connection is not success.
    Have you some error dialog and if yes what is message ?
    I suppose that your URL (or jdbc driver or class) is not correct – it is maybe some typing error.

    Regards,

    #266664 Reply

    jcastell
    Member

    Peco,

    I get a dialog that says

    Error while trying to login to database:
    null

    I’ve double checked all of the connection strings, and they’re good. Seems that I can’t connect to ANY databases, though.

    -jc

    #266667 Reply

    Haris Peco
    Member

    jc,

    It is strange.Do you checked your jdbc jar ?
    Could you please send your URL and jdbc class name ?

    Thanks,

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: NPE trying to connect to Oracl

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