You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by "Pratt, Jason" <Ja...@windriver.com> on 2015/07/17 22:17:17 UTC

installing activemq and seeing very strange behavior

Hello - While installing ActiveMQ via a KAR I am seeing strange behavior. Tailing the log to watch the install, I experience:

1.      Log entry saying the Blueprint container is being destroyed

2.      Exiting the log to the main Karaf shell

3.      Then seeing the initial banner loading anywhere from 2 - 5 times

4.      Final error is a PermGen, but I have that set to 1024M and 2G respectively

What would be causing this?


2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.system.command
2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.bundle.core
2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring | Activator                        | 122 - org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension for bundle org.apache.activemq.activemq-web-console
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | activemq-web-console - 204}      | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | Destroying Spring FrameworkServlet 'dispatcher'
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | XmlWebApplicationContext         | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Closing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | DefaultListableBeanFactory       | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8: defining beans [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob
.action,exceptionResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | XmlWebApplicationContext         | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root of context hierarchy
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | DefaultListableBeanFactory       | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a: defining beans [queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory]; root of factory hierarchy
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console - 204}}
2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.activemq.activemq-web-console [204]]
2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.kar.command
2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.camel.karaf.camel-karaf-commands
2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.http
2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring | HttpPlugin                       | 148 - org.apache.karaf.webconsole.http - 3.0.4 | Http plugin deactivated
2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.features.command
2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.instance.command
2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.console
2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.console [136]]
2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jms.core
2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.commands
2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.gogo [147]]
2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.instance [145]]
2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.features [146]]
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.features [146], contextID=default]}
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a}
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}
2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring | Activator                        | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Pax Web stopped
2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.diagnostic.command
2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.service.command
2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jaas.command
2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.instance
2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | InstancePlugin                   | 145 - org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated
2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.package.core
2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.help
2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jndi.command
2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.region.command
2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.web.core
2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.http.command
2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.log.command
Exception in thread "pool-7-thread-1" org.osgi.service.blueprint.container.ServiceUnavailableException: The Blueprint container is being or has been destroyed: (objectClass=org.apache.karaf.log.core.LogService)
        at org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)
        at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)
        at org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)
        at Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)
        at org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker" java.lang.OutOfMemoryError: PermGen space


Re: installing activemq and seeing very strange behavior

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Jason,

yes, please create a Jira, we will take a look (and eventually create a 
Jira at ActiveMQ).

Thanks,
Regards
JB

On 07/20/2015 10:48 PM, Pratt, Jason wrote:
> Upon further investigation, this still happens on installation via KAR
> or from the CLI command. My team can reproduce it consistently.
>
> However, it doesn’t happen after a restart of the karaf container.
>
> Should I log this as a bug, since James has seen the same behavior?
>
> Regards,
>
> Jason
>
> *From:*Jason Pratt [mailto:jpratt3000@gmail.com]
> *Sent:* Saturday, July 18, 2015 7:38 AM
> *To:* user@karaf.apache.org
> *Subject:* Re: installing activemq and seeing very strange behavior
>
> It happens on 5.9.1 to 5.11.1
>
> On Jul 17, 2015 9:04 PM, "Jean-Baptiste Onofré" <jb@nanthrax.net
> <ma...@nanthrax.net>> wrote:
>
> What's the ActiveMQ version ?
>
> On 07/17/2015 10:17 PM, Pratt, Jason wrote:
>
> Hello – While installing ActiveMQ via a KAR I am seeing strange
> behavior. Tailing the log to watch the install, I experience:
>
> 1.Log entry saying the Blueprint container is being destroyed
>
> 2.Exiting the log to the main Karaf shell
>
> 3.Then seeing the initial banner loading anywhere from 2 – 5 times
>
> 4.Final error is a PermGen, but I have that set to 1024M and 2G
> respectively
>
> What would be causing this?
>
> 2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.system.command
>
> 2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.bundle.core
>
> 2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring |
> Activator                        | 122 -
> org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension
> for bundle org.apache.activemq.activemq-web-console
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> activemq-web-console - 204}      | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> Destroying Spring FrameworkServlet 'dispatcher'
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> XmlWebApplicationContext         | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Closing
> WebApplicationContext for namespace 'dispatcher-servlet': startup date
> [Fri Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> DefaultListableBeanFactory       | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying
> singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8
> <ma...@5f8bdda8>:
> defining beans
> [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob
>
> .action,exceptionResolver]; parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a
> <ma...@63eb624a>
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> XmlWebApplicationContext         | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root
> WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root
> of context hierarchy
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> DefaultListableBeanFactory       | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying
> singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a
> <ma...@63eb624a>:
> defining beans
> [queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory];
> root of factory hierarchy
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped
> HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console
> - 204}}
>
> 2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.activemq.activemq-web-console [204]]
>
> 2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.kar.command
>
> 2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.camel.karaf.camel-karaf-commands
>
> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.http
>
> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
> HttpPlugin                       | 148 -
> org.apache.karaf.webconsole.http - 3.0.4 | Http plugin deactivated
>
> 2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.features.command
>
> 2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.instance.command
>
> 2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.console
>
> 2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.karaf.webconsole.console [136]]
>
> 2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jms.core
>
> 2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.shell.commands
>
> 2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.karaf.webconsole.gogo [147]]
>
> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.karaf.webconsole.instance [145]]
>
> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.karaf.webconsole.features [146]]
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.features [146], contextID=default]}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped
> HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a}
> <mailto:HttpServiceContext%7bhttpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a%7d>
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}
>
> 2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring |
> Activator                        | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Pax Web stopped
>
> 2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.diagnostic.command
>
> 2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.service.command
>
> 2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.jaas.command
>
> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.instance
>
> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
> InstancePlugin                   | 145 -
> org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated
>
> 2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.package.core
>
> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.shell.help
>
> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.jndi.command
>
> 2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.region.command
>
> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.web.core
>
> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.http.command
>
> 2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.log.command
>
> Exception in thread "pool-7-thread-1"
> org.osgi.service.blueprint.container.ServiceUnavailableException: The
> Blueprint container is being or has been destroyed:
> (objectClass=org.apache.karaf.log.core.LogService)
>
>           at
> org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)
>
>           at
> org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)
>
>           at
> org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)
>
>           at
> Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)
>
>           at
> org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)
>
>           at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
>           at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
>           at java.lang.Thread.run(Thread.java:745)
>
>           __ __                  ____
>
>          / //_/____ __________ _/ __/
>
>         / ,<  / __ `/ ___/ __ `/ /_
>
>        / /| |/ /_/ / /  / /_/ / __/
>
>       /_/ |_|\__,_/_/   \__,_/_/
>
>     Apache Karaf (3.0.4)
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> karaf@root()>
>
>           __ __                  ____
>
>          / //_/____ __________ _/ __/
>
>         / ,<  / __ `/ ___/ __ `/ /_
>
>        / /| |/ /_/ / /  / /_/ / __/
>
>       /_/ |_|\__,_/_/   \__,_/_/
>
>     Apache Karaf (3.0.4)
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> karaf@root()>
>
>           __ __                  ____
>
>          / //_/____ __________ _/ __/
>
>         / ,<  / __ `/ ___/ __ `/ /_
>
>        / /| |/ /_/ / /  / /_/ / __/
>
>       /_/ |_|\__,_/_/   \__,_/_/
>
>     Apache Karaf (3.0.4)
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> karaf@root()>
>
>           __ __                  ____
>
>          / //_/____ __________ _/ __/
>
>         / ,<  / __ `/ ___/ __ `/ /_
>
>        / /| |/ /_/ / /  / /_/ / __/
>
>       /_/ |_|\__,_/_/   \__,_/_/
>
>     Apache Karaf (3.0.4)
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker"
> java.lang.OutOfMemoryError: PermGen space
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: installing activemq and seeing very strange behavior

