Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Dali plugin problem
Dali plugin problem [message #433780] Sat, 22 April 2006 08:04 Go to next message
Eclipse User
Originally posted by: jakieskonto1.wp.pl

I use Eclipse SDK 3.2.0 with Build id: I20060223-1656 with dali-R-0.5M2
plugin. I also have installed all necessary prerequisites, so everything
looks ok when I check my eclipse configuration in manager configuration.
When I open persistence perspective everything looks also ok, but when I
star to work I receive the following exceptions:

Problems occurred when invoking code from plug-in: "org.eclipse.jface"
java.lang.IllegalArgumentException: Argument cannot be null
at org.eclipse.swt.SWT.error(SWT.java:3333)
at org.eclipse.swt.SWT.error(SWT.java:3272)
at org.eclipse.swt.SWT.error(SWT.java:3243)
at org.eclipse.swt.widgets.Widget.error(Widget.java:432)
at org.eclipse.swt.widgets.Combo.add(Combo.java:144)
at
org.eclipse.dali.ui.PersistenceProjectPropertiesPage.populat eSchemaNameCombo(PersistenceProjectPropertiesPage.java:133)
at
org.eclipse.dali.ui.PersistenceProjectPropertiesPage.createC ontents(PersistenceProjectPropertiesPage.java:92)
at
org.eclipse.jface.preference.PreferencePage.createControl(Pr eferencePage.java:232)
at
org.eclipse.jface.preference.PreferenceDialog.createPageCont rol(PreferenceDialog.java:1351)
at
org.eclipse.jface.preference.PreferenceDialog$12.run(Prefere nceDialog.java:1118)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:816)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 8)
at
org.eclipse.jface.preference.PreferenceDialog.showPage(Prefe renceDialog.java:1112)
at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.sho wPage(FilteredPreferenceDialog.java:429)
at
org.eclipse.jface.preference.PreferenceDialog$8.selectionCha nged(PreferenceDialog.java:630)
at
org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredV iewer.java:802)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:816)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:14 8)
at
org.eclipse.jface.viewers.StructuredViewer.firePostSelection Changed(StructuredViewer.java:800)
at
org.eclipse.jface.viewers.StructuredViewer.setSelection(Stru cturedViewer.java:1513)
at
org.eclipse.jface.preference.PreferenceDialog.selectSavedIte m(PreferenceDialog.java:920)
at
org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.sel ectSavedItem(FilteredPreferenceDialog.java:472)
at
org.eclipse.jface.preference.PreferenceDialog$3.run(Preferen ceDialog.java:334)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.jface.preference.PreferenceDialog.createContents (PreferenceDialog.java:330)
at org.eclipse.jface.window.Window.create(Window.java:420)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101)
at
org.eclipse.ui.internal.dialogs.PropertyDialog.createDialogO n(PropertyDialog.java:76)
at
org.eclipse.ui.dialogs.PropertyDialogAction.createDialog(Pro pertyDialogAction.java:174)
at
org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDial ogAction.java:155)
at
org.eclipse.ui.internal.ide.actions.ProjectPropertyDialogAct ion.run(ProjectPropertyDialogAction.java:76)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:492 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:530)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:480)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:392)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3287)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2907)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1899)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:417)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:106)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:99)
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(EclipseS tarter.java:374)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:169)
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:338 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

