Table of Contents

Seen Errors and solutions

Maven, Eclipse, RCP, Tycho Project

The error occurs in maven config files named “pom.xml”.

Error: Plugin execution not covered by lifecycle configuration

Plugin execution not covered by lifecycle configuration: org.eclipse.tycho:tycho-packaging-plugin:0.14.1:validate-version (execution: default-validate-version, phase: validate)

Solution:

  1. Inside of the pom.xml click on the red Error message.
    Select discover new m2e Connectors
  2. Install all connectors

Error: ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter

java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

Solution:

  1. Edit the “Run Configuration > Plugins Tab” to either “Launch all workspace and available plugins”
  2. OR push “Run Configuration > Plugins Tab” the “Add Required Plugins” Button to import needed plugins
  1. Additionally you should activate in “Run Configuration > Plugins Tab” the “validate Plugins automaticyll prior to launching”, so that dependency problems are identified before launching the pluign

Error: cannot be resolved to a type

Eclipse doesn't find any library in a new Eclipse RCP plugin, and complains:

cannot be resolved to a type
cannot be resolved to a type
cannot be resolved to a type
cannot be resolved to a type
cannot be resolved to a type

Solution: The libraries from the Target Platform are redirected to the new Plugin by Extensions org.eclipse.core.runtime and org.eclipse.ui

  1. go to the plugin.xml > Dependencies-Tab and add the org.eclipse.core.runtime Extension
  2. go to the plugin.xml > Dependencies-Tab and add the org.eclipse.ui Extension

Error: Eclipse can not resolve Classes from depending Eclipse RCP Plugin-Projects

Eclipse can not resolve Classes from depending Eclipse RCP Plugin-Projects

cannot be resolved to a type
cannot be resolved to a type
cannot be resolved to a type
cannot be resolved to a type
cannot be resolved to a type

Solution: - go to Project Properties of Project, where the dependencies can not be resolved - add the Project with dependencies to “Java Build Path” > Projects-Tab

png

Error: Maven's Tycho plugin wont find the .ico file

Maven's Tycho plugin wont find the .ico file and won't replace launcher's icon. This happens because it handles the ico path, as if it would start with ${project.build.directory}/products/${product-id}

Error - 7 icon(s) not replaced in...

Solution:

  1. change your path to be relative to the ${project.build.directory}/products/${product-id}, e.g.
    /../../../../de.ivu.fare.rcp.plugin/images/icons/ivu_icon_multires.ico
  2. don't forget to start the path with a slash

Error: Eclipse can't find a suitable constructor, to create a class, defined in Application.e4xmi

Eclipse can't find a suitable constructor, to create a class, defined in Application.e4xmi and complains.

org.eclipse.e4.core.di.InjectionException: Could not find satisfiable constructor in com.example.e4.rcp.todo.ui.parts.PlaygroundPart
	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:327)
	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.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:141)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:889)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:623)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1042)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
	at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
	at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
	at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
	at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
	at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:57)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
	at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:103)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:635)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:635)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
	at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:635)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:67)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4687)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
	at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
	at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
	at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
	at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
	at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
	at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:57)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
	at org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveStackImpl.setSelectedElement(PerspectiveStackImpl.java:135)
	at org.eclipse.e4.ui.model.application.ui.advanced.impl.PerspectiveStackImpl.setSelectedElement(PerspectiveStackImpl.java:1)
	at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:103)
	at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:639)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
	at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:626)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:635)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:725)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:696)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:690)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:675)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:957)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	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)

Solution: Create a constructor with an @Inject annotaion.

Error: No application id has been found

!ENTRY org.eclipse.osgi 4 0 2012-10-15 12:42:15.851
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
	at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
	at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
	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)
An error has occurred. See the log file

Solution:

  1. the wrong Application is selected in the product definition, it should be “org.Eclipse.rcp.core.bundle.product”
  2. there are dependencies missing. Launch the applictation with a custom launch configuration, where all the required plugins will be imported.

Error: Maven m2e and Eclipse Workspace are out of sync

Maven m2e and Eclipse Workspace are out of sync.
There are "out of sync" icons near the Bunlde names in Dependencies Tab.

