ace-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre De Rop <pierre.de...@gmail.com>
Subject Re: ACE parts and security
Date Thu, 16 Jun 2016 10:44:59 GMT
Hi Jan Willem,

> - I have also seen several exception when I run OBR, server and client:
> gosh: java.lang.IllegalStateException: session is closed
> gosh: stopping framework
> gogo: IllegalStateException: Invalid BundleContext.
> java.lang.IllegalStateException: Invalid BundleContext.
>        at
> org.apache.felix.framework.BundleContextImpl.checkValidity(BundleCont
> extImpl.java:511)
> This does not seem to block the execution.

I'm also observing the "session is closed" exception, but as Jorge
reported, this does not seem to cause any problems.

I'm using the ace-obr from trunk, I have build the run-obr sub project with
gradle run-obr:export, then I copied some bundles in store directory,
then launched the obr normally, like this:

java -jar generated/distributions/executable/obr.jar

The first time I launch the obr, I haven't any problems, the "session
close" message is not seen. then I stop the ace-obr server (ctrl-c).
now, the bundle-cache directory has been created and  at this point,  when
I restart the ace-obr, then I'm seeing these exceptions:
(the "session is closed" exception is logged after typing "lb"):

g! 2016-06-16 12:30:00.428:INFO::FelixStartLevel: Logging initialized @580ms
2016-06-16 12:30:00.460:INFO:oejs.Server:FelixStartLevel:
jetty-9.2.14.v20151106
2016-06-16 12:30:00.508:INFO:oejsh.ContextHandler:FelixStartLevel: Started
o.e.j.s.ServletContextHandler@4b49c9dc{/,null,AVAILABLE}
2016-06-16 12:30:00.509:INFO:oejs.Server:FelixStartLevel: Started @661ms
2016-06-16 12:30:00.526:INFO:oejs.ServerConnector:FelixStartLevel: Started
ServerConnector@7d719242{HTTP/1.1}{0.0.0.0:8082}
gogo: InterruptedException: sleep interrupted
java.lang.InterruptedException: sleep interrupted
        at java.lang.Thread.sleep(Native Method)
        at org.apache.felix.gogo.shell.Activator.run(Activator.java:72)
        at java.lang.Thread.run(Thread.java:745)
____________________________
Welcome to Apache Felix Gogo

g!
g! 2016-06-16 12:30:01.691:INFO:oejs.ServerConnector:main: Stopped
ServerConnector@7d719242{HTTP/1.1}{0.0.0.0:8082}
2016-06-16 12:30:01.700:INFO:oejsh.ContextHandler:main: Stopped
o.e.j.s.ServletContextHandler@4b49c9dc{/,null,UNAVAILABLE}
2016-06-16 12:30:01.805:INFO::main: Logging initialized @1957ms
2016-06-16 12:30:01.842:INFO:oejs.Server:main: jetty-9.2.14.v20151106
2016-06-16 12:30:01.899:INFO:oejsh.ContextHandler:main: Started
o.e.j.s.ServletContextHandler@2f177a4b{/,null,AVAILABLE}
2016-06-16 12:30:01.899:INFO:oejs.Server:main: Started @2051ms
2016-06-16 12:30:01.910:INFO:oejs.ServerConnector:main: Started
ServerConnector@a9cd3b1{HTTP/1.1}{0.0.0.0:8082}
2016-06-16 12:30:03.011:INFO:oejs.ServerConnector:FelixFrameworkWiring:
Stopped ServerConnector@a9cd3b1{HTTP/1.1}{0.0.0.0:8082}
2016-06-16 12:30:03.015:INFO:oejsh.ContextHandler:FelixFrameworkWiring:
Stopped o.e.j.s.ServletContextHandler@2f177a4b{/,null,UNAVAILABLE}
[INFO] Stopped Jetty.
2016-06-16 12:30:03.141:INFO::FelixFrameworkWiring: Logging initialized
@3293ms
2016-06-16 12:30:03.176:INFO:oejs.Server:FelixFrameworkWiring:
jetty-9.2.14.v20151106
2016-06-16 12:30:03.226:INFO:oejsh.ContextHandler:FelixFrameworkWiring:
Started o.e.j.s.ServletContextHandler@33f58f4f{/,null,AVAILABLE}
2016-06-16 12:30:03.226:INFO:oejs.Server:FelixFrameworkWiring: Started
@3378ms
2016-06-16 12:30:03.239:INFO:oejs.ServerConnector:FelixFrameworkWiring:
Started ServerConnector@2754c0fa{HTTP/1.1}{0.0.0.0:8082}
____________________________
Welcome to Apache Felix Gogo

g! lb
gosh: java.lang.IllegalStateException: session is closed
gosh: stopping framework
gogo: IllegalStateException: Invalid BundleContext.
java.lang.IllegalStateException: Invalid BundleContext.
        at
org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:511)
        at
org.apache.felix.framework.BundleContextImpl.getBundle(BundleContextImpl.java:175)
        at org.apache.felix.gogo.shell.Shell.shutdown(Shell.java:183)
        at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:170)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
        at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
        at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
        at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
        at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
        at org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
        at java.lang.Thread.run(Thread.java:745)


doing ctrl-c, removing the bundle-cache directory, and restarting the
ace-obr server fixes the issue. if the bundle-cache is already present,
then we have the issue.

Interestingly, once the "session is closed" error has been logged, when you
then type "log debug" then we see that a "PACKAGES REFRESHED" event took
place, and I wonder if this is the root cause of the problem ?

here is the "log debug" output after the "session is closed" warning is
displayed:

gosh: java.lang.IllegalStateException: session is closed
gosh: stopping framework
gogo: IllegalStateException: Invalid BundleContext.
java.lang.IllegalStateException: Invalid BundleContext.
        at
org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:511)
        at
org.apache.felix.framework.BundleContextImpl.getBundle(BundleContextImpl.java:175)
        at org.apache.felix.gogo.shell.Shell.shutdown(Shell.java:183)
        at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:170)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
        at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
        at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
        at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
        at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)
        at org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
        at java.lang.Thread.run(Thread.java:745)

g! log debug
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.useradmin.repository -
[org.apache.ace.repository.Repository] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.useradmin.repository -
[org.apache.felix.useradmin.RoleRepositoryStore,
org.osgi.service.useradmin.UserAdminListener] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.useradmin.repository -
[org.apache.ace.repository.Repository] - ServiceEvent UNREGISTERING
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.useradmin.repository -
[org.apache.felix.useradmin.RoleRepositoryStore,
org.osgi.service.useradmin.UserAdminListener] - ServiceEvent UNREGISTERING
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.obr.storage -
[org.apache.ace.obr.storage.BundleStore] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.obr.servlet -
[javax.servlet.Servlet] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.framework -
[java.lang.Object, aQute.launcher.Launcher] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.framework -
FrameworkEvent PACKAGES REFRESHED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.runtime -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.runtime -
[org.apache.felix.service.command.CommandProcessor] - ServiceEvent
REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.shell -
[org.apache.felix.gogo.shell.Shell] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.shell -
[org.apache.felix.gogo.shell.Telnet] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.shell -
[org.apache.felix.gogo.shell.Posix] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.shell -
[org.apache.felix.gogo.shell.Procedural] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.shell -
[org.apache.felix.gogo.shell.Builtin] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.shell -
[org.apache.felix.service.command.Converter] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.runtime -
[org.apache.felix.service.threadio.ThreadIO] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.connectionfactory -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.connectionfactory -
[org.apache.ace.connectionfactory.ConnectionFactory,
org.osgi.service.cm.ManagedServiceFactory] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.useradmin.repository -
[org.apache.ace.repository.Repository] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.useradmin.repository -
[org.apache.felix.useradmin.RoleRepositoryStore,
org.osgi.service.useradmin.UserAdminListener] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle:
org.apache.ace.authentication.processor.basicauth - BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle:
org.apache.ace.authentication.processor.basicauth -
[org.apache.ace.authentication.api.AuthenticationProcessor,
org.osgi.service.cm.ManagedService] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle:
org.apache.ace.authentication.processor.basicauth - BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.command -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.command -
[org.apache.felix.gogo.command.OBR] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.command -
[org.apache.felix.gogo.command.Files] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.command -
[org.apache.felix.gogo.command.Inspect] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.command -
[org.apache.felix.gogo.command.Basic] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.command -
BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.eventadmin -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.eventadmin -
[org.osgi.service.cm.ManagedService,
org.osgi.service.metatype.MetaTypeProvider] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.eventadmin -
[org.osgi.service.event.EventAdmin] - ServiceEvent REGISTERED
2016.06.16 12:32:41 DEBUG - Bundle: org.apache.ace.configurator.impl -
Updated configuration for pid 'org.apache.ace.obr.storage.file'
({fileLocation=store, service.pid=org.apache.ace.obr.storage.file})
2016.06.16 12:32:41 DEBUG - Bundle: org.apache.felix.configadmin -
[org.osgi.service.cm.ConfigurationAdmin] - getProperties()
2016.06.16 12:32:41 DEBUG - Bundle: org.apache.ace.configurator.impl -
Updated configuration for pid 'repository' ({authentication.baseURL=
http://localhost:8080/repository/, authentication.type=none,
factory.instance.pid=org.apache.ace.connectionfactory_repository,
service.factoryPid=org.apache.ace.connectionfactory,
service.pid=org.apache.ace.connectionfactory.cee0ea96-0b4c-4294-9f18-965a5ba50a7c})
2016.06.16 12:32:41 DEBUG - Bundle: org.apache.felix.configadmin -
[org.osgi.service.cm.ConfigurationAdmin] - getProperties()
2016.06.16 12:32:41 DEBUG - Bundle: org.apache.ace.configurator.impl -
Updated configuration for pid 'org.apache.ace.http.context'
({authentication.enabled=false, context.path=/,
service.pid=org.apache.ace.http.context})
2016.06.16 12:32:41 DEBUG - Bundle: org.apache.felix.configadmin -
[org.osgi.service.cm.ConfigurationAdmin] - getProperties()
2016.06.16 12:32:41 DEBUG - Bundle: org.apache.ace.configurator.impl -
Updated configuration for pid 'org.apache.ace.useradmin.repository'
({repositoryCustomer=apache, repositoryLocation=
http://localhost:8080/repository, repositoryname=user,
service.pid=org.apache.ace.useradmin.repository})
2016.06.16 12:32:41 DEBUG - Bundle: org.apache.felix.configadmin -
[org.osgi.service.cm.ConfigurationAdmin] - getProperties()
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.configurator.impl -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.configurator.impl -
BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.dependencymanager.shell
- BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.dependencymanager.shell
- [org.apache.felix.dm.shell.DMCommand] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.dependencymanager.shell
- BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.shell -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.shell -
BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.gogo.runtime -
BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.authentication.impl -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.authentication.impl -
[org.apache.ace.authentication.api.AuthenticationService] - ServiceEvent
REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.authentication.impl -
BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.range.api - BundleEvent
STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.useradmin - BundleEvent
STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.useradmin -
[org.osgi.service.useradmin.UserAdmin] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.obr.storage - BundleEvent
STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.obr.storage -
[org.osgi.service.cm.ManagedService] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.repository.api -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.useradmin.repository -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.useradmin.repository -
[org.osgi.service.cm.ManagedService] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.connectionfactory -
BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.repository.api -
BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.range.api - BundleEvent
RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.useradmin.repository -
BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.metatype - BundleEvent
STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.metatype -
[org.osgi.service.metatype.MetaTypeService] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.http.context -
[org.osgi.service.http.context.ServletContextHelper] - ServiceEvent
REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.obr.servlet - BundleEvent
STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.obr.servlet - BundleEvent
RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.obr.storage - BundleEvent
RESOLVED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.configadmin -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.configadmin -
[org.osgi.service.cm.ConfigurationAdmin] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.felix.configadmin -
[org.apache.felix.cm.PersistenceManager] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.http.context -
BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.http.context -
[org.osgi.service.cm.ManagedService] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle: org.apache.ace.http.context -
BundleEvent RESOLVED
2016.06.16 12:32:41 INFO - Bundle:
org.apache.ace.authentication.processor.clientcert - BundleEvent STARTED
2016.06.16 12:32:41 INFO - Bundle:
org.apache.ace.authentication.processor.clientcert -
[org.apache.ace.authentication.api.AuthenticationProcessor,
org.osgi.service.cm.ManagedService] - ServiceEvent REGISTERED
2016.06.16 12:32:41 INFO - Bundle:
org.apache.ace.authentication.processor.clientcert - BundleEvent RESOLVED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.servlet-api -
BundleEvent STARTED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.jetty -
BundleEvent STARTED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.jetty -
[org.osgi.service.cm.ManagedService] - ServiceEvent REGISTERED
2016.06.16 12:32:40 DEBUG - Bundle: org.apache.felix.http.jetty -
[org.osgi.service.http.runtime.HttpServiceRuntime] - ServiceEvent MODIFIED
2016.06.16 12:32:40 DEBUG - Bundle: org.apache.felix.http.jetty -
[org.osgi.service.http.HttpService,
org.apache.felix.http.api.ExtHttpService] - ServiceEvent MODIFIED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.jetty - Started
Jetty 9.2.14.v20151106 at port(s) HTTP:8082 on context path /
[minThreads=8,maxThreads=200,acceptors=1,selectors=2]
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.jetty -
[javax.servlet.Servlet] - ServiceEvent REGISTERED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.jetty -
[org.osgi.service.http.context.ServletContextHelper] - ServiceEvent
REGISTERED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.jetty -
[org.osgi.service.http.runtime.HttpServiceRuntime] - ServiceEvent REGISTERED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.jetty -
[org.osgi.service.http.HttpService,
org.apache.felix.http.api.ExtHttpService] - ServiceEvent REGISTERED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.jetty -
[org.osgi.service.metatype.MetaTypeProvider] - ServiceEvent REGISTERED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.servlet-api -
BundleEvent RESOLVED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.http.jetty -
BundleEvent RESOLVED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.log - BundleEvent
STARTED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.log -
[org.osgi.service.log.LogReaderService] - ServiceEvent REGISTERED
2016.06.16 12:32:40 INFO - Bundle: org.apache.felix.log -
[org.osgi.service.log.LogService] - ServiceEvent REGISTERED

best regards;
/Pierre

On Thu, Jun 16, 2016 at 11:27 AM, Jan Willem Janssen <
janwillem.janssen@luminis.eu> wrote:

> Hi,
>
> > On 15 Jun 2016, at 22:46, Jorge Martín Cuervo <jorge@martincuervo.com>
> wrote:
> >
> > I have several questions:
> >
> > - Despite I have successfully run the 5 mins getting started demo with
> the
> > server-allinone, I suppose production environments divide the
> installation
> > into an instance of the OBR, other for the server and finally one for the
> > client. I was trying to configure every piece but I did not manage. I
> think
> > it was mainly because the configuration files, do you have documented
> each
> > of the configuration files or should I go through the source code?
>
> I do not think there’s such documentation. However, I did test the
> distributed
> setup a little while ago with success. I can write something down on how
> to do
> this. I’ll get back on this.
>
> > - I have also seen several exception when I run OBR, server and client:
> > gosh: java.lang.IllegalStateException: session is closed
> > gosh: stopping framework
> > gogo: IllegalStateException: Invalid BundleContext.
> > java.lang.IllegalStateException: Invalid BundleContext.
> >        at
> > org.apache.felix.framework.BundleContextImpl.checkValidity(BundleCont
> > extImpl.java:511)
> > This does not seem to block the execution.
>
> Interesting. This exception most often is caused by a) some code retaining
> a
> bundle context too long (ignoring the bundle lifecycle events). Can you
> elaborate a bit on the details of your setup: how are you running the OBR,
> server and client and do you perhaps have steps to reproduce this
> exception?
>
> > - In the target environments, I was trying to limit the usage of bundles
> > signed by me. I have tried to have a prototype only with Felix but
> despite
> > I have followed these instructions, no success:
> >
> >
> http://felix.apache.org/documentation/subprojects/apache-felix-framework-security.html
> >
> > I have put this content in the policy file:
> >
> > allow {
> > [org.osgi.service.condpermadmin.BundleSignerCondition "*" ]
> > (java.security.AllPermission)
> > } "all_signed"
> >
> > java.security.policy: error parsing
> > file:/C:/dev/felix-framework-5.4.0/all.policy:
> >        line 1: expected [;], found [allow]
> > ERROR: Error creating bundle cache.
> (java.security.AccessControlException:
> > acces
> > s denied ("java.io.FilePermission" ".\felix-cache" "read"))
> >
> > Syntax seem to be fine to me, I have check the OSGi 5 spec (50.2.5)
> > policy ::= access ’{’ conditions permissions’}’ name?
> > access ::= ’ALLOW’ | ’DENY’ // case insensitive
> > conditions ::= ( ’[’ qname quoted-string* ’]’ )*
> > permissions ::= ( ’(’ qname (quoted-string
> > quoted-string?)? ’)’ )+
> > name ::= quoted-string
> >
> > Have you ever seen similar exception?
>
> I’ve to admit that I’ve not run Ace on Felix with a SecurityManager in
> place
> for a long time, so I cannot answer this. Perhaps anybody else lurking on
> this
> list is able to answer this?
>
> HtH,
>
> --
> Met vriendelijke groeten | Kind regards
>
> Jan Willem Janssen | Software Architect
> +31 631 765 814
>
>
> My world is something with Amdatu and Apache
>
> Luminis Technologies
> Churchillplein 1
> 7314 BZ  Apeldoorn
> +31 88 586 46 00
>
> https://www.luminis.eu
>
> KvK (CoC) 09 16 28 93
> BTW (VAT) NL8170.94.441.B.01
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message