Zend studio error - Exception while removing a file from index - eclipse

Im using Zend studio 7.2.1 and when i try to open it I get a message saying that an error occured , i tried Zend Studio 9 but it gives the same error and in the log it says that an exception is thrown while removing file x from index .
Here's part of the log from my workspace's metadata :
!ENTRY org.eclipse.dltk.core.index.sql 4 0 2011-12-08 17:26:30.140
!MESSAGE An exception thrown while removing file '/Project/web/application/Component/FECH/ondomreadycommun.phtml' from index
!STACK 0
org.h2.jdbc.JdbcSQLException: General error: java.lang.NullPointerException; SQL statement:
DELETE FROM FILES WHERE PATH=? AND CONTAINER_ID=?; [50000-122]
at org.h2.message.Message.getSQLException(Message.java:106)
at org.h2.message.Message.convert(Message.java:283)
at org.h2.command.Command.executeUpdate(Command.java:229)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:139)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:128)
at org.eclipse.dltk.internal.core.index.sql.h2.H2FileDao.delete(H2FileDao.java:164)
at org.eclipse.dltk.internal.core.index.sql.SqlIndexer.removeDocument(SqlIndexer.java:224)
at org.eclipse.dltk.internal.core.index2.ReconcileSourceModuleRequest.run(ReconcileSourceModuleRequest.java:55)
at org.eclipse.dltk.core.search.indexing.AbstractJob.execute(AbstractJob.java:77)
at org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager.java:461)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.h2.index.PageDataLeaf.getRowAt(PageDataLeaf.java:300)
at org.h2.index.PageDataLeaf.getRow(PageDataLeaf.java:412)
at org.h2.index.PageDataNode.getRow(PageDataNode.java:284)
at org.h2.index.PageDataIndex.getRow(PageDataIndex.java:361)
at org.h2.index.PageDataIndex.getRow(PageDataIndex.java:350)
at org.h2.table.TableData.getRow(TableData.java:116)
at org.h2.index.PageBtreeIndex.getRow(PageBtreeIndex.java:269)
at org.h2.index.PageBtreeCursor.get(PageBtreeCursor.java:46)
at org.h2.index.IndexCursor.get(IndexCursor.java:147)
at org.h2.table.TableFilter.getValue(TableFilter.java:650)
at org.h2.expression.ExpressionColumn.getValue(ExpressionColumn.java:168)
at org.h2.expression.Comparison.getValue(Comparison.java:215)
at org.h2.expression.ConditionAndOr.getValue(ConditionAndOr.java:86)
at org.h2.expression.Expression.getBooleanValue(Expression.java:188)
at org.h2.command.dml.Delete.update(Delete.java:57)
at org.h2.command.CommandContainer.update(CommandContainer.java:72)
at org.h2.command.Command.executeUpdate(Command.java:209)
... 8 more
......
!ENTRY org.eclipse.osgi 2 0 2011-12-15 09:51:22.358
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-12-15 09:51:22.358
!MESSAGE Bundle org.eclipse.jdt.apt.pluggable.core_1.0.201.R35x_v20090818-0225 [341] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2011-12-15 09:51:22.358
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2011-12-15 09:51:22.358
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2011-12-15 09:51:22.358
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2011-12-15 09:51:22.358
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-12-15 09:51:22.358
!MESSAGE Bundle org.eclipse.jdt.compiler.apt_1.0.201.R35x_v20090825-1530 [343] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2011-12-15 09:51:22.358
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-12-15 09:51:22.358
!MESSAGE Bundle org.eclipse.jdt.compiler.tool_1.0.100.v_972_R35x [344] was not resolved.
How can i fix this ?
Thanks.

I just deleted .metadata folder from my workspace then restarted zend studio and it worked .

Related

RCP Eclipse Platform Upgrade Issue

