Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Bundle cannot be retrieved
Bundle cannot be retrieved [message #948074] Wed, 17 October 2012 18:30 Go to next message
Bastian Roth is currently offline Bastian RothFriend
Messages: 19
Registered: September 2009
Junior Member
Hello everybody,

during startup, I get some strange error messages after I've moved a few classes from my e4 RCP application to another (newly created) plugin:

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-10-17 20:14:35.333
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.WorkbenchRendererFactory

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-10-17 20:14:35.334
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.WorkbenchRendererFactory

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-10-17 20:14:35.336
!MESSAGE Unable to create class 'org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine' from bundle '45'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalStateException: Could not create any rendering factory. Aborting ...
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
	at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
	at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:318)
	at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:240)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:161)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
	at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.instantiateRenderer(E4Workbench.java:100)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:83)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:150)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.IllegalStateException: Could not create any rendering factory. Aborting ...
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.initialize(PartRenderingEngine.java:434)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
	... 24 more

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-10-17 20:14:35.341
!MESSAGE Failed to create the presentation engine for URI: bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine


Of course, in the dependencies list of the corresponding product I have put a reference to org.eclipse.e4.ui.workbench.renderers.swt. So, are there any ideas or hints why this error occurs and how it can be eliminated?

Thanks in advance,
Bastian

[Updated on: Thu, 18 October 2012 07:23]

Report message to a moderator

Re: Bundle cannot be retrieved [message #1062483 is a reply to message #948074] Sat, 08 June 2013 01:49 Go to previous messageGo to next message
Edward MacKerrow is currently offline Edward MacKerrowFriend
Messages: 7
Registered: July 2010
Location: Santa Fe, New Mexico
Junior Member
I had the same error ( I was working on the Vogella e4 RCP tutorial
Then I was able to get things to work by:

(1) adding org.eclipse.e4.ui.workbench.renderers.swt to my dependencies

(2) deselecting all under my runtime configuration, then selecting the my RCP app, and add required plugins (with the check for optional dependencies selected).

Here is my Manifest.MF file:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Wizard
Bundle-SymbolicName: com.example.e4.rcp.wizard; singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: EXAMPLE
Require-Bundle: javax.inject;bundle-version="1.0.0",
org.eclipse.core.runtime;bundle-version="3.8.0",
org.eclipse.swt;bundle-version="3.100.1",
org.eclipse.jface;bundle-version="3.8.102",
org.eclipse.e4.ui.services;bundle-version="0.10.3",
org.eclipse.e4.ui.workbench;bundle-version="0.11.0",
org.eclipse.e4.core.di;bundle-version="1.2.0",
org.eclipse.e4.ui.di;bundle-version="0.10.1",
org.eclipse.e4.core.contexts;bundle-version="1.2.0",
org.eclipse.e4.ui.workbench.renderers.swt;bundle-version="0.10.3"
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: javax.annotation;version="1.0.0"

Here is my plugin.xml file

<?xml version="1.0" encoding="UTF-8"?>
<plugin>

<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
name="com.example.e4.rcp.wizard"
application="org.eclipse.e4.ui.workbench.swt.E4Application">
<property
name="clearPersistedState"
value="true">
</property>
<property
name="applicationCSS"
value="platform:/plugin/com.example.e4.rcp.wizard/css/default.css">
</property>
<property
name="appName"
value="com.example.e4.rcp.wizard">
</property>
</product>
</extension>

</plugin>

Things worked fine after the above steps.
Re: Bundle cannot be retrieved [message #1704198 is a reply to message #1062483] Sat, 08 August 2015 15:17 Go to previous message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
Thanks this help me too!

Oxygen 3a
Windows 10
Previous Topic:Insert text editor of php on my RCP
Next Topic:shortcut keys of context menu not showing up (keybindings)
Goto Forum:
  


Current Time: Tue Mar 19 09:39:23 GMT 2024

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

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

Back to the top