Posted by "Pratt, Jason" <Ja...@windriver.com>.
Upon further investigation, this still happens on installation via KAR or from the CLI command. My team can reproduce it consistently.
However, it doesn’t happen after a restart of the karaf container.

Should I log this as a bug, since James has seen the same behavior?

Regards,
Jason

From: Jason Pratt [mailto:jpratt3000@gmail.com]
Sent: Saturday, July 18, 2015 7:38 AM
To: user@karaf.apache.org
Subject: Re: installing activemq and seeing very strange behavior


It happens on 5.9.1 to 5.11.1
On Jul 17, 2015 9:04 PM, "Jean-Baptiste Onofré" <jb...@nanthrax.net>> wrote:
What's the ActiveMQ version ?

On 07/17/2015 10:17 PM, Pratt, Jason wrote:
Hello – While installing ActiveMQ via a KAR I am seeing strange
behavior. Tailing the log to watch the install, I experience:

1.Log entry saying the Blueprint container is being destroyed

2.Exiting the log to the main Karaf shell

3.Then seeing the initial banner loading anywhere from 2 – 5 times

4.Final error is a PermGen, but I have that set to 1024M and 2G
respectively

What would be causing this?

2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.system.command

2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.bundle.core

2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring |
Activator                        | 122 -
org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension
for bundle org.apache.activemq.activemq-web-console

2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
activemq-web-console - 204}      | 108 -
org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
Destroying Spring FrameworkServlet 'dispatcher'

2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
XmlWebApplicationContext         | 204 -
org.apache.activemq.activemq-web-console - 5.11.1 | Closing
WebApplicationContext for namespace 'dispatcher-servlet': startup date
[Fri Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext

2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
DefaultListableBeanFactory       | 204 -
org.apache.activemq.activemq-web-console - 5.11.1 | Destroying
singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8<ma...@5f8bdda8>:
defining beans
[handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob

.action,exceptionResolver]; parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a<ma...@63eb624a>

2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
XmlWebApplicationContext         | 204 -
org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root
WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root
of context hierarchy

2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
DefaultListableBeanFactory       | 204 -
org.apache.activemq.activemq-web-console - 5.11.1 | Destroying
singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a<ma...@63eb624a>:
defining beans
[queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory];
root of factory hierarchy

2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
ContextHandler                   | 108 -
org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
stopped
HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console
- 204}}

2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring |
HttpServiceFactoryImpl           | 116 -
org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
[org.apache.activemq.activemq-web-console [204]]

2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.kar.command

2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.camel.karaf.camel-karaf-commands

2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.webconsole.http

2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
HttpPlugin                       | 148 -
org.apache.karaf.webconsole.http - 3.0.4 | Http plugin deactivated

2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.features.command

2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.instance.command

2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.webconsole.console

2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring |
HttpServiceFactoryImpl           | 116 -
org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
[org.apache.karaf.webconsole.console [136]]

2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jms.core

2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.shell.commands

2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  |
HttpServiceFactoryImpl           | 116 -
org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
[org.apache.karaf.webconsole.gogo [147]]

2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
HttpServiceFactoryImpl           | 116 -
org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
[org.apache.karaf.webconsole.instance [145]]

2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
HttpServiceFactoryImpl           | 116 -
org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
[org.apache.karaf.webconsole.features [146]]

2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
ContextHandler                   | 108 -
org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
stopped HttpServiceContext{httpContext=DefaultHttpContext
[bundle=org.apache.karaf.webconsole.features [146], contextID=default]}

2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
ContextHandler                   | 108 -
org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
stopped HttpServiceContext{httpContext=DefaultHttpContext
[bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}

2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
ContextHandler                   | 108 -
org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
stopped
HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a}<mailto:HttpServiceContext%7bhttpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a%7d>

2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
ContextHandler                   | 108 -
org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
stopped HttpServiceContext{httpContext=DefaultHttpContext
[bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}

2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring |
Activator                        | 116 -
org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Pax Web stopped

2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.diagnostic.command

2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.service.command

2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.jaas.command

2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.webconsole.instance

2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
InstancePlugin                   | 145 -
org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated

2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.package.core

2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.shell.help

2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.jndi.command

2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.region.command

2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.web.core

2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.http.command

2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring |
BlueprintExtender                | 15 - org.apache.aries.blueprint.core
- 1.4.3 | Destroying BlueprintContainer for bundle
org.apache.karaf.log.command

Exception in thread "pool-7-thread-1"
org.osgi.service.blueprint.container.ServiceUnavailableException: The
Blueprint container is being or has been destroyed:
(objectClass=org.apache.karaf.log.core.LogService)

         at
org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)

         at
org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)

         at
org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)

         at
Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)

         at
org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)

         at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

         at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

         at java.lang.Thread.run(Thread.java:745)

         __ __                  ____

        / //_/____ __________ _/ __/

       / ,<  / __ `/ ___/ __ `/ /_

      / /| |/ /_/ / /  / /_/ / __/

     /_/ |_|\__,_/_/   \__,_/_/

   Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands

and '[cmd] --help' for help on a specific command.

Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>

         __ __                  ____

        / //_/____ __________ _/ __/

       / ,<  / __ `/ ___/ __ `/ /_

      / /| |/ /_/ / /  / /_/ / __/

     /_/ |_|\__,_/_/   \__,_/_/

   Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands

and '[cmd] --help' for help on a specific command.

Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>

         __ __                  ____

        / //_/____ __________ _/ __/

       / ,<  / __ `/ ___/ __ `/ /_

      / /| |/ /_/ / /  / /_/ / __/

     /_/ |_|\__,_/_/   \__,_/_/

   Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands

and '[cmd] --help' for help on a specific command.

Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>

         __ __                  ____

        / //_/____ __________ _/ __/

       / ,<  / __ `/ ___/ __ `/ /_

      / /| |/ /_/ / /  / /_/ / __/

     /_/ |_|\__,_/_/   \__,_/_/

   Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands

and '[cmd] --help' for help on a specific command.

Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker"
java.lang.OutOfMemoryError: PermGen space

--
Jean-Baptiste Onofré
jbonofre@apache.org<ma...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: installing activemq and seeing very strange behavior

Posted by Jason Pratt <jp...@gmail.com>.
It happens on 5.9.1 to 5.11.1
On Jul 17, 2015 9:04 PM, "Jean-Baptiste Onofré" <jb...@nanthrax.net> wrote:

> What's the ActiveMQ version ?
>
> On 07/17/2015 10:17 PM, Pratt, Jason wrote:
>
>> Hello – While installing ActiveMQ via a KAR I am seeing strange
>> behavior. Tailing the log to watch the install, I experience:
>>
>> 1.Log entry saying the Blueprint container is being destroyed
>>
>> 2.Exiting the log to the main Karaf shell
>>
>> 3.Then seeing the initial banner loading anywhere from 2 – 5 times
>>
>> 4.Final error is a PermGen, but I have that set to 1024M and 2G
>> respectively
>>
>> What would be causing this?
>>
>> 2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.system.command
>>
>> 2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.bundle.core
>>
>> 2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring |
>> Activator                        | 122 -
>> org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension
>> for bundle org.apache.activemq.activemq-web-console
>>
>> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
>> activemq-web-console - 204}      | 108 -
>> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
>> Destroying Spring FrameworkServlet 'dispatcher'
>>
>> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
>> XmlWebApplicationContext         | 204 -
>> org.apache.activemq.activemq-web-console - 5.11.1 | Closing
>> WebApplicationContext for namespace 'dispatcher-servlet': startup date
>> [Fri Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext
>>
>> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
>> DefaultListableBeanFactory       | 204 -
>> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying
>> singletons in
>>
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8
>> :
>> defining beans
>>
>> [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob
>>
>> .action,exceptionResolver]; parent:
>>
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a
>>
>> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
>> XmlWebApplicationContext         | 204 -
>> org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root
>> WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root
>> of context hierarchy
>>
>> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
>> DefaultListableBeanFactory       | 204 -
>> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying
>> singletons in
>>
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a
>> :
>> defining beans
>>
>> [queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory];
>> root of factory hierarchy
>>
>> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
>> ContextHandler                   | 108 -
>> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
>> stopped
>>
>> HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console
>> - 204}}
>>
>> 2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring |
>> HttpServiceFactoryImpl           | 116 -
>> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
>> [org.apache.activemq.activemq-web-console [204]]
>>
>> 2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.kar.command
>>
>> 2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.camel.karaf.camel-karaf-commands
>>
>> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.webconsole.http
>>
>> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
>> HttpPlugin                       | 148 -
>> org.apache.karaf.webconsole.http - 3.0.4 | Http plugin deactivated
>>
>> 2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.features.command
>>
>> 2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.instance.command
>>
>> 2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.webconsole.console
>>
>> 2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring |
>> HttpServiceFactoryImpl           | 116 -
>> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
>> [org.apache.karaf.webconsole.console [136]]
>>
>> 2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.jms.core
>>
>> 2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.shell.commands
>>
>> 2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  |
>> HttpServiceFactoryImpl           | 116 -
>> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
>> [org.apache.karaf.webconsole.gogo [147]]
>>
>> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
>> HttpServiceFactoryImpl           | 116 -
>> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
>> [org.apache.karaf.webconsole.instance [145]]
>>
>> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
>> HttpServiceFactoryImpl           | 116 -
>> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
>> [org.apache.karaf.webconsole.features [146]]
>>
>> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
>> ContextHandler                   | 108 -
>> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
>> stopped HttpServiceContext{httpContext=DefaultHttpContext
>> [bundle=org.apache.karaf.webconsole.features [146], contextID=default]}
>>
>> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
>> ContextHandler                   | 108 -
>> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
>> stopped HttpServiceContext{httpContext=DefaultHttpContext
>> [bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}
>>
>> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
>> ContextHandler                   | 108 -
>> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
>> stopped
>>
>> HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a
>> }
>>
>> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
>> ContextHandler                   | 108 -
>> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
>> stopped HttpServiceContext{httpContext=DefaultHttpContext
>> [bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}
>>
>> 2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring |
>> Activator                        | 116 -
>> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Pax Web stopped
>>
>> 2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.diagnostic.command
>>
>> 2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.service.command
>>
>> 2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.jaas.command
>>
>> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.webconsole.instance
>>
>> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
>> InstancePlugin                   | 145 -
>> org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated
>>
>> 2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.package.core
>>
>> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.shell.help
>>
>> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.jndi.command
>>
>> 2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.region.command
>>
>> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.web.core
>>
>> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.http.command
>>
>> 2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring |
>> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
>> - 1.4.3 | Destroying BlueprintContainer for bundle
>> org.apache.karaf.log.command
>>
>> Exception in thread "pool-7-thread-1"
>> org.osgi.service.blueprint.container.ServiceUnavailableException: The
>> Blueprint container is being or has been destroyed:
>> (objectClass=org.apache.karaf.log.core.LogService)
>>
>>          at
>>
>> org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)
>>
>>          at
>>
>> org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)
>>
>>          at
>>
>> org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)
>>
>>          at
>> Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)
>>
>>          at
>>
>> org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)
>>
>>          at
>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>
>>          at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>
>>          at java.lang.Thread.run(Thread.java:745)
>>
>>          __ __                  ____
>>
>>         / //_/____ __________ _/ __/
>>
>>        / ,<  / __ `/ ___/ __ `/ /_
>>
>>       / /| |/ /_/ / /  / /_/ / __/
>>
>>      /_/ |_|\__,_/_/   \__,_/_/
>>
>>    Apache Karaf (3.0.4)
>>
>> Hit '<tab>' for a list of available commands
>>
>> and '[cmd] --help' for help on a specific command.
>>
>> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>>
>> karaf@root()>
>>
>>          __ __                  ____
>>
>>         / //_/____ __________ _/ __/
>>
>>        / ,<  / __ `/ ___/ __ `/ /_
>>
>>       / /| |/ /_/ / /  / /_/ / __/
>>
>>      /_/ |_|\__,_/_/   \__,_/_/
>>
>>    Apache Karaf (3.0.4)
>>
>> Hit '<tab>' for a list of available commands
>>
>> and '[cmd] --help' for help on a specific command.
>>
>> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>>
>> karaf@root()>
>>
>>          __ __                  ____
>>
>>         / //_/____ __________ _/ __/
>>
>>        / ,<  / __ `/ ___/ __ `/ /_
>>
>>       / /| |/ /_/ / /  / /_/ / __/
>>
>>      /_/ |_|\__,_/_/   \__,_/_/
>>
>>    Apache Karaf (3.0.4)
>>
>> Hit '<tab>' for a list of available commands
>>
>> and '[cmd] --help' for help on a specific command.
>>
>> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>>
>> karaf@root()>
>>
>>          __ __                  ____
>>
>>         / //_/____ __________ _/ __/
>>
>>        / ,<  / __ `/ ___/ __ `/ /_
>>
>>       / /| |/ /_/ / /  / /_/ / __/
>>
>>      /_/ |_|\__,_/_/   \__,_/_/
>>
>>    Apache Karaf (3.0.4)
>>
>> Hit '<tab>' for a list of available commands
>>
>> and '[cmd] --help' for help on a specific command.
>>
>> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>>
>> karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker"
>> java.lang.OutOfMemoryError: PermGen space
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: installing activemq and seeing very strange behavior

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
What's the ActiveMQ version ?