and another:

Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench"
java.lang.NullPointerException
at
org.eclipse.dali.ui.views.TableComposite.populateTableCombo( TableComposite.java:191)
at
org.eclipse.dali.ui.views.TableComposite.populate(TableCompo site.java:174)
at
org.eclipse.dali.ui.views.EntityComposite.populateTablePanel (EntityComposite.java:350)
at
org.eclipse.dali.ui.views.EntityComposite.populate(EntityCom posite.java:324)
at
org.eclipse.dali.ui.views.PersistentTypeComposite.populate(P ersistentTypeComposite.java:173)
at
org.eclipse.dali.ui.views.PersistentTypeComposite.populate(P ersistentTypeComposite.java:156)
at
org.eclipse.dali.ui.views.PersistencePropertiesView.populate (PersistencePropertiesView.java:69)
at
org.eclipse.dali.ui.views.PersistencePropertiesView.setPersi stenceFile(PersistencePropertiesView.java:97)
at
org.eclipse.dali.ui.views.PersistenceOutlineView.setPersiste nceFile(PersistenceOutlineView.java:335)
at
org.eclipse.dali.ui.views.PersistenceOutlineView.setActiveIn put(PersistenceOutlineView.java:297)
at
org.eclipse.dali.ui.views.PersistenceOutlineView.handlePartR ef(PersistenceOutlineView.java:125)
at
org.eclipse.dali.ui.views.PersistenceOutlineView.access$0(Pe rsistenceOutlineView.java:118)
at
org.eclipse.dali.ui.views.PersistenceOutlineView$1.partBroug htToTop(PersistenceOutlineView.java:85)
at
org.eclipse.ui.internal.PartListenerList2$2.run(PartListener List2.java:83)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.PartListenerList2.fireEvent(PartList enerList2.java:54)
at
org.eclipse.ui.internal.PartListenerList2.firePartBroughtToT op(PartListenerList2.java:81)
at
org.eclipse.ui.internal.PartService.firePartBroughtToTop(Par tService.java:90)
at
org.eclipse.ui.internal.WorkbenchPagePartList.firePartBrough tToTop(WorkbenchPagePartList.java:75)
at
org.eclipse.ui.internal.WorkbenchPagePartList.fireActiveEdit orChanged(WorkbenchPagePartList.java:51)
at org.eclipse.ui.internal.PartList.setActiveEditor(PartList.ja va:143)
at
org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(Workb enchPage.java:1128)
at
org.eclipse.ui.internal.WorkbenchPage.setActivePart(Workbenc hPage.java:2903)
at
org.eclipse.ui.internal.WorkbenchPage.requestActivation(Work benchPage.java:2512)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane. java:249)
at org.eclipse.ui.internal.EditorPane.requestActivation(EditorP ane.java:88)
at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:295)
at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java: 116)
at
org.eclipse.ui.internal.PartStack.presentationSelectionChang ed(PartStack.java:788)
at org.eclipse.ui.internal.PartStack.access$0(PartStack.java:77 1)
at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.jav a:119)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation$1.handleEvent(TabbedStackPresentation.java:126)
at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(AbstractTabFolder.java:267)
at
org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(AbstractTabFolder.java:276)
at
org.eclipse.ui.internal.presentations.defaultpresentation.De faultTabFolder.access$1(DefaultTabFolder.java:1)
at
org.eclipse.ui.internal.presentations.defaultpresentation.De faultTabFolder$2.handleEvent(DefaultTabFolder.java:84)
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.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:6 60)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.ja va:3138)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:19 22)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.j ava:288)
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.ja va:3125)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2758)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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)

The last problem is that some annotations are marked as not resolved, eg:
Column 'ID' can't be resolved
Table 'name' can't be resolved
etc.

