Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » Riena Snippets 5.0.0(Cannot run snippet due to uninitialized PlatformExtensionRegistry)
Riena Snippets 5.0.0 [message #1113061] Fri, 20 September 2013 11:30
Thorsten Schlathölter is currently offline Thorsten Schlathölter
Messages: 208
Registered: February 2012
Location: Düsseldorf
Senior Member
Hi,
i have a question regarding running one of the riena snippets. I have just installed the targetplatform for riena in Eclipse Kepler. I have successfully tried out the example.client app.

Now I am trying to start one of the riena snippets.
This is what I have done so far:

1. Created a plugin project
2. Added org.eclipse.riena.client as a dependency
3. Start the HelloWorld Snippet using Run > Run As > Java Application

Running the program ends in a NP exception (see below) because the Eclipse RegistryFactory is not initialized. In case of an Eclipse Application this Registry would be initialized by the org.eclipse.core.internal.registry.osgi.Activator. How is this supposed to work if run as Java Application. Am I doing something wrong here?

Thx
Thorsten

Exception in thread "main" org.eclipse.riena.core.util.ReflectionFailure: Could not instantiate ridget 'class org.eclipse.riena.internal.ui.ridgets.swt.LabelRidget' for control 'Label {}'
	at org.eclipse.riena.ui.ridgets.uibinding.DefaultBindingManager.createRidget(DefaultBindingManager.java:180)
	at org.eclipse.riena.ui.ridgets.uibinding.DefaultBindingManager.injectRidgets(DefaultBindingManager.java:80)
	at org.eclipse.riena.ui.ridgets.swt.SwtRidgetFactory.createRidget(SwtRidgetFactory.java:56)
	at de.sal.riena.snippets.SnippetHelloWorld.main(SnippetHelloWorld.java:28)
Caused by: java.lang.NullPointerException
	at org.eclipse.riena.ui.ridgets.IValueBindingSupportProvider$ExtensionAccess.createInstance(IValueBindingSupportProvider.java:61)
	at org.eclipse.riena.ui.ridgets.swt.AbstractValueRidget.createValueBindingSupport(AbstractValueRidget.java:40)
	at org.eclipse.riena.ui.ridgets.swt.AbstractValueRidget.<init>(AbstractValueRidget.java:28)
	at org.eclipse.riena.ui.ridgets.swt.AbstractLabelRidget.<init>(AbstractLabelRidget.java:48)
Previous Topic:SWT.VIRTUAL style for tables in Riena
Next Topic:Riena 5.0.0: No More Handles
Goto Forum:
  


Current Time: Sat Jul 26 09:17:08 EDT 2014

Powered by FUDForum. Page generated in 0.01437 seconds