On 07/17/2015 10:17 PM, Pratt, Jason wrote:
> Hello – While installing ActiveMQ via a KAR I am seeing strange
> behavior. Tailing the log to watch the install, I experience:
>
> 1.Log entry saying the Blueprint container is being destroyed
>
> 2.Exiting the log to the main Karaf shell
>
> 3.Then seeing the initial banner loading anywhere from 2 – 5 times
>
> 4.Final error is a PermGen, but I have that set to 1024M and 2G
> respectively
>
> What would be causing this?
>
> 2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.system.command
>
> 2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.bundle.core
>
> 2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring |
> Activator                        | 122 -
> org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension
> for bundle org.apache.activemq.activemq-web-console
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> activemq-web-console - 204}      | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> Destroying Spring FrameworkServlet 'dispatcher'
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> XmlWebApplicationContext         | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Closing
> WebApplicationContext for namespace 'dispatcher-servlet': startup date
> [Fri Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> DefaultListableBeanFactory       | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying
> singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8:
> defining beans
> [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob
>
> .action,exceptionResolver]; parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> XmlWebApplicationContext         | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root
> WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root
> of context hierarchy
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> DefaultListableBeanFactory       | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying
> singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a:
> defining beans
> [queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory];
> root of factory hierarchy
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped
> HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console
> - 204}}
>
> 2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.activemq.activemq-web-console [204]]
>
> 2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.kar.command
>
> 2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.camel.karaf.camel-karaf-commands
>
> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.http
>
> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
> HttpPlugin                       | 148 -
> org.apache.karaf.webconsole.http - 3.0.4 | Http plugin deactivated
>
> 2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.features.command
>
> 2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.instance.command
>
> 2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.console
>
> 2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.karaf.webconsole.console [136]]
>
> 2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jms.core
>
> 2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.shell.commands
>
> 2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.karaf.webconsole.gogo [147]]
>
> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.karaf.webconsole.instance [145]]
>
> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle:
> [org.apache.karaf.webconsole.features [146]]
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.features [146], contextID=default]}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped
> HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 |
> stopped HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}
>
> 2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring |
> Activator                        | 116 -
> org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Pax Web stopped
>
> 2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.diagnostic.command
>
> 2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.service.command
>
> 2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.jaas.command
>
> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.instance
>
> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
> InstancePlugin                   | 145 -
> org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated
>
> 2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.package.core
>
> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.shell.help
>
> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.jndi.command
>
> 2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.region.command
>
> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.web.core
>
> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.http.command
>
> 2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core
> - 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.log.command
>
> Exception in thread "pool-7-thread-1"
> org.osgi.service.blueprint.container.ServiceUnavailableException: The
> Blueprint container is being or has been destroyed:
> (objectClass=org.apache.karaf.log.core.LogService)
>
>          at
> org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)
>
>          at
> org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)
>
>          at
> org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)
>
>          at
> Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)
>
>          at
> org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)
>
>          at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
>          at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
>          at java.lang.Thread.run(Thread.java:745)
>
>          __ __                  ____
>
>         / //_/____ __________ _/ __/
>
>        / ,<  / __ `/ ___/ __ `/ /_
>
>       / /| |/ /_/ / /  / /_/ / __/
>
>      /_/ |_|\__,_/_/   \__,_/_/
>
>    Apache Karaf (3.0.4)
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> karaf@root()>
>
>          __ __                  ____
>
>         / //_/____ __________ _/ __/
>
>        / ,<  / __ `/ ___/ __ `/ /_
>
>       / /| |/ /_/ / /  / /_/ / __/
>
>      /_/ |_|\__,_/_/   \__,_/_/
>
>    Apache Karaf (3.0.4)
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> karaf@root()>
>
>          __ __                  ____
>
>         / //_/____ __________ _/ __/
>
>        / ,<  / __ `/ ___/ __ `/ /_
>
>       / /| |/ /_/ / /  / /_/ / __/
>
>      /_/ |_|\__,_/_/   \__,_/_/
>
>    Apache Karaf (3.0.4)
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> karaf@root()>
>
>          __ __                  ____
>
>         / //_/____ __________ _/ __/
>
>        / ,<  / __ `/ ___/ __ `/ /_
>
>       / /| |/ /_/ / /  / /_/ / __/
>
>      /_/ |_|\__,_/_/   \__,_/_/
>
>    Apache Karaf (3.0.4)
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
> karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker"
> java.lang.OutOfMemoryError: PermGen space
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

