[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] OSGI update?
|
- From: exquisitus <drundell@xxxxxxxxx>
- Date: Wed, 06 Oct 2004 18:26:11 -0500
- Newsgroups: eclipse.platform.rcp
- Organization: EclipseCorner
- User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)
I am trying to perform an OSGi update so that I can test a plugin for
saving/restoring state. I am trying to perform the update through the
osgi console.
I created two versions of a bundle version 0.0.0 is running in a
container. There is a new version exported in c:helloworld\plugins\
These are the steps I followed
1. get the id number by listing active plugins
2. update (throws exception)
3. try to restart the plugin but it is removed from the runtime...
The error is below. Any ideas of what I am doing wrong?
osgi> active
System Bundle [0]
initial@reference:file:c:/eclipse301/deploy/eclipse/plugins/org.eclipse.core.run
time_3.0.1/ [87]
initial@reference:file:c:/eclipse301/deploy/eclipse/plugins/org.eclipse.update.c
onfigurator_3.0.0/ [88]
update@/c:/eclipse301/deploy/eclipse/plugins/HelloWorldBundle_0.0.0/ [89]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.core.expressions_3.0.0/
[96]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.core.resources_3.0.1/
[
99]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.debug.core_3.0.1/
[103]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.debug.ui_3.0.1/
[104]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.help_3.0.0/ [110]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.jface.text_3.0.1/
[122]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.jface_3.0.0/ [123]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.text_3.0.1/ [152]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui.externaltools_3.0.1/
[157]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui.ide_3.0.1/ [159]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui.views_3.0.0/
[162]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui.workbench_3.0.1/
[16
6]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui_3.0.1/ [167]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.update.scheduler_3.0.0/
[171]
18 active bundle(s).
osgi> update 89 file:///C:/helloworld/plugins/HelloWorldBundle_0.0.1
org.osgi.framework.BundleException: An error occured trying to read the
bundle
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultAdaptor$2.b
egin(DefaultAdaptor.java:620)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorkerP
rivileged(AbstractBundle.java:734)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle$3.run(Abstrac
tBundle.java:670)
at java.security.AccessController.doPrivileged1(Native Method)
at
java.security.AccessController.doPrivileged(AccessController.java:351
)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorker(
AbstractBundle.java:706)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.update(Abstra
ctBundle.java:665)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._up
date(FrameworkCommandProvider.java:343)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.
execute(FrameworkCommandInterpreter.java:139)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(F
rameworkConsole.java:292)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Fra
meworkConsole.java:277)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Fra
meworkConsole.java:236)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framewo
rkConsole.java:207)
at java.lang.Thread.run(Thread.java:567)
Caused by: java.io.FileNotFoundException:
c:\eclipse301\deploy\eclipse\configura
tion\org.eclipse.osgi\bundles\89\2 (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:201)
at java.io.FileOutputStream.<init>(FileOutputStream.java:153)
at
org.eclipse.osgi.framework.adaptor.core.AbstractFrameworkAdaptor.read
File(AbstractFrameworkAdaptor.java:338)
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultAdaptor$2.b
egin(DefaultAdaptor.java:608)
... 18 more
Nested Exception:
java.io.FileNotFoundException:
c:\eclipse301\deploy\eclipse\configuration\org.ec
lipse.osgi\bundles\89\2 (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:201)
at java.io.FileOutputStream.<init>(FileOutputStream.java:153)
at
org.eclipse.osgi.framework.adaptor.core.AbstractFrameworkAdaptor.read
File(AbstractFrameworkAdaptor.java:338)
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultAdaptor$2.b
egin(DefaultAdaptor.java:608)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorkerP
rivileged(AbstractBundle.java:734)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle$3.run(Abstrac
tBundle.java:670)
at java.security.AccessController.doPrivileged1(Native Method)
at
java.security.AccessController.doPrivileged(AccessController.java:351
)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorker(
AbstractBundle.java:706)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.update(Abstra
ctBundle.java:665)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._up
date(FrameworkCommandProvider.java:343)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.
execute(FrameworkCommandInterpreter.java:139)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(F
rameworkConsole.java:292)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Fra
meworkConsole.java:277)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Fra
meworkConsole.java:236)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framewo
rkConsole.java:207)
at java.lang.Thread.run(Thread.java:567)
Nested Exception:
java.io.FileNotFoundException:
c:\eclipse301\deploy\eclipse\configuration\org.ec
lipse.osgi\bundles\89\2 (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:201)
at java.io.FileOutputStream.<init>(FileOutputStream.java:153)
at
org.eclipse.osgi.framework.adaptor.core.AbstractFrameworkAdaptor.read
File(AbstractFrameworkAdaptor.java:338)
at
org.eclipse.osgi.framework.internal.defaultadaptor.DefaultAdaptor$2.b
egin(DefaultAdaptor.java:608)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorkerP
rivileged(AbstractBundle.java:734)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle$3.run(Abstrac
tBundle.java:670)
at java.security.AccessController.doPrivileged1(Native Method)
at
java.security.AccessController.doPrivileged(AccessController.java:351
)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorker(
AbstractBundle.java:706)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.update(Abstra
ctBundle.java:665)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._up
date(FrameworkCommandProvider.java:343)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:85)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:58)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.
execute(FrameworkCommandInterpreter.java:139)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(F
rameworkConsole.java:292)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Fra
meworkConsole.java:277)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Fra
meworkConsole.java:236)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framewo
rkConsole.java:207)
at java.lang.Thread.run(Thread.java:567)
osgi> active
System Bundle [0]
initial@reference:file:c:/eclipse301/deploy/eclipse/plugins/org.eclipse.core.run
time_3.0.1/ [87]
initial@reference:file:c:/eclipse301/deploy/eclipse/plugins/org.eclipse.update.c
onfigurator_3.0.0/ [88]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.core.expressions_3.0.0/
[96]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.core.resources_3.0.1/
[
99]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.debug.core_3.0.1/
[103]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.debug.ui_3.0.1/
[104]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.help_3.0.0/ [110]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.jface.text_3.0.1/
[122]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.jface_3.0.0/ [123]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.text_3.0.1/ [152]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui.externaltools_3.0.1/
[157]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui.ide_3.0.1/ [159]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui.views_3.0.0/
[162]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui.workbench_3.0.1/
[16
6]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.ui_3.0.1/ [167]
update@/c:/eclipse301/deploy/eclipse/plugins/org.eclipse.update.scheduler_3.0.0/
[171]
17 active bundle(s).
osgi>