Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Riena & Formtoolkit(Formtoolkit)
Riena & Formtoolkit [message #531470] Wed, 05 May 2010 07:04 Go to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
Messages: 25
Registered: July 2009
Junior Member

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 #531485 is a reply to message #531470] Wed, 05 May 2010 08:25 Go to previous messageGo to next message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
I assume that you are using Riena 1.2?

I think the problem is that the TitleRegion does not have the expected
constructor, which has two parameters which are the parent and the
style. It only has a constructor with the parent.

Please use our latest version. This should have fixed this issue.

Tschüß,
Stefan

On 05.05.2010 09:04, Ngwa Ambe Elvis wrote:
> In trying to use formtoolkit in my moduleviews in get into following
> problematik.
>
> 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(Refl ectionUtils.java:147)
>
>
>
> Any help is welcomed. Thanks in advance
Re: Riena & Formtoolkit [message #531506 is a reply to message #531485] Wed, 05 May 2010 09:32 Go to previous messageGo to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
Messages: 25
Registered: July 2009
Junior Member

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 #531514 is a reply to message #531506] Wed, 05 May 2010 09:54 Go to previous messageGo to next message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
Oh, hmmm!?

From the error message:
> 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(Refl ectionUtils.java:147)

I thought that you are using 1.2 because line 147 in ReflectionUtils
points into "nothing" in version 2.0. whereas in 1.2 it points to a
throw statement.

Can you please verify this?

Tschüß,
Stefan

On 05.05.2010 11:32, Ngwa Ambe Elvis wrote:
> Hallo Stefan, thanks for the fast reply. Am actually using Riena 2.0.0.M7.
>
> Thanks in advance.
Re: Riena & Formtoolkit [message #531540 is a reply to message #531514] Wed, 05 May 2010 11:27 Go to previous messageGo to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
Messages: 25
Registered: July 2009
Junior Member

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 #531606 is a reply to message #531540] Wed, 05 May 2010 14:07 Go to previous messageGo to next message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
Sorry, I am little bit confused now. Can we concentrate on what happens
if you use the latest version of Riena 2.0M7?
Does this error happen in LnfUpdater:createDefaultControl() where the
the controlClass parameter is a TitleRegion?

Tschüß,
Stefan

On 05.05.2010 13:27, Ngwa Ambe Elvis wrote:
> 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 #531670 is a reply to message #531506] Wed, 05 May 2010 18:18 Go to previous messageGo to next message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
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
Re: Riena & Formtoolkit [message #532102 is a reply to message #531670] Fri, 07 May 2010 08:16 Go to previous messageGo to next message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
Messages: 25
Registered: July 2009
Junior Member

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 #532168 is a reply to message #532102] Fri, 07 May 2010 11:11 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Am 07.05.10 10:16, schrieb Ngwa Ambe Elvis:
> 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
>
Hi,

I think you should file a bug in bugzilla with the complete stacktrace and we follow it from there....

thanks

christian campo
Re: Riena & Formtoolkit [message #585282 is a reply to message #531485] Wed, 05 May 2010 09:32 Go to previous message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
Messages: 25
Registered: July 2009
Junior Member

Hallo Stefan,
thanks for the fast reply. Am actually using Riena 2.0.0.M7.

Thanks in advance.
Re: Riena & Formtoolkit [message #585289 is a reply to message #585282] Wed, 05 May 2010 09:55 Go to previous message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
Oh, hmmm!?

From the error message:
> 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(Refl ectionUtils.java:147)

I thought that you are using 1.2 because line 147 in ReflectionUtils
points into "nothing" in version 2.0. whereas in 1.2 it points to a
throw statement.

Can you please verify this?

Tschüß,
Stefan

On 05.05.2010 11:32, Ngwa Ambe Elvis wrote:
> Hallo Stefan, thanks for the fast reply. Am actually using Riena 2.0.0.M7.
>
> Thanks in advance.
Re: Riena & Formtoolkit [message #585305 is a reply to message #585289] Wed, 05 May 2010 11:27 Go to previous message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
Messages: 25
Registered: July 2009
Junior Member

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 #585315 is a reply to message #531540] Wed, 05 May 2010 14:07 Go to previous message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
Sorry, I am little bit confused now. Can we concentrate on what happens
if you use the latest version of Riena 2.0M7?
Does this error happen in LnfUpdater:createDefaultControl() where the
the controlClass parameter is a TitleRegion?

Tschüß,
Stefan

On 05.05.2010 13:27, Ngwa Ambe Elvis wrote:
> 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 #585338 is a reply to message #585282] Wed, 05 May 2010 18:18 Go to previous message
Stefan Liebig is currently offline Stefan LiebigFriend
Messages: 124
Registered: July 2009
Senior Member
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
Re: Riena & Formtoolkit [message #585350 is a reply to message #531670] Fri, 07 May 2010 08:16 Go to previous message
Ngwa Ambe Elvis is currently offline Ngwa Ambe ElvisFriend
Messages: 25
Registered: July 2009
Junior Member

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 #585374 is a reply to message #532102] Fri, 07 May 2010 11:11 Go to previous message
Christian Campo is currently offline Christian CampoFriend
Messages: 590
Registered: July 2009
Senior Member
Am 07.05.10 10:16, schrieb Ngwa Ambe Elvis:
> 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
>
Hi,

I think you should file a bug in bugzilla with the complete stacktrace and we follow it from there....

thanks

christian campo
Previous Topic:How Can I Remove / Modify Riena Logo?
Next Topic:Toolkit download - URL gives a 404
Goto Forum:
  


Current Time: Mon Nov 24 15:32:56 GMT 2014

Powered by FUDForum. Page generated in 0.02578 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software