RE: installing activemq and seeing very strange behavior

Posted by "Pratt, Jason" <Ja...@windriver.com>.
It appears to be the activemq-blueprint bundle.

After going all the way down to 5.9.1 with the current KAR of

·        Activemq

·        Activemq-broker-noweb

·        Activemq-camel

·        Activemq-blueprint

I am letting that sit on the back burner until I can get a basic activemq working with out all these errors. I have started to install via the CLI.
For ActiveMQ 5.11.1 from the CLI when I install blueprint it just hangs and I have to kill the JVM its in and restart again.

CLI output:

karaf@root(feature)> install activemq-blueprint
Refreshing bundles org.apache.activemq.activemq-osgi (104)

        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> Error executing command: Invalid BundleContext.

From: James Carman [mailto:james@carmanconsulting.com]
Sent: Friday, July 17, 2015 5:21 PM
To: user@karaf.apache.org
Subject: Re: installing activemq and seeing very strange behavior

Yes, we ran into it too, but noweb did start for us. Let us know if you find the version where it goes wonky.
On Fri, Jul 17, 2015 at 7:19 PM Pratt, Jason <Ja...@windriver.com>> wrote:
I did try that, its still having the same effect. I am going to try version 5.10.2 next and keep downgrading until I find one that works with 3.0.4
This is very frustrating.

From: James Carman [mailto:james@carmanconsulting.com<ma...@carmanconsulting.com>]
Sent: Friday, July 17, 2015 4:53 PM
To: user@karaf.apache.org<ma...@karaf.apache.org>
Subject: Re: installing activemq and seeing very strange behavior

Try installing the activemq-broker-noweb feature. Something is wrong with the webconsole it seems.
On Fri, Jul 17, 2015 at 6:43 PM Pratt, Jason <Ja...@windriver.com>> wrote:
I’ve confirmed this happening on other team members pc’s as well. I assume there is an undocumented trick to getting activemq to install properly?

From: Pratt, Jason [mailto:Jason.Pratt@windriver.com<ma...@windriver.com>]
Sent: Friday, July 17, 2015 1:17 PM
To: user@karaf.apache.org<ma...@karaf.apache.org>
Subject: installing activemq and seeing very strange behavior

Hello – While installing ActiveMQ via a KAR I am seeing strange behavior. Tailing the log to watch the install, I experience:

1.      Log entry saying the Blueprint container is being destroyed

2.      Exiting the log to the main Karaf shell

3.      Then seeing the initial banner loading anywhere from 2 – 5 times

4.      Final error is a PermGen, but I have that set to 1024M and 2G respectively

What would be causing this?


2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.system.command
2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.bundle.core
2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring | Activator                        | 122 - org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension for bundle org.apache.activemq.activemq-web-console
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | activemq-web-console - 204}      | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | Destroying Spring FrameworkServlet 'dispatcher'
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | XmlWebApplicationContext         | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Closing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | DefaultListableBeanFactory       | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8<ma...@5f8bdda8>: defining beans [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob
.action,exceptionResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a<ma...@63eb624a>
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | XmlWebApplicationContext         | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root of context hierarchy
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | DefaultListableBeanFactory       | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a<ma...@63eb624a>: defining beans [queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory]; root of factory hierarchy
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console - 204}}
2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.activemq.activemq-web-console [204]]
2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.kar.command
2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.camel.karaf.camel-karaf-commands
2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.http
2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring | HttpPlugin                       | 148 - org.apache.karaf.webconsole.http - 3.0.4 | Http plugin deactivated
2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.features.command
2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.instance.command
2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.console
2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.console [136]]
2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jms.core
2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.commands
2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.gogo [147]]
2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.instance [145]]
2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.features [146]]
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.features [146], contextID=default]}
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a}<mailto:HttpServiceContext%7bhttpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a%7d>
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}
2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring | Activator                        | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Pax Web stopped
2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.diagnostic.command
2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.service.command
2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jaas.command
2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.instance
2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | InstancePlugin                   | 145 - org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated
2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.package.core
2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.help
2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jndi.command
2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.region.command
2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.web.core
2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.http.command
2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.log.command
Exception in thread "pool-7-thread-1" org.osgi.service.blueprint.container.ServiceUnavailableException: The Blueprint container is being or has been destroyed: (objectClass=org.apache.karaf.log.core.LogService)
        at org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)
        at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)
        at org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)
        at Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)
        at org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker" java.lang.OutOfMemoryError: PermGen space


Re: installing activemq and seeing very strange behavior

Posted by James Carman <ja...@carmanconsulting.com>.
Yes, we ran into it too, but noweb did start for us. Let us know if you
find the version where it goes wonky.
On Fri, Jul 17, 2015 at 7:19 PM Pratt, Jason <Ja...@windriver.com>
wrote:

>  I did try that, its still having the same effect. I am going to try
> version 5.10.2 next and keep downgrading until I find one that works with
> 3.0.4
>
> This is very frustrating.
>
>
>
> *From:* James Carman [mailto:james@carmanconsulting.com]
> *Sent:* Friday, July 17, 2015 4:53 PM
> *To:* user@karaf.apache.org
> *Subject:* Re: installing activemq and seeing very strange behavior
>
>
>
> Try installing the activemq-broker-noweb feature. Something is wrong with
> the webconsole it seems.
>
> On Fri, Jul 17, 2015 at 6:43 PM Pratt, Jason <Ja...@windriver.com>
> wrote:
>
>  I’ve confirmed this happening on other team members pc’s as well. I
> assume there is an undocumented trick to getting activemq to install
> properly?
>
>
>
> *From:* Pratt, Jason [mailto:Jason.Pratt@windriver.com]
> *Sent:* Friday, July 17, 2015 1:17 PM
> *To:* user@karaf.apache.org
> *Subject:* installing activemq and seeing very strange behavior
>
>
>
> Hello – While installing ActiveMQ via a KAR I am seeing strange behavior.
> Tailing the log to watch the install, I experience:
>
> 1.      Log entry saying the Blueprint container is being destroyed
>
> 2.      Exiting the log to the main Karaf shell
>
> 3.      Then seeing the initial banner loading anywhere from 2 – 5 times
>
> 4.      Final error is a PermGen, but I have that set to 1024M and 2G
> respectively
>
>
>
> What would be causing this?
>
>
>
>
>
> 2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.system.command
>
> 2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.bundle.core
>
> 2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring |
> Activator                        | 122 -
> org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension for
> bundle org.apache.activemq.activemq-web-console
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | activemq-web-console
> - 204}      | 108 - org.eclipse.jetty.aggregate.jetty-all-server -
> 8.1.17.v20150415 | Destroying Spring FrameworkServlet 'dispatcher'
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> XmlWebApplicationContext         | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Closing
> WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri
> Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> DefaultListableBeanFactory       | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons
> in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8:
> defining beans
> [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob
>
> .action,exceptionResolver]; parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> XmlWebApplicationContext         | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root
> WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root of
> context hierarchy
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> DefaultListableBeanFactory       | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons
> in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a:
> defining beans
> [queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory];
> root of factory hierarchy
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console
> - 204}}
>
> 2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.activemq.activemq-web-console [204]]
>
> 2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.kar.command
>
> 2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.camel.karaf.camel-karaf-commands
>
> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.http
>
> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
> HttpPlugin                       | 148 - org.apache.karaf.webconsole.http -
> 3.0.4 | Http plugin deactivated
>
> 2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.features.command
>
> 2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.instance.command
>
> 2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.console
>
> 2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.console [136]]
>
> 2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jms.core
>
> 2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.shell.commands
>
> 2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.gogo [147]]
>
> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.instance [145]]
>
> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.features [146]]
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.features [146], contextID=default]}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}
>
> 2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring |
> Activator                        | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Pax Web stopped
>
> 2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.diagnostic.command
>
> 2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.service.command
>
> 2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.jaas.command
>
> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | BlueprintExtender
>            | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying
> BlueprintContainer for bundle org.apache.karaf.webconsole.instance
>
> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
> InstancePlugin                   | 145 -
> org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated
>
> 2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.package.core
>
> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.help
>
> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.jndi.command
>
> 2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.region.command
>
> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.web.core
>
> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.http.command
>
> 2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.log.command
>
> Exception in thread "pool-7-thread-1"
> org.osgi.service.blueprint.container.ServiceUnavailableException: The
> Blueprint container is being or has been destroyed:
> (objectClass=org.apache.karaf.log.core.LogService)
>
>         at
> org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)
>
>         at
> org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)
>
>         at
> org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)
>
>         at
> Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)
>
>         at
> org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)
>
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
>         at java.lang.Thread.run(Thread.java:745)
>
>
>
>         __ __                  ____
>
>        / //_/____ __________ _/ __/
>
>       / ,<  / __ `/ ___/ __ `/ /_
>
>      / /| |/ /_/ / /  / /_/ / __/
>
>     /_/ |_|\__,_/_/   \__,_/_/
>
>
>
>   Apache Karaf (3.0.4)
>
>
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
>
>
> karaf@root()>
>
>         __ __                  ____
>
>        / //_/____ __________ _/ __/
>
>       / ,<  / __ `/ ___/ __ `/ /_
>
>      / /| |/ /_/ / /  / /_/ / __/
>
>     /_/ |_|\__,_/_/   \__,_/_/
>
>
>
>   Apache Karaf (3.0.4)
>
>
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
>
>
> karaf@root()>
>
>         __ __                  ____
>
>        / //_/____ __________ _/ __/
>
>       / ,<  / __ `/ ___/ __ `/ /_
>
>      / /| |/ /_/ / /  / /_/ / __/
>
>     /_/ |_|\__,_/_/   \__,_/_/
>
>
>
>   Apache Karaf (3.0.4)
>
>
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
>
>
> karaf@root()>
>
>         __ __                  ____
>
>        / //_/____ __________ _/ __/
>
>       / ,<  / __ `/ ___/ __ `/ /_
>
>      / /| |/ /_/ / /  / /_/ / __/
>
>     /_/ |_|\__,_/_/   \__,_/_/
>
>
>
>   Apache Karaf (3.0.4)
>
>
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
>
>
> karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker"
> java.lang.OutOfMemoryError: PermGen space
>
>
>
>

RE: installing activemq and seeing very strange behavior

Posted by "Pratt, Jason" <Ja...@windriver.com>.
I did try that, its still having the same effect. I am going to try version 5.10.2 next and keep downgrading until I find one that works with 3.0.4
This is very frustrating.

From: James Carman [mailto:james@carmanconsulting.com]
Sent: Friday, July 17, 2015 4:53 PM
To: user@karaf.apache.org
Subject: Re: installing activemq and seeing very strange behavior

Try installing the activemq-broker-noweb feature. Something is wrong with the webconsole it seems.
On Fri, Jul 17, 2015 at 6:43 PM Pratt, Jason <Ja...@windriver.com>> wrote:
I’ve confirmed this happening on other team members pc’s as well. I assume there is an undocumented trick to getting activemq to install properly?

From: Pratt, Jason [mailto:Jason.Pratt@windriver.com<ma...@windriver.com>]
Sent: Friday, July 17, 2015 1:17 PM
To: user@karaf.apache.org<ma...@karaf.apache.org>
Subject: installing activemq and seeing very strange behavior

Hello – While installing ActiveMQ via a KAR I am seeing strange behavior. Tailing the log to watch the install, I experience:

1.      Log entry saying the Blueprint container is being destroyed

2.      Exiting the log to the main Karaf shell

3.      Then seeing the initial banner loading anywhere from 2 – 5 times

4.      Final error is a PermGen, but I have that set to 1024M and 2G respectively

What would be causing this?


2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.system.command
2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.bundle.core
2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring | Activator                        | 122 - org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension for bundle org.apache.activemq.activemq-web-console
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | activemq-web-console - 204}      | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | Destroying Spring FrameworkServlet 'dispatcher'
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | XmlWebApplicationContext         | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Closing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | DefaultListableBeanFactory       | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8<ma...@5f8bdda8>: defining beans [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob
.action,exceptionResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a<ma...@63eb624a>
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | XmlWebApplicationContext         | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root of context hierarchy
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | DefaultListableBeanFactory       | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a<ma...@63eb624a>: defining beans [queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory]; root of factory hierarchy
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console - 204}}
2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.activemq.activemq-web-console [204]]
2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.kar.command
2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.camel.karaf.camel-karaf-commands
2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.http
2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring | HttpPlugin                       | 148 - org.apache.karaf.webconsole.http - 3.0.4 | Http plugin deactivated
2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.features.command
2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.instance.command
2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.console
2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.console [136]]
2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jms.core
2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.commands
2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.gogo [147]]
2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.instance [145]]
2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.features [146]]
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.features [146], contextID=default]}
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a}<mailto:HttpServiceContext%7bhttpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a%7d>
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}
2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring | Activator                        | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Pax Web stopped
2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.diagnostic.command
2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.service.command
2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jaas.command
2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.instance
2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | InstancePlugin                   | 145 - org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated
2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.package.core
2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.help
2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jndi.command
2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.region.command
2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.web.core
2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.http.command
2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.log.command
Exception in thread "pool-7-thread-1" org.osgi.service.blueprint.container.ServiceUnavailableException: The Blueprint container is being or has been destroyed: (objectClass=org.apache.karaf.log.core.LogService)
        at org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)
        at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)
        at org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)
        at Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)
        at org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker" java.lang.OutOfMemoryError: PermGen space


Re: installing activemq and seeing very strange behavior

Posted by James Carman <ja...@carmanconsulting.com>.
Try installing the activemq-broker-noweb feature. Something is wrong with
the webconsole it seems.
On Fri, Jul 17, 2015 at 6:43 PM Pratt, Jason <Ja...@windriver.com>
wrote:

>  I’ve confirmed this happening on other team members pc’s as well. I
> assume there is an undocumented trick to getting activemq to install
> properly?
>
>
>
> *From:* Pratt, Jason [mailto:Jason.Pratt@windriver.com]
> *Sent:* Friday, July 17, 2015 1:17 PM
> *To:* user@karaf.apache.org
> *Subject:* installing activemq and seeing very strange behavior
>
>
>
> Hello – While installing ActiveMQ via a KAR I am seeing strange behavior.
> Tailing the log to watch the install, I experience:
>
> 1.      Log entry saying the Blueprint container is being destroyed
>
> 2.      Exiting the log to the main Karaf shell
>
> 3.      Then seeing the initial banner loading anywhere from 2 – 5 times
>
> 4.      Final error is a PermGen, but I have that set to 1024M and 2G
> respectively
>
>
>
> What would be causing this?
>
>
>
>
>
> 2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.system.command
>
> 2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.bundle.core
>
> 2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring |
> Activator                        | 122 -
> org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension for
> bundle org.apache.activemq.activemq-web-console
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | activemq-web-console
> - 204}      | 108 - org.eclipse.jetty.aggregate.jetty-all-server -
> 8.1.17.v20150415 | Destroying Spring FrameworkServlet 'dispatcher'
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> XmlWebApplicationContext         | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Closing
> WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri
> Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> DefaultListableBeanFactory       | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons
> in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8:
> defining beans
> [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob
>
> .action,exceptionResolver]; parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> XmlWebApplicationContext         | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root
> WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root of
> context hierarchy
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> DefaultListableBeanFactory       | 204 -
> org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons
> in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a:
> defining beans
> [queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory];
> root of factory hierarchy
>
> 2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console
> - 204}}
>
> 2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.activemq.activemq-web-console [204]]
>
> 2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.kar.command
>
> 2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.camel.karaf.camel-karaf-commands
>
> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.http
>
> 2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring |
> HttpPlugin                       | 148 - org.apache.karaf.webconsole.http -
> 3.0.4 | Http plugin deactivated
>
> 2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.features.command
>
> 2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.instance.command
>
> 2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.webconsole.console
>
> 2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.console [136]]
>
> 2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jms.core
>
> 2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.shell.commands
>
> 2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.gogo [147]]
>
> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.instance [145]]
>
> 2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  |
> HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.features [146]]
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.features [146], contextID=default]}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a}
>
> 2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  |
> ContextHandler                   | 108 -
> org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped
> HttpServiceContext{httpContext=DefaultHttpContext
> [bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}
>
> 2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring |
> Activator                        | 116 - org.ops4j.pax.web.pax-web-runtime
> - 3.2.3 | Pax Web stopped
>
> 2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.diagnostic.command
>
> 2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.service.command
>
> 2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.jaas.command
>
> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | BlueprintExtender
>            | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying
> BlueprintContainer for bundle org.apache.karaf.webconsole.instance
>
> 2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring |
> InstancePlugin                   | 145 -
> org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated
>
> 2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.package.core
>
> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.help
>
> 2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.jndi.command
>
> 2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.region.command
>
> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.web.core
>
> 2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.http.command
>
> 2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring |
> BlueprintExtender                | 15 - org.apache.aries.blueprint.core -
> 1.4.3 | Destroying BlueprintContainer for bundle
> org.apache.karaf.log.command
>
> Exception in thread "pool-7-thread-1"
> org.osgi.service.blueprint.container.ServiceUnavailableException: The
> Blueprint container is being or has been destroyed:
> (objectClass=org.apache.karaf.log.core.LogService)
>
>         at
> org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)
>
>         at
> org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)
>
>         at
> org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)
>
>         at
> Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)
>
>         at
> org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)
>
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
>         at java.lang.Thread.run(Thread.java:745)
>
>
>
>         __ __                  ____
>
>        / //_/____ __________ _/ __/
>
>       / ,<  / __ `/ ___/ __ `/ /_
>
>      / /| |/ /_/ / /  / /_/ / __/
>
>     /_/ |_|\__,_/_/   \__,_/_/
>
>
>
>   Apache Karaf (3.0.4)
>
>
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
>
>
> karaf@root()>
>
>         __ __                  ____
>
>        / //_/____ __________ _/ __/
>
>       / ,<  / __ `/ ___/ __ `/ /_
>
>      / /| |/ /_/ / /  / /_/ / __/
>
>     /_/ |_|\__,_/_/   \__,_/_/
>
>
>
>   Apache Karaf (3.0.4)
>
>
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
>
>
> karaf@root()>
>
>         __ __                  ____
>
>        / //_/____ __________ _/ __/
>
>       / ,<  / __ `/ ___/ __ `/ /_
>
>      / /| |/ /_/ / /  / /_/ / __/
>
>     /_/ |_|\__,_/_/   \__,_/_/
>
>
>
>   Apache Karaf (3.0.4)
>
>
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
>
>
> karaf@root()>
>
>         __ __                  ____
>
>        / //_/____ __________ _/ __/
>
>       / ,<  / __ `/ ___/ __ `/ /_
>
>      / /| |/ /_/ / /  / /_/ / __/
>
>     /_/ |_|\__,_/_/   \__,_/_/
>
>
>
>   Apache Karaf (3.0.4)
>
>
>
> Hit '<tab>' for a list of available commands
>
> and '[cmd] --help' for help on a specific command.
>
> Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
>
>
>
> karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker"
> java.lang.OutOfMemoryError: PermGen space
>
>
>

