OSGi

Kapitel 12 Exception

Posted by stef on Di, 08/02/2011 - 16:00 in

Hallo zusammen,

nach der genauen Befolgung der Beschreibung zu den Delcarative Services wird mir folgende Exception entgegen geworfen:


osgi> !SESSION 2011-08-02 16:54:38.656 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -dev file:C:/Projekte/Einarbeitung/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -console

!ENTRY org.eclipse.equinox.ds 4 0 2011-08-02 16:54:39.187
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.ds_1.2.1.R36x_v20100803 [4]" could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.equinox.internal.util.event; version="1.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 2011-08-02 16:54:39.187
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.ds_1.2.1.R36x_v20100803.jar/ was not resolved.

!ENTRY org.eclipse.osgi 2 0 2011-08-02 16:54:39.203
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-08-02 16:54:39.203
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.ds_1.2.1.R36x_v20100803.jar/ was not resolved.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.ref_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.threadpool_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.hash_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.event_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.timer_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.pool_1.0.0.

!ENTRY org.eclipse.osgi 2 0 2011-08-02 16:54:39.203
!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-08-02 16:54:39.203
!MESSAGE Bundle org.eclipse.equinox.ds_1.2.1.R36x_v20100803 [4] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.event_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.hash_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.pool_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.ref_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.threadpool_1.0.0.
!SUBENTRY 2 org.eclipse.equinox.ds 2 0 2011-08-02 16:54:39.203
!MESSAGE Missing imported package org.eclipse.equinox.internal.util.timer_1.0.0.

Eine neue Launch-Konfiguration wurde - wie beschrieben - erstellt, darin werden nur die notwendigen Hello_World und die Equinox-Bundles "org.eclipse.osgi", "org.eclipse.osgi.services" und "org.eclipse.equinox.ds" gestartet. Ausgangspunkt ist der Code auf dem Stand von Kapitel 8.

Viele Grüße
Stef