Solution: 1. turn off auto build (sometimes need to turn off auto refresh as well) 2. clean all (NOTE: need to opt out “start rebuild automatically” in clean dialog as well!) 3. mvn clean install (sometimes it works out without this step) 4. refresh Maven projects (only if step #3 was done) 5. exit eclipse 6. start eclipse 7. refresh all projects 8. turn on auto build

as described here: https://issues.sonatype.org/browse/TYCHO-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Error: The Eclipse executable launcher was unable to locate its companion shared library

The Eclipse executable launcher was unable to locate its companion shared library.

Reason: This occures, because Eclipse's eclipse_xxxx.dll e.g. WORKINDIR\rcp\de.ivu.fare.rcp\de.ivu.fare.rcp.core\de.ivu.fare.rcp.product\target\products\de.ivu.fare.rcp.product\win32\win32\x86_64\fare\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813\eclipse_1503.dll can not be reached.

Solution: 1. It may occur, because the path to the lib is too long: copy the exported project to some other place 2. It may occur, becuase you do not have the rights to use eclipse_xxxx.dll - adopt the rights.

Error: package in Eclipse is not accessable.

package in Eclipse is not accessable.

Solution: Try adding accessable Rules to the .classpath file.

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
		<accessrules>
			<accessrule kind="accessible" pattern="*"/>
		</accessrules>
	</classpathentry>
	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
		<accessrules>
			<accessrule kind="accessible" pattern="**"/>
		</accessrules>
	</classpathentry>
	<classpathentry kind="src" path="src/main/java"/>
	<classpathentry kind="output" path="target/classes"/>
</classpath>

Error: Abhangigkeiten

Abhangigkeiten, 
 - zu den Common Bibliotheken
 - zur LAUFZEIT
 - beim Starten aus Eclipse 
werde nicht aufgelost!

Solution: Mit Maven, alle bibliotheken beginnend mit root bauen. Eventuell die Serverbibliotheken deployen.

Error:

POM says: Missing artifact com.sun:tools:jar:1.6

Solution: Add the following dependency:

 <dependency>
   <groupId>com.sun</groupId>
   <artifactId>tools</artifactId>
   <version>1.6</version>
   <scope>system</scope>
   <systemPath>C:\Program Files\Java\jdk1.6.0_29\lib\tools.jar</systemPath>
 </dependency>

Error: konnte kein Exemplar der Klasse

Beim Starten des Client:

org.eclipse.core.runtime.CoreException: Das Plug-in "de.ivu.fare.rcp.account.bundle" konnte kein Exemplar der Klasse "de.ivu.fare.rcp.account.seller.LimitAccountSellersAddon" erstellen.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at de.ivu.fare.rcp.lifecycle.ModuleProviderExtPointLifeCycleHandler.createSubmoduleData(ModuleProviderExtPointLifeCycleHandler.java:153)
at de.ivu.fare.rcp.lifecycle.ModuleProviderExtPointLifeCycleHandler.createSubmodule(ModuleProviderExtPointLifeCycleHandler.java:141)
at de.ivu.fare.rcp.lifecycle.ModuleProviderExtPointLifeCycleHandler.evaluateConfigurationElement(ModuleProviderExtPointLifeCycleHandler.java:74)
at de.ivu.fare.rcp.lifecycle.AbstractExtPointLifeCycleHandler.registerExtPoints(AbstractExtPointLifeCycleHandler.java:49)
at de.ivu.fare.rcp.lifecycle.AbstractExtPointLifeCycleHandler.processAdditions(AbstractExtPointLifeCycleHandler.java:39)
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)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:235)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:199)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:89)
at de.ivu.fare.rcp.lifecycle.LifeCycle.invokeExtPointLifecycleHandler(LifeCycle.java:60)
at de.ivu.fare.rcp.lifecycle.LifeCycle.invokeExtensionPointHandlers(LifeCycle.java:39)
at de.ivu.fare.rcp.lifecycle.LifeCycle.processAdditions(LifeCycle.java:33)
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)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:206)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:106)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:244)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:132)
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.NoClassDefFoundError: de/ivu/fare/account/server/AccountService
at de.ivu.fare.rcp.account.seller.LimitTableStructureServices.<init>(LimitTableStructureServices.java:17)
at de.ivu.fare.rcp.account.seller.LimitAccountSellersAddon.<init>(LimitAccountSellersAddon.java:21)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:374)
at java.lang.Class.newInstance(Class.java:327)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
... 43 more
Caused by: java.lang.ClassNotFoundException: de.ivu.fare.account.server.AccountService
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 52 more

Solution: Der Fehler ist auf einen inkonsistenten Zutand im .metadata Verzeichniss des Eclipse Workspace zurüczufhren. Nach dem neueinrichten des Workspace ist der Fehler verschwunden.