RE: installing activemq and seeing very strange behavior

Posted by "Pratt, Jason" <Ja...@windriver.com>.
I've confirmed this happening on other team members pc's as well. I assume there is an undocumented trick to getting activemq to install properly?

From: Pratt, Jason [mailto:Jason.Pratt@windriver.com]
Sent: Friday, July 17, 2015 1:17 PM
To: user@karaf.apache.org
Subject: installing activemq and seeing very strange behavior

Hello - While installing ActiveMQ via a KAR I am seeing strange behavior. Tailing the log to watch the install, I experience:

1.      Log entry saying the Blueprint container is being destroyed

2.      Exiting the log to the main Karaf shell

3.      Then seeing the initial banner loading anywhere from 2 - 5 times

4.      Final error is a PermGen, but I have that set to 1024M and 2G respectively

What would be causing this?


2015-07-17 13:10:43,537 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.system.command
2015-07-17 13:10:43,577 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.bundle.core
2015-07-17 13:10:43,647 | INFO  | xFrameworkWiring | Activator                        | 122 - org.ops4j.pax.web.pax-web-extender-war - 3.2.3 | Destroying extension for bundle org.apache.activemq.activemq-web-console
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | activemq-web-console - 204}      | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | Destroying Spring FrameworkServlet 'dispatcher'
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | XmlWebApplicationContext         | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Closing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Jul 17 13:10:41 PDT 2015]; parent: Root WebApplicationContext
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | DefaultListableBeanFactory       | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8bdda8<ma...@5f8bdda8>: defining beans [handlerMapping,/createDestination.action,/deleteDestination.action,/createSubscriber.action,/deleteSubscriber.action,/sendMessage.action,/purgeDestination.action,/deleteMessage.action,/copyMessage.action,/moveMessage.action,/deleteJob
.action,exceptionResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a<ma...@63eb624a>
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | XmlWebApplicationContext         | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Closing Root WebApplicationContext: startup date [Fri Jul 17 13:10:41 PDT 2015]; root of context hierarchy
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | DefaultListableBeanFactory       | 204 - org.apache.activemq.activemq-web-console - 5.11.1 | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@63eb624a<ma...@63eb624a>: defining beans [queueBrowser,messageQuery,queueConsumerQuery,queueProducerQuery,topicProducerQuery,topicSubscriberQuery,connectionQuery,placeholderConfig,sessionPool,configuration,brokerQuery,connectionFactory]; root of factory hierarchy
2015-07-17 13:10:43,657 | INFO  | xFrameworkWiring | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console - 204}}
2015-07-17 13:10:43,667 | INFO  | xFrameworkWiring | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.activemq.activemq-web-console [204]]
2015-07-17 13:10:43,687 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.kar.command
2015-07-17 13:10:43,707 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.camel.karaf.camel-karaf-commands
2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.http
2015-07-17 13:10:43,767 | INFO  | xFrameworkWiring | HttpPlugin                       | 148 - org.apache.karaf.webconsole.http - 3.0.4 | Http plugin deactivated
2015-07-17 13:10:43,777 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.features.command
2015-07-17 13:10:43,817 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.instance.command
2015-07-17 13:10:43,867 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.console
2015-07-17 13:10:43,887 | INFO  | xFrameworkWiring | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.console [136]]
2015-07-17 13:10:43,897 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jms.core
2015-07-17 13:10:43,927 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.commands
2015-07-17 13:10:44,017 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.gogo [147]]
2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.instance [145]]
2015-07-17 13:10:44,027 | INFO  | pool-8-thread-1  | HttpServiceFactoryImpl           | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Unbinding bundle: [org.apache.karaf.webconsole.features [146]]
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.features [146], contextID=default]}
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.instance [145], contextID=default]}
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a}<mailto:HttpServiceContext%7bhttpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@5d80186a%7d>
2015-07-17 13:10:44,047 | INFO  | pool-8-thread-1  | ContextHandler                   | 108 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | stopped HttpServiceContext{httpContext=DefaultHttpContext [bundle=org.apache.karaf.webconsole.gogo [147], contextID=default]}
2015-07-17 13:10:44,129 | INFO  | xFrameworkWiring | Activator                        | 116 - org.ops4j.pax.web.pax-web-runtime - 3.2.3 | Pax Web stopped
2015-07-17 13:10:44,139 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.diagnostic.command
2015-07-17 13:10:44,159 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.service.command
2015-07-17 13:10:44,179 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jaas.command
2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.webconsole.instance
2015-07-17 13:10:44,249 | INFO  | xFrameworkWiring | InstancePlugin                   | 145 - org.apache.karaf.webconsole.instance - 3.0.4 | Instance plugin deactivated
2015-07-17 13:10:44,259 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.package.core
2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.help
2015-07-17 13:10:44,269 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.jndi.command
2015-07-17 13:10:44,299 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.region.command
2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.web.core
2015-07-17 13:10:44,309 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.http.command
2015-07-17 13:10:44,329 | INFO  | xFrameworkWiring | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.3 | Destroying BlueprintContainer for bundle org.apache.karaf.log.command
Exception in thread "pool-7-thread-1" org.osgi.service.blueprint.container.ServiceUnavailableException: The Blueprint container is being or has been destroyed: (objectClass=org.apache.karaf.log.core.LogService)
        at org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:240)
        at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:55)
        at org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:298)
        at Proxy0e63c7bc_1fba_4158_9c96_f4e07dbf4ab4.removeAppender(Unknown Source)
        at org.apache.karaf.log.command.LogTail$PrintEventThread.run(LogTail.java:129)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()>
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (3.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

karaf@root()> Exception in thread "ActiveMQ Journal Checkpoint Worker" java.lang.OutOfMemoryError: PermGen space