Can anybody help me with this.
Re: Dali plugin problem [message #433782 is a reply to message #433780] Mon, 24 April 2006 17:34 Go to previous messageGo to next message
Neil Hauge is currently offline Neil Hauge
Messages: 467
Registered: July 2009
Senior Member
Hi,

What database are you connecting to, and were you able to specify a
connection and a schema for Java Persistence?

Neil
Re: Dali plugin problem [message #433783 is a reply to message #433782] Mon, 24 April 2006 18:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: jakieskonto1.wp.pl

Hi,
I'm connecting to MySQL 4.1. I have connection to my database server that
I can explore in a database explorer ( I see tables etc. ). This
connection is set in Project->Properties->Java Persistence->(database
connection, schema). When I use Generate DDL tool I'm able to genate sql
script but when I choose option Run DDL on server I can't choose my
existing connection, all I can do is to choose Create a New Connection.
When I pick Create a New Connection in section Select a database manager
there is only "SQL Server", I can't see MySQL server and any others.
However I set all connection URL details to MySQL server and Test
Connection reports OK. After that sql script is run on database server,
all tables etc. are created.
So this is all I can say about database connection.
Re: Dali plugin problem [message #433929 is a reply to message #433783] Tue, 25 April 2006 14:59 Go to previous messageGo to next message
Neil Hauge is currently offline Neil Hauge
Messages: 467
Registered: July 2009
Senior Member
Do you happen to see a duplicate connection in the Database Connection
combo?

-Neil

Dali user wrote:

> Hi,
> I'm connecting to MySQL 4.1. I have connection to my database server that
> I can explore in a database explorer ( I see tables etc. ). This
> connection is set in Project->Properties->Java Persistence->(database
> connection, schema). When I use Generate DDL tool I'm able to genate sql
> script but when I choose option Run DDL on server I can't choose my
> existing connection, all I can do is to choose Create a New Connection.
> When I pick Create a New Connection in section Select a database manager
> there is only "SQL Server", I can't see MySQL server and any others.
> However I set all connection URL details to MySQL server and Test
> Connection reports OK. After that sql script is run on database server,
> all tables etc. are created.
> So this is all I can say about database connection.
Re: Dali plugin problem [message #433933 is a reply to message #433929] Tue, 25 April 2006 17:01 Go to previous message
Eclipse User
Originally posted by: jakieskonto1.wp.pl

No, rather not. I see all created connections correct.
Re: Dali plugin problem [message #583179 is a reply to message #433780] Mon, 24 April 2006 17:34 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 467
Registered: July 2009
Senior Member
Hi,

What database are you connecting to, and were you able to specify a
connection and a schema for Java Persistence?

Neil
Re: Dali plugin problem [message #583193 is a reply to message #433782] Mon, 24 April 2006 18:29 Go to previous message
Eclipse User
Originally posted by: jakieskonto1.wp.pl

Hi,
I'm connecting to MySQL 4.1. I have connection to my database server that
I can explore in a database explorer ( I see tables etc. ). This
connection is set in Project->Properties->Java Persistence->(database
connection, schema). When I use Generate DDL tool I'm able to genate sql
script but when I choose option Run DDL on server I can't choose my
existing connection, all I can do is to choose Create a New Connection.
When I pick Create a New Connection in section Select a database manager
there is only "SQL Server", I can't see MySQL server and any others.
However I set all connection URL details to MySQL server and Test
Connection reports OK. After that sql script is run on database server,
all tables etc. are created.
So this is all I can say about database connection.
Re: Dali plugin problem [message #584819 is a reply to message #433783] Tue, 25 April 2006 14:59 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 467
Registered: July 2009
Senior Member
Do you happen to see a duplicate connection in the Database Connection
combo?

-Neil

Dali user wrote:

> Hi,
> I'm connecting to MySQL 4.1. I have connection to my database server that
> I can explore in a database explorer ( I see tables etc. ). This
> connection is set in Project->Properties->Java Persistence->(database
> connection, schema). When I use Generate DDL tool I'm able to genate sql
> script but when I choose option Run DDL on server I can't choose my
> existing connection, all I can do is to choose Create a New Connection.
> When I pick Create a New Connection in section Select a database manager
> there is only "SQL Server", I can't see MySQL server and any others.
> However I set all connection URL details to MySQL server and Test
> Connection reports OK. After that sql script is run on database server,
> all tables etc. are created.
> So this is all I can say about database connection.
Re: Dali plugin problem [message #584873 is a reply to message #433929] Tue, 25 April 2006 17:01 Go to previous message
Eclipse User
Originally posted by: jakieskonto1.wp.pl

No, rather not. I see all created connections correct.
Previous Topic:DDL Generation observations
Next Topic:persistence.xml management
Goto Forum:
  


Current Time: Sun Apr 20 18:12:59 EDT 2014

Powered by FUDForum. Page generated in 0.01868 seconds