[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.technology.jsr220-orm] Re: Can't create connection

Hi Guys,

There is a note on this known issue on the download pages notes on Hibernate
support.   The Database explorer must be open when creating the connection
otherwise you get this error.  So, if you are in the Java Perspective, you
need to explicitly open the Database explorer ...  Window>>Show
View>>Other>>Data>>Database Explorer.   If you are in the Persistence
perspective, then we automatically open this view so you would not get the
problem.

Hope this helps.....
-Robert


Robert Greene
JSR220-ORM team lead
rgreene@xxxxxxxxxxx


"Sebastian Beigel" <sebi@xxxxxxxxx> wrote in message
news:172cbb3c9484e5bbbc2309c0bc046143$1@xxxxxxxxxxxxxxxxxx
> Hi,
>
> I get a NPE using the JSR220-ORM M2 - even after a clean install of all
> required packages from the download site:
>
> I try to add persistence to a project: Select "Hibernate EJB3" and MySQL
> 4.0 (also tried it w/ MySQL 4.1 and Oracle 10) and click on "Connection",
> enter all information ("Test Connection" is successful), click "next",
> leave the filter disabled (also tried w/ filter: schemas are recognized
> and shown, so the connection (still) works at this point!) and hit
> "Finish" - nothing happens, the window doesn't close and in the log is the
> following error:
>
> !ENTRY org.eclipse.ui 4 4 2005-09-17 16:23:52.320
> !MESSAGE Unhandled event loop exception
>
> !ENTRY org.eclipse.ui 4 0 2005-09-17 16:23:52.320
> !MESSAGE java.lang.NullPointerException
> !STACK 0
> java.lang.NullPointerException
> at
>
org.eclipse.wst.rdb.server.internal.ui.explorer.content.ServerExplorerRefres
hListener.notifyChanged(ServerExplorerRefreshListener.java:30)
> at
>
org.eclipse.wst.rdb.internal.core.rte.RefreshManager.referesh(RefreshManager
.java:73)
> at
>
org.eclipse.wst.rdb.internal.core.rte.jdbc.JDBCDatabase.refresh(JDBCDatabase
.java:49)
> at
>
org.eclipse.wst.rdb.server.internal.ui.wizards.NewConnectionWizard.performFi
nish(NewConnectionWizard.java:258)
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
> at
> org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
> at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
> 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.jface.window.Window.runEventLoop(Window.java:809)
> at org.eclipse.jface.window.Window.open(Window.java:787)
> at
>
org.eclipse.wst.rdb.server.internal.ui.explorer.actions.popup.AddConnectionA
ction.run(AddConnectionAction.java:65)
> at
>
org.eclipse.jsr220orm.ui.internal.properties.SelectProductComposite$3.mouseD
own(SelectProductComposite.java:259)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:133)
> 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.jface.window.Window.runEventLoop(Window.java:809)
> at org.eclipse.jface.window.Window.open(Window.java:787)
> at
>
org.eclipse.jsr220orm.ui.internal.popup.actions.AddPersistenceAction.run(Add
PersistenceAction.java:37)
> at
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
> at
>
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action
ContributionItem.java:538)
> at
>
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionI
tem.java:488)
> at
>
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContribu
tionItem.java:400)
> 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(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: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)
>
>
> Any ideas on this one?
>
> Regards,
> Sebastian
>