I am upgrading Eclipse platform for RCP product from 4.6.3 to 4.15. I am using Eclipse-SDK-4.15 for development and eclipse 4.15 based target platform and Java 8. I have resolved all the compilation errors in workspace. I am using existing launch configuration where "Execution Environment" is set as "JavaSE-1.8" and in Plug-ins tab "all workspace and enabled target plug-ins" is selected. On running the configuration I get below error:
!SESSION 2022-03-01 05:42:37.611 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=8.0.6.15 - pwa6480sr6fp15-20200724_01(SR6 FP15)
JRE 1.8.0 Windows Server 2016 amd64-64-Bit Compressed References 20200724_452227 (JIT enabled, AOT enabled)
OpenJ9 - 4ce4b9d
OMR - 08b0594
IBM - 70917a2
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.ibm.rmc.rcp.ui.75.composer
Command-line arguments: -product com.ibm.rmc.rcp.ui.75.composer -data E:\Test\workspace/../runtime-rmc.product -dev file:E:/Test/workspace/.metadata/.plugins/org.eclipse.pde.core/rmc.product/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -os win32 -ws win32 -arch x86_64 -clean
!ENTRY org.eclipse.update.configurator 4 0 2022-03-01 05:42:38.508
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.update.configurator_3.4.500.v20200225-0827 [2]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
!ENTRY org.eclipse.core.runtime 4 0 2022-03-01 05:42:38.508
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.core.runtime_3.17.100.v20200203-0917 [3]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
!ENTRY org.eclipse.equinox.ds 4 0 2022-03-01 05:42:38.508
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.ds_1.6.100.v20191001-1333 [4]" could not be resolved. Reason: Missing Constraint: Require-Bundle: org.apache.felix.scr; bundle-version="[2.1.0,3.0.0)"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
!ENTRY org.eclipse.osgi 4 0 2022-03-01 05:42:38.524
!MESSAGE Bundle initial#reference:file:../../../WTP/constellation.ratl.swg.usma.ibm.com/iesp2/ies-repositories/4.15/eclipse/plugins/org.eclipse.update.configurator_3.4.500.v20200225-0827.jar/ was not resolved.
!ENTRY org.eclipse.osgi 4 0 2022-03-01 05:42:38.524
!MESSAGE Bundle initial#reference:file:../../../WTP/constellation.ratl.swg.usma.ibm.com/iesp2/ies-repositories/4.15/equinox/plugins/org.eclipse.core.runtime_3.17.100.v20200203-0917.jar/ was not resolved.
!ENTRY org.eclipse.osgi 4 0 2022-03-01 05:42:38.524
!MESSAGE Bundle initial#reference:file:../../../WTP/constellation.ratl.swg.usma.ibm.com/iesp2/ies-repositories/4.15/equinox/plugins/org.eclipse.equinox.ds_1.6.100.v20191001-1333.jar/ was not resolved.
!ENTRY org.eclipse.osgi 2 0 2022-03-01 05:42:38.540
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.540
!MESSAGE Bundle initial#reference:file:../../../WTP/constellation.ratl.swg.usma.ibm.com/iesp2/ies-repositories/4.15/equinox/plugins/org.eclipse.core.runtime_3.17.100.v20200203-0917.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing required bundle org.eclipse.equinox.app_1.3.0.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing required bundle org.eclipse.osgi_[3.13.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing required bundle org.eclipse.equinox.common_[3.10.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.7.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing required bundle org.eclipse.core.jobs_[3.10.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing required bundle org.eclipse.equinox.registry_[3.8.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing required bundle org.eclipse.equinox.preferences_[3.7.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.540
!MESSAGE Bundle initial#reference:file:../../../WTP/constellation.ratl.swg.usma.ibm.com/iesp2/ies-repositories/4.15/equinox/plugins/org.eclipse.equinox.ds_1.6.100.v20191001-1333.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.framework.startlevel_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.util.tracker_1.5.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing required bundle org.apache.felix.scr_[2.1.0,3.0.0).
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.service.component.runtime_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.util.promise_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.framework.namespace_1.1.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.service.component_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.framework_1.8.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.framework.wiring_1.2.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.service.component.runtime.dto_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.540
!MESSAGE Missing imported package org.osgi.framework.dto_1.8.0.
!ENTRY org.eclipse.osgi 2 0 2022-03-01 05:42:38.555
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.555
!MESSAGE Bundle org.eclipse.update.configurator_3.4.500.v20200225-0827 [2] was not resolved.
!SUBENTRY 2 org.eclipse.update.configurator 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.555
!MESSAGE Bundle org.eclipse.core.runtime_3.17.100.v20200203-0917 [3] was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing required bundle org.eclipse.osgi_[3.13.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing required bundle org.eclipse.equinox.common_[3.10.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing required bundle org.eclipse.core.jobs_[3.10.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing required bundle org.eclipse.equinox.registry_[3.8.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing required bundle org.eclipse.equinox.preferences_[3.7.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.7.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing required bundle org.eclipse.equinox.app_1.3.0.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing dynamically imported package org.eclipse.core.internal.runtime.auth_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.555
!MESSAGE Bundle org.eclipse.equinox.ds_1.6.100.v20191001-1333 [4] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing required bundle org.apache.felix.scr_[2.1.0,3.0.0).
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.framework_1.8.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.framework.dto_1.8.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.framework.namespace_1.1.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.framework.startlevel_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.framework.wiring_1.2.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.service.component_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.service.component.runtime_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.service.component.runtime.dto_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.util.promise_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.555
!MESSAGE Missing imported package org.osgi.util.tracker_1.5.0.
!ENTRY org.eclipse.osgi 2 0 2022-03-01 05:42:38.571
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.571
!MESSAGE Bundle initial#reference:file:../../../WTP/constellation.ratl.swg.usma.ibm.com/iesp2/ies-repositories/4.15/equinox/plugins/org.eclipse.core.runtime_3.17.100.v20200203-0917.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.equinox.app_1.3.0.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.osgi_[3.13.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.equinox.common_[3.10.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.7.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.core.jobs_[3.10.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.equinox.registry_[3.8.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.equinox.preferences_[3.7.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.571
!MESSAGE Bundle initial#reference:file:../../../WTP/constellation.ratl.swg.usma.ibm.com/iesp2/ies-repositories/4.15/equinox/plugins/org.eclipse.equinox.ds_1.6.100.v20191001-1333.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.framework.startlevel_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.util.tracker_1.5.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.apache.felix.scr_[2.1.0,3.0.0).
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.service.component.runtime_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.util.promise_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.framework.namespace_1.1.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.service.component_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.framework_1.8.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.framework.wiring_1.2.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.service.component.runtime.dto_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing imported package org.osgi.framework.dto_1.8.0.
!ENTRY org.eclipse.osgi 2 0 2022-03-01 05:42:38.571
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.571
!MESSAGE Bundle org.eclipse.update.configurator_3.4.500.v20200225-0827 [2] was not resolved.
!SUBENTRY 2 org.eclipse.update.configurator 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.8
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.571
!MESSAGE Bundle org.eclipse.core.runtime_3.17.100.v20200203-0917 [3] was not resolved.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.osgi_[3.13.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.equinox.common_[3.10.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.core.jobs_[3.10.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.571
!MESSAGE Missing required bundle org.eclipse.equinox.registry_[3.8.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing required bundle org.eclipse.equinox.preferences_[3.7.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing required bundle org.eclipse.core.contenttype_[3.7.0,4.0.0).
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing required bundle org.eclipse.equinox.app_1.3.0.
!SUBENTRY 2 org.eclipse.core.runtime 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing dynamically imported package org.eclipse.core.internal.runtime.auth_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2022-03-01 05:42:38.587
!MESSAGE Bundle org.eclipse.equinox.ds_1.6.100.v20191001-1333 [4] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing required bundle org.apache.felix.scr_[2.1.0,3.0.0).
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.framework_1.8.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.framework.dto_1.8.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.framework.namespace_1.1.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.framework.startlevel_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.framework.wiring_1.2.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.service.component_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.service.component.runtime_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.service.component.runtime.dto_1.4.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.util.promise_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2022-03-01 05:42:38.587
!MESSAGE Missing imported package org.osgi.util.tracker_1.5.0.
!ENTRY org.eclipse.osgi 4 0 2022-03-01 05:42:38.587
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
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:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)
An error has occurred. See the log file
E:\Test\workspace\.metadata\.plugins\org.eclipse.pde.core\rmc.product\1646142158140.log.
I have searched for similar error but found answers saying the eclipse used is very old which don't support java version. However in my case I verified that Eclipse 4.15 supports Java 8.
I also tried running RCP product file using "Launch an Eclipse Application" option but it too resulted in same error.
I was trying many things like changing features/Plug-ins in "Content", Start Levels in "Configuration" etc. but nothing did work. Any help on this would be much appreciated. Thanks!

Mockito bundle cannot find org.hamcrest package even though Hamcrest is a dependency

I work on an Eclipse 4 RCP project with one plugin bundle and a bundle fragment for unit tests. The target platform is defined with an Eclipse target definition (.target file). Maven with Tycho is used to build the project outside of Eclipse (manifest-first with the .target file defining the target platform).
Now I want to include Mockito in the target platform for mocking. Eclipse Orbit provides an org.mockito (1.9.5) bundle. It depends among other things on org.hamcrest (which can also be found on the Orbit p2 site) so I added it to the target definition as well. When I set Eclipse's target platform from the target file the following shows up in the Target Platform State view:
Even though both org.hamcrest.library and org.hamcrest.core are present (both bundles export the org.hamcrest 1.3.0 package) the org.mockito bundle claims to miss the org.hamcrest package.
Nevertheless I added the org.mockito and org.hamcrest.library to the test plugin fragment's dependencies in the MANIFEST.MF.
Require-Bundle: org.junit;bundle-version="4.11.0",
org.hamcrest.library;bundle-version="1.3.0",
org.mockito;bundle-version="1.9.5"
The fragment seems to compile but the tests cannot be run. The tycho-surefire-plugin reports:
An error has occurred. See the log file [...]\target\work\configuration\1405514016520.log.
The log file reads:
!SESSION 2014-07-16 14:33:34.053 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments: -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties F:\Users\Jakob\Documents\Bachelorprojekt\Code\myplugin.tests\target\surefire.properties
Command-line arguments: -data F:\Users\Jakob\Documents\Bachelorprojekt\Code\myplugin.tests\target\work\data -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties F:\Users\Jakob\Documents\Bachelorprojekt\Code\myplugin.tests\target\surefire.properties
!ENTRY org.eclipse.osgi 2 0 2014-07-16 14:33:40.508
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.508
!MESSAGE Bundle initial#reference:file:../../../../../../.m2/repository/p2/osgi/bundle/org.eclipse.swt.gtk.linux.x86_64/3.102.1.v20130827-2048/org.eclipse.swt.gtk.linux.x86_64-3.102.1.v20130827-2048.jar was not resolved.
!SUBENTRY 2 org.eclipse.swt.gtk.linux.x86_64 2 0 2014-07-16 14:33:40.508
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.508
!MESSAGE Bundle initial#reference:file:../../../../../../.m2/repository/p2/osgi/bundle/org.eclipse.swt.cocoa.macosx.x86_64/3.102.1.v20130827-2048/org.eclipse.swt.cocoa.macosx.x86_64-3.102.1.v20130827-2048.jar was not resolved.
!SUBENTRY 2 org.eclipse.swt.cocoa.macosx.x86_64 2 0 2014-07-16 14:33:40.508
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.508
!MESSAGE Bundle initial#reference:file:../../../../../../.m2/repository/p2/osgi/bundle/org.mockito/1.9.5.v201311280930/org.mockito-1.9.5.v201311280930.jar was not resolved.
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.509
!MESSAGE Missing imported package org.hamcrest_[1.0.0,2.0.0).
!ENTRY org.eclipse.osgi 2 0 2014-07-16 14:33:40.547
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.547
!MESSAGE Bundle myplugin.tests_0.0.1.qualifier [2] was not resolved.
!SUBENTRY 2 myplugin.tests 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing required bundle org.mockito_1.9.5.
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.547
!MESSAGE Bundle org.mockito_1.9.5.v201311280930 [5] was not resolved.
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing optionally imported package COM.jrockit.reflect_0.0.0.
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing optionally imported package jrockit.vm_0.0.0.
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing imported package org.hamcrest_[1.0.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing imported package org.mockito_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing imported package org.mockito.configuration_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing imported package org.mockito.exceptions_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing imported package org.mockito.exceptions.base_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing imported package org.mockito.exceptions.misusing_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing imported package org.mockito.exceptions.stacktrace_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.547
!MESSAGE Missing imported package org.mockito.exceptions.verification_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing imported package org.mockito.exceptions.verification.junit_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing imported package org.mockito.invocation_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing imported package org.mockito.listeners_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing imported package org.mockito.mock_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing imported package org.mockito.plugins_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing imported package org.mockito.runners_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing imported package org.mockito.stubbing_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing imported package org.mockito.stubbing.answers_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing imported package org.mockito.verification_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing optionally imported package sun.reflect_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.548
!MESSAGE Bundle org.eclipse.swt.gtk.linux.x86_64_3.102.1.v20130827-2048 [147] was not resolved.
!SUBENTRY 2 org.eclipse.swt.gtk.linux.x86_64 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.548
!MESSAGE Bundle org.eclipse.swt.cocoa.macosx.x86_64_3.102.1.v20130827-2048 [148] was not resolved.
!SUBENTRY 2 org.eclipse.swt.cocoa.macosx.x86_64 2 0 2014-07-16 14:33:40.548
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!ENTRY org.eclipse.osgi 2 0 2014-07-16 14:33:40.804
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.804
!MESSAGE Bundle initial#reference:file:../../../../../../.m2/repository/p2/osgi/bundle/org.eclipse.swt.gtk.linux.x86_64/3.102.1.v20130827-2048/org.eclipse.swt.gtk.linux.x86_64-3.102.1.v20130827-2048.jar was not resolved.
!SUBENTRY 2 org.eclipse.swt.gtk.linux.x86_64 2 0 2014-07-16 14:33:40.804
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.804
!MESSAGE Bundle initial#reference:file:../../../../../../.m2/repository/p2/osgi/bundle/org.eclipse.swt.cocoa.macosx.x86_64/3.102.1.v20130827-2048/org.eclipse.swt.cocoa.macosx.x86_64-3.102.1.v20130827-2048.jar was not resolved.
!SUBENTRY 2 org.eclipse.swt.cocoa.macosx.x86_64 2 0 2014-07-16 14:33:40.804
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.804
!MESSAGE Bundle initial#reference:file:../../../../../../.m2/repository/p2/osgi/bundle/org.mockito/1.9.5.v201311280930/org.mockito-1.9.5.v201311280930.jar was not resolved.
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.804
!MESSAGE Missing imported package org.hamcrest_[1.0.0,2.0.0).
!ENTRY org.eclipse.osgi 2 0 2014-07-16 14:33:40.833
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.833
!MESSAGE Bundle myplugin.tests_0.0.1.qualifier [2] was not resolved.
!SUBENTRY 2 myplugin.tests 2 0 2014-07-16 14:33:40.833
!MESSAGE Missing required bundle org.mockito_1.9.5.
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.833
!MESSAGE Bundle org.mockito_1.9.5.v201311280930 [5] was not resolved.
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.833
!MESSAGE Missing optionally imported package COM.jrockit.reflect_0.0.0.
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.833
!MESSAGE Missing optionally imported package jrockit.vm_0.0.0.
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.833
!MESSAGE Missing imported package org.hamcrest_[1.0.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito.configuration_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito.exceptions_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito.exceptions.base_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito.exceptions.misusing_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito.exceptions.stacktrace_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito.exceptions.verification_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito.exceptions.verification.junit_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito.invocation_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.834
!MESSAGE Missing imported package org.mockito.listeners_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.835
!MESSAGE Missing imported package org.mockito.mock_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.835
!MESSAGE Missing imported package org.mockito.plugins_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.835
!MESSAGE Missing imported package org.mockito.runners_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.835
!MESSAGE Missing imported package org.mockito.stubbing_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.835
!MESSAGE Missing imported package org.mockito.stubbing.answers_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.835
!MESSAGE Missing imported package org.mockito.verification_[1.9.0,2.0.0).
!SUBENTRY 2 org.mockito 2 0 2014-07-16 14:33:40.835
!MESSAGE Missing optionally imported package sun.reflect_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.835
!MESSAGE Bundle org.eclipse.swt.gtk.linux.x86_64_3.102.1.v20130827-2048 [147] was not resolved.
!SUBENTRY 2 org.eclipse.swt.gtk.linux.x86_64 2 0 2014-07-16 14:33:40.835
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-07-16 14:33:40.835
!MESSAGE Bundle org.eclipse.swt.cocoa.macosx.x86_64_3.102.1.v20130827-2048 [148] was not resolved.
!SUBENTRY 2 org.eclipse.swt.cocoa.macosx.x86_64 2 0 2014-07-16 14:33:40.835
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!ENTRY org.eclipse.osgi 4 0 2014-07-16 14:33:40.857
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Bundle myplugin.tests is not found
at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.getBundleClassLoader(OsgiSurefireBooter.java:149)
at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:67)
at org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:21)
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:606)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
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:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
Launching the plugin test from Eclipse PDE yields effectively the same mockito-related errors (the SWT-related ones are missing but instead there are other bundle resolution errors since I do not usually run these tests from Eclipse and did not eliminate some conflicting bundles from the launch configuration).
What are probable causes for the missing imported-package error even though the package is definitely exported by another required bundle from the target platform and how can I fix this setup?
I was recently having the same problem, in both Tycho build and starting a runtime Eclipse from PDE:
!ENTRY org.mockito 4 0 2018-03-14 11:53:00.671
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.mockito [6]
Unresolved requirement: Import-Package: COM.jrockit.reflect; resolution:="optional"
Unresolved requirement: Import-Package: jrockit.vm; resolution:="optional"
Unresolved requirement: Import-Package: org.apache.tools.ant; resolution:="optional"
Unresolved requirement: Import-Package: org.apache.tools.ant.types; resolution:="optional"
Unresolved requirement: Import-Package: org.hamcrest; version="[1.0.0,2.0.0)"
I was able to solve this in both cases without needing a re-packaged Mockito.
In PDE by adding the org.hamcrest explicity to the target platform instead of just org.hamcrest.core:
corresponding .target code:
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.hamcrest" version="1.1.0.v20090501071000"/>
<unit id="org.mockito" version="1.9.5.v201605172210"/>
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20180206163158/repository/"/>
</location>
And in Tycho by doing the equivalent:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<!-- Workaround for an issue with mockito depending on hamcrest -->
<requirement>
<type>eclipse-plugin</type>
<id>org.hamcrest</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
The root cause of your problem is that org.hamcrest is a split package. There is obviously a bug in tycho or in eclipse, that prevents that from working. See the followings for details:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=334540
https://bugs.eclipse.org/bugs/show_bug.cgi?id=403196
Please give a try to my re-packaged version of Hamcrest and Mockito (Powermock-OSGI). In my version the Mockito manifest specifies, that only the "core" part of the org.hamcrest package is needed by Mockito:
Orbit version:
Import-Package: COM.jrockit.reflect;resolution:=optional,jrockit.vm;re
solution:=optional,junit.framework;resolution:=optional,org.apache.to
ols.ant;resolution:=optional,org.apache.tools.ant.types;resolution:=o
ptional,org.hamcrest;version="[1.0,2.0)"
My version:
Import-Package: org.hamcrest;core=split,junit.framework,org.junit,org.ju
nit.internal.runners,org.junit.runner,org.junit.runner.manipulation,org
.junit.runner.notification,org.junit.runners,org.junit.runners.model,or
g.objenesis;version="[2.1,3)"
The update site can be found at http://powermock-osgi.googlecode.com/svn/updateSite/1.5.4.1/
Project home: https://code.google.com/p/powermock-osgi/
Before taking my update site, you might need to delete Eclipse and Tycho bundle pools as written at Powermock-OSGI site:
First Time Usage
Tycho and Eclipse PDE caches the bundles based on symbolic name and
version. So if the user already had a 4.11 version of Junit anytime in
the past, our hacked powermock version will not be taken.
So before first usage inside Eclipse the user has to delete the
.metadata.plugins\org.eclipse.pde.core.bundle_pool and
.metadata.plugins\org.eclipse.pde.core.external_libraries in ALL
workspaces of the specific Eclipse installation (bundles are looked up
cross workspace way). BE SURE, that when you run the unit tests in
eclipse the plugins tab in the launch config REALLY contains the
JUnit, Mockito and Hamcrest plugins of the Powermock feature, and not
some other version. Before first usage with Tycho delete the .meta
.cache and p2 folders from the maven local repository
Please send me a feedback if it works.
I had the same problem that Tycho could not resolve Hamcrest correctly. In my project I used my build my own target platform (just a few plugins from Luna SDK). For unit tests I took the JUnit bundle from the SDK. When I added the Mockito library I faced the same problem described above. At first I also experimented with repackaging the Mockito bundle with concrete versions. But I couldn't fix it. Then I found your question and Gábor's answer, which finally solved my problem!
At first I followed the instruction and added the update site and chose the needed feature (Powermock with Mockito and JUnit). Then I ran into unresolved dependency with Objenisis bundle. I don't know if this is my specific problem because I made my own target platform with a few bundles or that Objenisis is just missing in the feature?!
So I copied the needed bundles (incl. Objenisis) from the powermock-osgi update site to my own target platform and now it works as expected!
I also had that problem and couldn't figure out a way by using the orbit R20200224183213 bundles.
Finally I just downloaded mockito-all, placed it into the libs folder and added it to my test plug-in's runtime classpath (MANIFEST.MF -> Bundle-ClassPath).
I hope they will fix it in the next orbit versions so that I can use the orbit bundles again.

Eclipse 4.2.1 plugin execution outside ide bundle not resolved errors

I am facing bundle not resolved errors which ultimately lead to java.lang.RuntimeException: Application "com.xyz.application" could not be found in the registry. after upgrading to Eclipse 4.2.1. I get these issues when I run my application outside Eclipse and the app wont launch, the splash screen appears and I see a message to check logs.. Weirdly though the jars that are missing are found in the plugins directory of my application, I have checked the dependencies tab in Eclipse and added once again the bundles that are logged as not resolved but no luck, I have checked my MANIFEST file, but I see things are right- is bundle-version mandatory in the manifest for every bundle I use? I see some bundles don't have that property set in them.
There is one more thing to note here, in my previous Eclipse 3.7.2 builds the application after launching creates many folders in the configuration folder, I see all those folders in 4.2.1 except for org.eclipse.ui.intro.universal, and I see that during my pde build for 4.2.1 I see that ant tries twice to unzip org.eclipse.ui.intro.universal.nl1 and org.eclipse.ui.intro.universal.nl2.. and my nestedJars directory has just nl1 and nl2 jars for these two bunldes but the org.eclipse.ui.intro.universal.nl1.jar file has lot many files apart from nl*jar - I think nl1 and nl2 jars are supposed to be moved too from nestedJars folder, because I see that all the other bundle folders under nestedJars have no .jar in them and infact only nl1.jar and nl2.jar of org.eclipse.ui.intro.universal.nl1 and org.eclipse.ui.intro.universal.nl2 are remaining in nested jars. So is this someway corrupt that they are ant tries to unzip twice ? or that it can't move the jars out of nestedJars?
Ant trying twice to unzip org.eclipse.ui.intro.universal.nl1 during my pde headless build:
[mkdir] Created dir: C:\vobs\chechand_CM_cm521\vobs\build\AppCE\nestedJars\org.eclipse.ui.intro.universal.nl1_3.2.600.v201209282147
[unzip] Expanding: C:\Users\Administrator\chechand_Common_3PT_3\vobs\fnet_3pt\Eclipse\4.2.1\eclipse\plugins\org.eclipse.ui.intro.universal.nl1_3.2.600.v201209282147.jar into C:\vobs\chechand_CM_cm521\vobs\build\AppCE\nestedJars\org.eclipse.ui.intro.universal.nl1_3.2.600.v201209282147
[unzip] Expanding: C:\Users\Administrator\chechand_Common_3PT_3\vobs\fnet_3pt\Eclipse\4.2.1\eclipse\plugins\org.eclipse.ui.intro.universal.nl1_3.2.600.v201209282147.jar into
Also, here is the detailed error stack I get when I actually run the standalone application
outside Eclipse IDE:
!ENTRY org.eclipse.osgi 2 0 2014-05-11 05:37:42.071
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2014-05-11 05:37:42.071
!MESSAGE Bundle update#plugins/org.eclipse.ui.workbench_3.103.1.v20120906-120042.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.071
!MESSAGE Missing imported package org.eclipse.emf.ecore.util_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.071
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt.theme_0.9.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.emf.ecore_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.w3c.dom.css_2.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.ui.internal.workbench.renderers.swt_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.workbench3_0.12.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.bindings_0.9.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.workbench.swt_0.9.1.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.core.di_1.1.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.ui.internal.workbench.swt_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.core.commands_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.model.workbench_0.9.1.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.core_0.9.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package javax.inject_1.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.core.services_1.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.ui.css.swt_0.9.1.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package javax.annotation_1.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing required bundle org.eclipse.e4.core.contexts_1.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.core.commands.internal_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.e4.ui.internal.workbench_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.072
!MESSAGE Missing imported package org.eclipse.emf.common.util_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.073
!MESSAGE Missing imported package org.eclipse.e4.ui.services_0.0.0.
!SUBENTRY 2 org.eclipse.ui.workbench 2 0 2014-05-11 05:37:42.073
!MESSAGE Missing imported package org.eclipse.e4.ui.workbench.modeling_0.0.0.
Here is the content of my .product file:
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product name="%Product.name" uid="CE debug" id="com.ibm.ecm.configmgr.app.ce.product" application="com.ibm.ecm.configmgr.app.ce.application" version="%Product.version" useFeatures="true" includeLaunchers="true">
<aboutInfo>
<image path="/com.ibm.ecm.configmgr.ui/icons/app_about.gif"/>
<text>
%About.text
</text>
</aboutInfo>
<configIni use="default">
<linux>/com.ibm.ecm.configmgr.app.ce/config/config.ini</linux>
<macosx>/com.ibm.ecm.configmgr.app.ce/config/config.ini</macosx>
<solaris>/com.ibm.ecm.configmgr.app.ce/config/config.ini</solaris>
</configIni>
<launcherArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>
<windowImages i16="/com.ibm.ecm.configmgr.ui/icons/app_16.gif" i32="/com.ibm.ecm.configmgr.ui/icons/app_32.gif"/>
<splash
startupProgressRect="6,42,445,15"
startupMessageRect="9,21,445,20"
startupForegroundColor="000000" />
<launcher name="configmgr">
<solaris/>
<win useIco="true">
<ico path="/com.ibm.ecm.configmgr.ui/icons/config_mgmnt_multires.ico"/>
<bmp/>
</win>
</launcher>
<vm>
</vm>
<plugins>
</plugins>
<features>
<feature id="com.ibm.ecm.configmgr.app.ce.feature" version="5.2.0.qualifier"/>
<feature id="org.eclipse.emf.ecore" version="2.8.1.v20120911-0500"/>
<feature id="org.eclipse.emf.ecore.nls1" version="2.8.1.v201209282147"/>
<feature id="org.eclipse.emf.ecore.nls2" version="2.8.1.v201209282147"/>
<feature id="org.eclipse.emf.common" version="2.8.0.v20120911-0500"/>
</features>
</product>
I would appreciate any help from you guys....

can't start eclipse after update - One or more bundles are not resolved

After updating eclipse it doesnt start anymore, i get a window saying
An error has occured
with an reference to a log file (see below)
Any way to get this resolved?
---- Log File -----
!SESSION 2013-01-16 23:31:46.709 -----------------------------------------------
eclipse.buildId=M20120914-1800
java.version=1.6.0_37
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/dorjeduck/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/dorjeduck/.eclipse_keyring -showlocation
!ENTRY org.eclipse.osgi 2 0 2013-01-16 23:31:48.877
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.877
!MESSAGE Bundle reference:file:plugins/org.eclipse.ui.ide_3.8.1.v20120828-165804.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui.ide 2 0 2013-01-16 23:31:48.877
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.877
!MESSAGE Bundle reference:file:plugins/org.eclipse.ui.console_3.5.100.v20120521-2012.jar was not resolved.
!SUBENTRY 2 org.eclipse.ui.console 2 0 2013-01-16 23:31:48.877
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.jdt.junit_3.7.100.v20120523-1543.jar was not resolved.
!SUBENTRY 2 org.eclipse.jdt.junit 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.pde.api.tools.ui_1.0.400.v20120523-2012.jar was not resolved.
!SUBENTRY 2 org.eclipse.pde.api.tools.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.jdt.ui_3.8.1.v20120814-144251.jar was not resolved.
!SUBENTRY 2 org.eclipse.jdt.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.8.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.jdt.debug.ui_3.6.100.v20120530-1425.jar was not resolved.
!SUBENTRY 2 org.eclipse.jdt.debug.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.wst.common.ui_1.1.500.v200911190730.jar was not resolved.
!SUBENTRY 2 org.eclipse.wst.common.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.cdt.ui_5.4.0.201206111645.jar was not resolved.
!SUBENTRY 2 org.eclipse.cdt.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/com.android.ide.eclipse.adt_20.0.3.v201208082019-427395.jar was not resolved.
!SUBENTRY 2 com.android.ide.eclipse.adt 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-01-16 23:31:48.878
!MESSAGE Bundle reference:file:plugins/org.eclipse.pde.ds.ui_1.0.200.v20120530-1435.jar was not resolved.
!SUBENTRY 2 org.eclipse.pde.ds.ui 2 0 2013-01-16 23:31:48.878
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.3.0,4.0.0).
It seems that you are using MAC. I would suggest you to reinstall the Eclipse for MAC from the following eclipse for osx (only if you can afford to do it obviously). From the logs the issue seems to be related to missing plugins. The update may have deleted the older plugin?? Try installing the plugins that eclipse is complaining about like Jface etc manually and putting them under eclipse/plugin folder, and see if that brings down the error logs. Otherwise, the only option would be reinstalling. Eclipse sometimes gets really angry :)
A number of people have reported similar problems. There are several suggestions in that thread, but no definitive solutions. Only one of the suggestions worked for me - it's a way to revert eclipse to a previous state from the command line. It comes from this blog post.
In a terminal:
Go to the folder containing your eclipse install
ls -lt p2/org.eclipse.equinox.p2.engine/profileRegistry/<som_profile_name>.profile/
In my case <som_profile_name> was epp.package.java.profile, in Paul's blog SDKProfile.
You should see files like 1372434812558.profile.gz.
Choose a recent one with a date you feel sure is ok
Put together a command like:
eclipse -noSplash
-application org.eclipse.equinox.p2.director
-repository file:$(pwd)/p2/org.eclipse.equinox.p2.engine/profileRegistry/<som_profile_name>.profile
-profile <som_profile_name>
-revert 1372434812558
If that doesn't work, try adding -destination . (I did it successfully with -destination, but I think it should work without)

Cannot launch eclipse rcp application in Juno

I can't launch my rcp application in newly released juno, but it works well in indigo. I found there are lots of lucene bundles were not resolved. But they were added to required plugins in run configurations.
Dose anyone have any suggestions? Thanks!
!SESSION 2012-07-06 16:45:10.801 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_05
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=sv_SE
Framework arguments: -product Myproduct.product
Command-line arguments: -product Myproduct.product -data C:\Users\user\workspace/../runtime-Myproduct.product -dev file:C:/Users/user/workspace/.metadata/.plugins/org.eclipse.pde.core/Myproduct.product/dev.properties -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.equinox.app 0 0 2012-07-06 16:45:11.986
!MESSAGE Product Myproduct.product could not be found.
!ENTRY org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE Bundle initial#reference:file:plugins/org.apache.lucene.queries_3.5.0.v20120319-2345.jar was not resolved.
!SUBENTRY 2 org.apache.lucene.queries 2 0 2012-07-06 16:45:12.106
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE Bundle initial#reference:file:plugins/org.apache.lucene.analysis_2.9.1.v201101211721.jar was not resolved.
!SUBENTRY 2 org.apache.lucene.analysis 2 0 2012-07-06 16:45:12.106
!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE Bundle initial#reference:file:plugins/org.apache.lucene.misc_3.5.0.v20120319-2345.jar was not resolved.
!SUBENTRY 2 org.apache.lucene.misc 2 0 2012-07-06 16:45:12.106
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.106
!MESSAGE Bundle initial#reference:file:plugins/org.apache.lucene_3.5.0.v20120319-2345.jar was not resolved.
!SUBENTRY 2 org.apache.lucene 2 0 2012-07-06 16:45:12.106
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!ENTRY org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.eclipse.help.base_3.6.100.v201206081400 [18] was not resolved.
!SUBENTRY 2 org.eclipse.help.base 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene_2.9.0.
!SUBENTRY 2 org.eclipse.help.base 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.analysis_2.9.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.eclipse.help.webapp_3.6.100.v20120521-2344 [21] was not resolved.
!SUBENTRY 2 org.eclipse.help.webapp 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.eclipse.help.base_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.apache.lucene.analysis_2.9.1.v201101211721 [25] was not resolved.
!SUBENTRY 2 org.apache.lucene.analysis 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.core_[2.9.1,3.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.eclipse.help.ui_3.5.200.v20120521-2344 [35] was not resolved.
!SUBENTRY 2 org.eclipse.help.ui 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.eclipse.help.base_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.apache.lucene.queries_3.5.0.v20120319-2345 [39] was not resolved.
!SUBENTRY 2 org.apache.lucene.queries 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 2 org.apache.lucene.queries 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing optionally imported package org.apache.regexp_1.4.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.apache.lucene_3.5.0.v20120319-2345 [52] was not resolved.
!SUBENTRY 2 org.apache.lucene 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.misc_[3.5.0,4.0.0).
!SUBENTRY 2 org.apache.lucene 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.queries_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle org.apache.lucene.misc_3.5.0.v20120319-2345 [79] was not resolved.
!SUBENTRY 2 org.apache.lucene.misc 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.apache.lucene.core_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-07-06 16:45:12.119
!MESSAGE Bundle Myproduct_1.0.0 [171] was not resolved.
!SUBENTRY 2 Myproduct 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.eclipse.help.ui_3.5.101.
!SUBENTRY 2 Myproduct 2 0 2012-07-06 16:45:12.119
!MESSAGE Missing required bundle org.eclipse.help.webapp_3.6.0.
!ENTRY org.eclipse.osgi 4 0 2012-07-06 16:45:12.128
!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)
I solved the problem by enabling a specific subset of the lucene plugins.
go to you run configuration dialog for your plugin/product configuration (Run -> Run Configurations...)
Select the Plugins tab
enter "lucene" in the search field. It should display seven entries starting with org.apache.lucene*
mark everything with 2.9.1 as enabled
mark everything with 3.5.0 as disabled
Click validate Plug-ins, it should say "No problems were detected"
Got it solved by choose launch option: all workspace and enabled external plug-ins.
More about lunch options
Hm. After hours of struggling:
This error can also appear if you have the wrong "execution environment" specified on the plugins overview tab. E.g. specified JavaSE 1.7, even you only have JavaSE 1.6.