[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Bug 164373 "Make the OSGi manifest parser API"


I opened bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=174830 to track this.

Tom.



Matthew Webster <matthew_webster@xxxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

02/20/2007 10:36 AM

Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
cc
Subject
[equinox-dev] Bug 164373 "Make the OSGi manifest parser API"






Tom,


I have just started testing the Aspects Equinox Incubator with 3.3M5 and found that the changes you made in Bug 164373 break the supplements mechanism that I re-implemented using a StorageHook (https://bugs.eclipse.org/bugs/show_bug.cgi?id=165484). I need to change manifest headers _after_ the default hooks have read the manifest but the new "readonly" flag gives me UnsupportedOperationExceptions. Do you have any hints as to how I can solve this problem?


> AspectJStorageHook.initialize() demo.hello

- AspectJStorageHook.initialize() demo.hello supplementers=[org.aspectj.osgi.aunit]

- AspectJStorageHook.addRequiredBundles() demo.hello ,manifest=org.eclipse.osgi.framework.util.Headers@19f3736, value=org.junit,system.bundle,org.aspectj.osgi.aunit

java.lang.UnsupportedOperationException

       at org.eclipse.osgi.framework.util.Headers.set(
Headers.java:155)
       at org.aspectj.osgi.hooks.AspectJStorageHook.addRequiredBundles(
AspectJStorageHook.java:311)
       at org.aspectj.osgi.hooks.AspectJStorageHook.initialize(
AspectJStorageHook.java:280)
       at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(
BundleInstall.java:84)
       at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(
Framework.java:908)
       at org.eclipse.osgi.framework.internal.core.Framework$2.run(
Framework.java:824)
       at java.security.AccessController.doPrivileged(
Native Method)
       at org.eclipse.osgi.framework.internal.core.Framework.installWorker(
Framework.java:875)
       at org.eclipse.osgi.framework.internal.core.Framework.installBundle(
Framework.java:819)
       at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(
BundleContextImpl.java:229)
       at org.eclipse.update.internal.configurator.ConfigurationActivator.installBundles(
ConfigurationActivator.java:197)
       at org.eclipse.update.internal.configurator.ConfigurationActivator.start(
ConfigurationActivator.java:82)
       at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(
BundleContextImpl.java:999)
       at java.security.AccessController.doPrivileged(
Native Method)
       at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(
BundleContextImpl.java:993)
       at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(
BundleContextImpl.java:974)
       at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(
BundleHost.java:346)
       at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(
AbstractBundle.java:350)
       at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(
Framework.java:1118)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(
StartLevelManager.java:631)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(
StartLevelManager.java:505)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(
StartLevelManager.java:279)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(
StartLevelManager.java:465)
       at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
EventManager.java:189)
       at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(
EventManager.java:291)

Thanks in advance


Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM United Kingdom Limited
Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU





_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev