2009/6/10 Aaron Zeckoski <[email protected]>

> I am getting a falure while starting up felix 1.8.0. Granted that I
> have a ton of bundles starting here so it is likely to be complex but
> I didn't think that a failure in a bundle would stop the system. The
> result is that the system bundle sits in the "starting" phase and many
> of the bundles stay at installed and nothing appears in the logs.
>

I don't believe this is actually a hang, the system bundle is in "starting"
state
and if you take a series of thread dumps you'll probably find it's busy in
the
resolver processing "uses" clauses (the CPU usage will also be high):

  https://issues.apache.org/jira/browse/FELIX-961

if you give it time it should eventually complete, but this may take a while

there's no real solution to the general case (it's suspected to be
NP-complete)
other than adding a time limit and abandoning the search when this expires,
which is what Equinox does

so try leaving it running, and if it does finish let us know how long it
took :)

Is there something that will give me a hint as to which bundle died or
> caused the hang here?
> My guess is the Apache CXF Minimal Bundle Jar (2.2.3.SNAPSHOT) since
> it is the level 2 bundle that is not started but I am not sure how to
> confirm this suspicion.
> (some details below)
>
> Here is the result of a ps:
> START LEVEL 6
>   ID   State         Level  Name
> [   0] [Starting   ] [    0] System Bundle (1.8.0)
> [   1] [Installed  ] [    5] Apache Sling Repository API Bundle
> (2.0.3.incubator-SNAPSHOT)
> [   2] [Installed  ] [    5] Apache Sling Jackrabbit API Bundle
> (2.0.3.incubator-SNAPSHOT)
> [   3] [Installed  ] [    5] Apache Commons Lang (2.4.0)
> [   4] [Installed  ] [    5] Apache Commons Codec (1.3.0)
> [   5] [Installed  ] [    5] Apache Commons Bean Utilities (1.8.0)
> [   6] [Installed  ] [    5] Jackrabbit JCR Commons (1.5.0)
> [   7] [Resolved   ] [    5] Commons Collections (3.2.1)
> [   8] [Resolved   ] [    5] Apache Felix Declarative Services (1.0.8)
> [   9] [Installed  ] [    5] Apache Felix Bundle Repository (1.0.3)
> [  10] [Resolved   ] [    5] Apache Felix EventAdmin (1.0.0)
> [  11] [Resolved   ] [    5] Apache Felix File Install (1.0.0)
> [  12] [Installed  ] [    5] Apache Felix Configuration Admin Service
> (1.0.10)
> [  13] [Resolved   ] [    5] Apache Felix Metatype Service (1.0.0)
> [  14] [Installed  ] [    5] Apache Felix Web Management Console (1.2.10)
> [  15] [Installed  ] [    5] Jetty Server (6.1.14)
> [  16] [Installed  ] [    5] Jetty Utilities (6.1.14)
> [  17] [Resolved   ] [    5] Servlet Specification 2.5 API (2.5)
> [  18] [Installed  ] [    5] Apache CXF Minimal Bundle Jar (2.2.1)
> [  19] [Installed  ] [    5] Apache CXF JAX-RS Bundle Jar (2.2)
> [  20] [Installed  ] [    3] CXF Local Discovery Service Bundle
> (1.1.0.SNAPSHOT)
> [  21] [Installed  ] [    3] CXF Distributed Software Bundle
> (1.1.0.SNAPSHOT)
> [  22] [Installed  ] [    5] Apache ServiceMix CXF Transport for OSGi
> (4.0.0)
> [  23] [Resolved   ] [    5] Spring Core (2.5.6.A)
> [  24] [Resolved   ] [    5] Spring Beans (2.5.6.A)
> [  25] [Resolved   ] [    5] Spring Context (2.5.6.A)
> [  26] [Active     ] [    1] geronimo-ws-metadata_2.0_spec (1.1.2)
> [  27] [Installed  ] [    5] Apache ServiceMix Specs :: JAXB API 2.1
> (1.3.0)
> [  28] [Installed  ] [    5] Apache ServiceMix Specs :: JAXP API 1.4
> (1.3.0)
> [  29] [Installed  ] [    5] Apache ServiceMix Specs :: JAXWS API 2.1
> (1.3.0)
> [  30] [Resolved   ] [    5] Apache ServiceMix Specs :: JAVAMAIL API 1.4
> (1.3.0)
> [  31] [Installed  ] [    5] Apache ServiceMix Specs :: SAAJ API 1.3
> (1.3.0)
> [  32] [Installed  ] [    5] Apache ServiceMix Specs :: STAX API 1.0
> (1.3.0)
> [  33] [Resolved   ] [    5] OPS4J Pax Web - Service (0.5.2)
> [  34] [Installed  ] [    5] OPS4J Pax Web Extender - Whiteboard (0.5.1)
> [  35] [Active     ] [    1] OPS4J Pax Logging - API (1.3.0)
> [  36] [Active     ] [    1] OPS4J Pax Logging - Service (1.3.0)
> [  37] [Installed  ] [    3] Apache ServiceMix Bundles: asm-2.2.3 (2.2.3.1)
> [  38] [Installed  ] [    3] Apache ServiceMix Bundles:
> jaxb-impl-2.1.6 (2.1.6.1)
> [  39] [Installed  ] [    3] Apache ServiceMix Bundles: wsdl4j-1.6.1
> (1.6.1.1)
> [  40] [Installed  ] [    5] Apache ServiceMix Bundles: jettison-1.0.1
> (1.0.1.1)
> [  41] [Installed  ] [    5] Apache ServiceMix Bundles:
> xmlschema-1.4.3 (1.4.3.1)
> [  42] [Installed  ] [    3] Apache ServiceMix Bundles: xmlsec-1.3.0
> (1.3.0.1)
> [  43] [Installed  ] [    3] Apache ServiceMix Bundles:
> xmlresolver-1.2 (1.2.0.1)
> [  44] [Installed  ] [    3] Apache ServiceMix Bundles: neethi-2.0.4
> (2.0.4.1)
> [  45] [Installed  ] [    3] Apache ServiceMix Bundles: wss4j-1.5.4
> (1.5.4.1)
> [  46] [Installed  ] [    3] Apache ServiceMix Bundles: woodstox-3.2.7
> (3.2.7.1)
> [  47] [Active     ] [    1] JDOM DOM Processor (1.0.0)
> [  48] [Active     ] [    2] AOP Alliance API (1.0.0)
> [  49] [Installed  ] [    5] Apache Oro Regular Expressions (2.0.8)
> [  50] [Resolved   ] [    5] Spring AOP (2.5.6.A)
> [  51] [Active     ] [    2] spring-osgi-io (1.2.0)
> [  52] [Active     ] [    2] spring-osgi-core (1.2.0)
> [  53] [Active     ] [    2] spring-osgi-extender (1.2.0)
> [  54] [Installed  ] [    5] opencast-authentication-api (0.1.0.SNAPSHOT)
> [  55] [Installed  ] [    5] opencast-rest-services (0.1.0.SNAPSHOT)
> [  56] [Installed  ] [    5] Apache Commons IO Bundle (1.4)
> [  57] [Installed  ] [    5] opencast-repository (0.1.0.SNAPSHOT)
> [  58] [Installed  ] [    5] Apache Commons FileUpload Bundle (1.2.1)
> [  59] [Installed  ] [    5] slf4j-api (1.5.2)
> [  60] [Installed  ] [    5] slf4j-log4j12 (1.5.2)
> [  61] [Installed  ] [    5] Apache Derby 10.4 (10.4.2000000.689064)
> [  62] [Installed  ] [    5] OSGi OBR Service API (1)
> [  63] [Installed  ] [    5] opencast-util (0.1.0.SNAPSHOT)
> [  64] [Installed  ] [    5] slf4j-api (1.5.6)
> [  65] [Installed  ] [    5] opencast-media (0.1.0.SNAPSHOT)
> [  66] [Installed  ] [    5] Commons Lang (2.4)
> [  67] [Installed  ] [    5] Joda-Time (1.6)
> [  68] [Installed  ] [    5] opencast-authentication-cas (0.1.0.SNAPSHOT)
> [  69] [Installed  ] [    5] opencast-encoder-api (0.1.0.SNAPSHOT)
> [  70] [Installed  ] [    5] opencast-encoder-impl (0.1.0.SNAPSHOT)
> [  71] [Installed  ] [    5] opencast-workflow-api (0.1.0.SNAPSHOT)
> [  72] [Installed  ] [    5] opencast-workflow-impl (0.1.0.SNAPSHOT)
> [  73] [Installed  ] [    5] opencast-sample-service-api (0.1.0.SNAPSHOT)
> [  74] [Installed  ] [    5] opencast-sample-service-impl (0.1.0.SNAPSHOT)
> [  75] [Installed  ] [    5] opencast-remote-sample-service-client
> (0.1.0.SNAPSHOT)
> [  76] [Resolved   ] [    5] Apache Felix Prefrences Service (1.0.2)
> [  77] [Installed  ] [    3] Apache ServiceMix Bundles:
> xmlschema-1.4.2 (1.4.2.1)
> [  78] [Installed  ] [    3] Apache ServiceMix Specs :: SAAJ API 1.3
> (1.1.1)
> [  79] [Installed  ] [    3] Apache ServiceMix Specs :: STAX API 1.0
> (1.1.1)
> [  80] [Installed  ] [    3] Apache ServiceMix Specs :: JAXB API 2.1
> (1.1.1)
> [  81] [Installed  ] [    3] Apache ServiceMix Specs :: JAXWS API 2.1
> (1.1.1)
> [  82] [Active     ] [    2] Spring AOP (2.5.6)
> [  83] [Active     ] [    2] Spring Beans (2.5.6)
> [  84] [Active     ] [    2] Spring Context (2.5.6)
> [  85] [Active     ] [    2] Spring Context Support (2.5.6)
> [  86] [Active     ] [    2] Spring Core (2.5.6)
> [  87] [Active     ] [    2] ObjectWeb ASM (2.2.3)
> [  88] [Active     ] [    2] Backport Util Concurrent (3.1.0)
> [  89] [Active     ] [    2] CGLIB Code Generation Library (2.1.3)
> [  90] [Active     ] [    2] spring-osgi-annotation (1.2.0)
> [  91] [Installed  ] [    2] Apache CXF Minimal Bundle Jar (2.2.3.SNAPSHOT)
> [  92] [Active     ] [    1] osgi.compendium (4.1.0.build-200702212030)
> [  93] [Active     ] [    1] Apache Felix Shell Service (1.2.0)
> [  94] [Active     ] [    1] Apache Felix Shell TUI (1.2.0)
> [  95] [Active     ] [    1] geronimo-annotation_1.0_spec (1.1.1)
> [  96] [Active     ] [    1] geronimo-activation_1.1_spec (1.0.2)
> [  97] [Active     ] [    1] geronimo-javamail_1.4_spec (1.2)
> [  98] [Active     ] [    1] OPS4J Pax Web - Service (0.6.0)
>
> Here is the last bit from the logs:
> ...
> [FelixStartLevel] DEBUG
> org.springframework.osgi.extender.internal.activator.ContextLoaderListener
> - No application context created for bundle [CGLIB Code Generation
> Library (com.springsource.net.sf.cglib)]
> [FelixDispatchQueue] DEBUG com.springsource.net.sf.cglib - BundleEvent
> STARTED
> [FelixStartLevel] DEBUG
> org.springframework.osgi.extender.internal.activator.ContextLoaderListener
> - Scanning bundle [spring-osgi-annotation
> (org.springframework.osgi.extensions.annotations)] for
> configurations...
> [FelixStartLevel] DEBUG
> org.springframework.osgi.extender.internal.activator.ContextLoaderListener
> - Creating an application context for bundle [spring-osgi-annotation
> (org.springframework.osgi.extensions.annotations)]
> [FelixStartLevel] DEBUG
> org.springframework.osgi.extender.internal.activator.ContextLoaderListener
> - No application context created for bundle [spring-osgi-annotation
> (org.springframework.osgi.extensions.annotations)]
> [FelixDispatchQueue] DEBUG
> org.springframework.osgi.extensions.annotations - BundleEvent STARTED
>
>
> --
> Aaron Zeckoski (azeckoski (at) vt.edu)
> Senior Research Engineer - CARET - Cambridge University
> https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski
> http://aaronz-sakai.blogspot.com/ -
> http://confluence.sakaiproject.org/confluence/display/~aaronz/<http://confluence.sakaiproject.org/confluence/display/%7Eaaronz/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
-- 
Cheers, Stuart

Reply via email to