Riena & Formtoolkit [message #531470] |
Wed, 05 May 2010 07:04 |
|
In trying to use formtoolkit in my moduleviews I get into the following problematic.
protected void basicCreatePartControl(Composite parent) {
toolkit = new FormToolkit(parent.getDisplay());
toolkit.adapt(parent);
form = toolkit.createForm(parent);
}
I get following errors
org.eclipse.riena.ui.swt.lnf.LnFUpdater Cannot create an instance of "org.eclipse.ui.internal.forms.widgets.TitleRegion"
org.eclipse.riena.core.util.ReflectionFailure: Error creating instance for org.eclipse.ui.internal.forms.widgets.TitleRegion with parameters [FormHeading {}, 570425344]!
at org.eclipse.riena.core.util.ReflectionUtils.newInstance(ReflectionUtils.java:147)
Any help is welcomed.
Thanks in advance
[Updated on: Wed, 05 May 2010 07:04] Report message to a moderator
|
|
|
|
Re: Riena & Formtoolkit [message #531506 is a reply to message #531485] |
Wed, 05 May 2010 09:32 |
|
Hallo Stefan,
thanks for the fast reply. Am actually using Riena 2.0.0.M7.
Thanks in advance.
hier ist der Complete error log(different from the one i had when using 2.0.0.M6)
protected void basicCreatePartControl(Composite parent) {
toolkit = new FormToolkit(parent.getDisplay());
form = toolkit.createForm(parent);
}
Wed May 05 11:49:09 CEST 2010 ERROR [main] org.eclipse.riena.ui.swt.lnf.LnFUpdater Cannot get the value of the property "menuManager" of the class "org.eclipse.ui.internal.forms.widgets.TitleRegion".
org.eclipse.riena.core.util.InvocationTargetFailure: Calling #getMenuManager on TitleRegion {} failed.
at org.eclipse.riena.core.util.ReflectionUtils.invoke(ReflectionUtils.java:315)
at org.eclipse.riena.core.util.ReflectionUtils.invokeHidden(ReflectionUtils.java:210)
at org.eclipse.riena.ui.swt.lnf.LnFUpdater.getPropertyValue(LnFUpdater.java:619)
at org.eclipse.riena.ui.swt.lnf.LnFUpdater.getDefaultPropertyValue(LnFUpdater.java:548)
at org.eclipse.riena.ui.swt.lnf.LnFUpdater.hasNoDefaultValue(LnFUpdater.java:447)
at org.eclipse.riena.ui.swt.lnf.LnFUpdater.updateUIControl(LnFUpdater.java:288)
at org.eclipse.riena.ui.swt.lnf.LnFUpdater.updateUIControlsRecursive(LnFUpdater.java:150)
at org.eclipse.riena.ui.swt.lnf.LnFUpdater.updateUIControlsRecursive(LnFUpdater.java:153)
at org.eclipse.riena.ui.swt.lnf.LnFUpdater.updateUIControlsRecursive(LnFUpdater.java:153)
at org.eclipse.riena.ui.swt.lnf.LnFUpdater.updateUIControlsRecursive(LnFUpdater.java:153)
at org.eclipse.riena.ui.swt.lnf.LnFUpdater.updateUIControls(LnFUpdater.java:115)
at org.eclipse.riena.navigation.ui.swt.views.SubModuleView.bind(SubModuleView.java:144)
at org.eclipse.riena.navigation.ui.swt.views.SubModuleView.doBinding(SubModuleView.java:499)
at org.eclipse.riena.navigation.ui.swt.views.SubModuleView.createPartControl(SubModuleView.java:173)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:367)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2229)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1067)
at org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.java:3816)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3813)
at org.eclipse.riena.navigation.ui.swt.views.SubApplicationView$MySubModuleNodeListener.prepareView(SubApplicationView.java:639)
at org.eclipse.riena.navigation.ui.swt.views.SubApplicationView$MySubModuleNodeListener.prepareView(SubApplicationView.java:622)
at org.eclipse.riena.navigation.ui.swt.views.SubApplicationView$MySubModuleNodeListener.activated(SubApplicationView.java:521)
at org.eclipse.riena.navigation.ui.swt.views.SubApplicationView$MySubModuleNodeListener.activated(SubApplicationView.java:1)
at org.eclipse.riena.navigation.listener.NavigationTreeObserver$MySubModuleNodeListener.activated(NavigationTreeObserver.java:1228)
at org.eclipse.riena.navigation.listener.NavigationTreeObserver$MySubModuleNodeListener.activated(NavigationTreeObserver.java:1)
at org.eclipse.riena.navigation.model.NavigationNode.notifyActivated(NavigationNode.java:192)
at org.eclipse.riena.navigation.model.NavigationNode.activate(NavigationNode.java:867)
at org.eclipse.riena.navigation.model.NavigationProcessor.activate(NavigationProcessor.java:861)
at org.eclipse.riena.navigation.model.NavigationProcessor.activate(NavigationProcessor.java:113)
at org.eclipse.riena.navigation.model.NavigationNode.activate(NavigationNode.java:416)
at org.kribi.core.client.ui.common.controllers.AbstractDataContainerController.edit(AbstractDataContainerController.java:217)
at org.kribi.core.client.ui.common.controllers.TableModuleController$2.callback(TableModuleController.java:119)
at org.eclipse.riena.internal.ui.ridgets.swt.TableRidget$ClickForwarder.mouseDoubleClick(TableRidget.java:813)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:183)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.riena.navigation.ui.swt.application.SwtApplication.createView(SwtApplication.java:62)
at org.eclipse.riena.navigation.ui.application.AbstractApplication.start(AbstractApplication.java:64)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.ClassCastException: org.eclipse.swt.widgets.Composite cannot be cast to org.eclipse.ui.internal.forms.widgets.FormHeading
at org.eclipse.ui.internal.forms.widgets.TitleRegion.getColor(TitleRegion.java:253)
at org.eclipse.ui.internal.forms.widgets.TitleRegion.createMenuHyperlink(TitleRegion.java:410)
at org.eclipse.ui.internal.forms.widgets.TitleRegion.getMenuManager(TitleRegion.java:486)
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:597)
at org.eclipse.riena.core.util.ReflectionUtils.invoke(ReflectionUtils.java:313)
... 62 more
[Updated on: Wed, 05 May 2010 09:51] Report message to a moderator
|
|
|
|
Re: Riena & Formtoolkit [message #531540 is a reply to message #531514] |
Wed, 05 May 2010 11:27 |
|
Hi Stefan,
indeed line 147 shows nothing. The first error log occured with 2.0.0.M6 and the second error log with 2.0.0.M7. If u take a closer look you will notice that the errors are different. With 2.0.0.M7 its unable to access a method during the reflection actions being done.
Thanks in advance
|
|
|
|
|
Re: Riena & Formtoolkit [message #532102 is a reply to message #531670] |
Fri, 07 May 2010 08:16 |
|
Stefan Liebig wrote on Wed, 05 May 2010 20:18 | Oh, I am very sorry! I didn't see this stack trace within my reader at work.
I will have look at it tomorrow!
Tschüß,
Stefan
|
Hi Stefan,
dieses Problem taucht immer dann auf wenn folgende Riena System Eigenschaft:
riena.lnf.update.view auf true gesetzt wird.
Tschüß
Elvis
|
|
|
|
|
|
Re: Riena & Formtoolkit [message #585305 is a reply to message #585289] |
Wed, 05 May 2010 11:27 |
|
Hi Stefan,
indeed line 147 shows nothing. The first error log occured with 2.0.0.M6 and the second error log with 2.0.0.M7. If u take a closer look you will notice that the errors are different. With 2.0.0.M7 its unable to access a method during the reflection actions being done.
Thanks in advance
|
|
|
|
|
Re: Riena & Formtoolkit [message #585350 is a reply to message #531670] |
Fri, 07 May 2010 08:16 |
|
Stefan Liebig wrote on Wed, 05 May 2010 20:18
> Oh, I am very sorry! I didn't see this stack trace within my reader at work.
> I will have look at it tomorrow!
>
> Tschüß,
> Stefan
Hi Stefan,
dieses Problem taucht immer dann auf wenn folgende Riena System Eigenschaft:
riena.lnf.update.view auf true gesetzt wird.
Tschüß
Elvis
|
|
|
|
Powered by
FUDForum. Page generated in 0.05708 seconds