Error An error occurred while collecting items to be installed

When using target platform:

Problems occurred getting the plug-ins in this container
  An error occurred while collecting items to be installed
    session context was:(profile=TARGET_DEFINITION:resource:/de.ivu.fare.rcp.core/de.ivu.fare.rcp.core.target/fare.target, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Artifact org.eclipse.update.feature,org.eclipse.nebula.widgets.pshelf.feature,1.0.0.201212230840 is a folder but the repository is an archive or remote location.
  An error occurred while collecting items to be installed
    session context was:(profile=TARGET_DEFINITION:resource:/de.ivu.fare.rcp.core/de.ivu.fare.rcp.core.target/fare.target, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Artifact org.eclipse.update.feature,org.eclipse.nebula.widgets.pshelf.feature,1.0.0.201212230840 is a folder but the repository is an archive or remote location.
  An error occurred while collecting items to be installed
    session context was:(profile=TARGET_DEFINITION:resource:/de.ivu.fare.rcp.core/de.ivu.fare.rcp.core.target/fare.target, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Artifact org.eclipse.update.feature,org.eclipse.nebula.widgets.pshelf.feature,1.0.0.201212230840 is a folder but the repository is an archive or remote location.
  An error occurred while collecting items to be installed
    session context was:(profile=TARGET_DEFINITION:resource:/de.ivu.fare.rcp.core/de.ivu.fare.rcp.core.target/fare.target, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Artifact org.eclipse.update.feature,org.eclipse.nebula.widgets.pshelf.feature,1.0.0.201212230840 is a folder but the repository is an archive or remote location.
  An error occurred while collecting items to be installed
    session context was:(profile=TARGET_DEFINITION:resource:/de.ivu.fare.rcp.core/de.ivu.fare.rcp.core.target/fare.target, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Artifact org.eclipse.update.feature,org.eclipse.nebula.widgets.pshelf.feature,1.0.0.201212230840 is a folder but the repository is an archive or remote location.

Solution: A defect Eclipse IDE was the reason. (One of the plugins?) Downloading a new one was the solution.

Error: The project cannot be built until its prerequirenments X is build

The project cannot be built until its prerequirenments X is build. Cleaning and building all projects is recommended

This happens, regulary. Probably because of circular dependencies.

Solution:

  1. Close all subprojects, except of the core project.
  2. Rebuild the All (open) projects. Update maven dependencies.
  3. Then open the projects one by one

Android

Error: Class ref in pre-verified class resolved to unexpected implementation

When implementing Android JUnit Tests.
Occurs, when the test-Project references the testED-Project as a jar.

java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

Solution:

Do not import the testED-Project as JAR into the test-Project. Instead:

  1. Mark the testED-Project as a library.
  2. Add it in ProjectProperties > Android to the lib requirenments.

Test Project

TestED Project

Error: HttpHostConnectException: Connection refused Android

When trying to send Http Requests in Android.
An Exception occurs: HttpHostConnectException: Connection refused Android

Solution: The Activity has no rights for the internet connection. Add to Manifest.MF

<uses-permission android:name="android.permission.INTERNET" />

Error: same classes are imported via multiple entry points

When importing dependencies via lib projects or via Maven tycho. Can not start the app on device, because the same classes are imported via multiple entry points. (in app and lib apk are the same libs)

Unable to execute dex: Multiple dex files define ....

Solution: Do not use libs for dependencies and do not import dependencies via the libs folder.

Error: User Operation is waiting for “Building Workspace

When launching many plugin projects in Eclipse IDE, and Maven (mainly M2Eclipse plugin).
Sometimes Eclipse freezes, with a message “User Operation is waiting for “Building Workspace””

i.stack.imgur.com_0vosj.jpg

Solution: This may happen, because there are circular dependencies in open projects. Close as many projects as possible, and relaunch your main project. Then reopen your plugin projects one by one.

Docker

Error: Failed to open/create the internal network

Problem: Docker failes to start with:

(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
Error creating machine: Error in driver during machine creation: Unable to start the VM: D:\Programme\VirtualBox\VBoxMan
age.exe startvm default --type headless failed:
VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet
 Adapter #2' (VERR_INTNET_FLT_IF_NOT_FOUND).
VBoxManage.exe: error: Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

Solution: modify the “VirtualBox Host-Only Ethernet Adapter #2”. Enable “VirtualBox NDIS6 Bridged Networking driver” http://stackoverflow.com/questions/33725779/failed-to-open-create-the-internal-network-vagrant-on-windows10