Re: Karaf shutdown and create dump file

2019-06-04 Thread Jean-Baptiste Onofré
Hi, As you are using directly bin/karaf (via bin/start & bin/stop), without wrapper or watchdog, karaf doesn't stop automatically. Especially, if you see a Karaf dump zip file created, it's certainly a manual or programmatic action. Maybe you can take a look on the audit.log to see what is

Karaf shutdown and create dump file

2019-06-04 Thread LuisLo
Hello, we are currently developing an application based on karaf 4.1.6, but we do not manage the operating system in which it is installed. Recently, to our regret, two actions have come together: 1.- The operating system was changed to SUSE. 2.- We have updated the version of our application.

Re: ActiveMq + karaf + shutdown

2017-04-04 Thread xav
(managedServiceFactory.getName() + " disapears."); isBrokerActive = false; } It's work, so thx to Christian an JB for theirs post. Regards -- View this message in context: http://karaf.922171.n3.nabble.com/ActiveMq-karaf-shutdown-tp4049950p4050032.html Sent from the Ka

Re: ActiveMq + karaf + shutdown

2017-03-29 Thread xav
Hi Christian, Thx for your comment, I will try asap, and send my feedback Regards -- View this message in context: http://karaf.922171.n3.nabble.com/ActiveMq-karaf-shutdown-tp4049950p4049963.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: ActiveMq + karaf + shutdown

2017-03-29 Thread Christian Schneider
eMq embedded in Karaf. I would like to shutdown the feature activemq-broker-noweb at the end. Why, because I have a feature (bundles connected with the broker) which stop (on a karaf shutdown) after the activemq and I would like the reverse, i.e. shutdown my feature, and after shutdown the activ

Re: ActiveMq + karaf + shutdown

2017-03-29 Thread xav
to know, if the broker is there or not? Regards -- View this message in context: http://karaf.922171.n3.nabble.com/ActiveMq-karaf-shutdown-tp4049950p4049952.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: ActiveMq + karaf + shutdown

2017-03-29 Thread Jean-Baptiste Onofré
with the broker) which stop (on a karaf shutdown) after the activemq and I would like the reverse, i.e. shutdown my feature, and after shutdown the activemq feature. Do we have only the start-level at our disposition? Thx a lot for a help Regards Xav -- View this message in context: http

ActiveMq + karaf + shutdown

2017-03-29 Thread xav
Hi all, I have a question about ActiveMq embedded in Karaf. I would like to shutdown the feature activemq-broker-noweb at the end. Why, because I have a feature (bundles connected with the broker) which stop (on a karaf shutdown) after the activemq and I would like the reverse, i.e. shutdown my

Re: Karaf shutdown

2016-11-21 Thread Jean-Baptiste Onofré
vembre 2016 10:57 *À :* user *Objet :* Re: Karaf shutdown 2016-11-21 10:30 GMT+01:00 CLEMENT Jean-Philippe <jean-philippe.clem...@fr.thalesgroup.com <mailto:jean-philippe.clem...@fr.thalesgroup.com>>: Would be great ! It would also be nice to be able to call it programmatically,

RE: Karaf shutdown

2016-11-21 Thread CLEMENT Jean-Philippe
ð Created the Jira KARAF-4826<https://issues.apache.org/jira/browse/KARAF-4826> Thank you ! Regards, JP De : Guillaume Nodet [mailto:gno...@apache.org] Envoyé : lundi 21 novembre 2016 10:57 À : user Objet : Re: Karaf shutdown 2016-11-21 10:30 GMT+01:00 CLEMENT Jean-Philippe

Re: Karaf shutdown

2016-11-21 Thread Guillaume Nodet
fré [mailto:j...@nanthrax.net] > Envoyé : lundi 21 novembre 2016 10:27 > À : user@karaf.apache.org > Objet : Re: Karaf shutdown > > +1 > > Regards > JB > > On 11/21/2016 10:25 AM, Guillaume Nodet wrote: > > We could easily add an option to the shutdown command f

RE: Karaf shutdown

2016-11-21 Thread CLEMENT Jean-Philippe
@karaf.apache.org Objet : Re: Karaf shutdown +1 Regards JB On 11/21/2016 10:25 AM, Guillaume Nodet wrote: > We could easily add an option to the shutdown command for that. > > 2016-11-21 10:21 GMT+01:00 CLEMENT Jean-Philippe > <jean-philippe.clem...@fr.thalesgroup.com > <mail

Re: Karaf shutdown

2016-11-21 Thread Jean-Baptiste Onofré
pen when (at least) a bundle does not end. So I added a watchdog which exits Java when a time limit has been exceeded (note: maybe there is already a way to do so - ?). The way I coded it does not work when the shutdown is made via the Karaf promp

Re: Karaf shutdown

2016-11-21 Thread Guillaume Nodet
n within a given time > limit. Is there a way to do so? > > > > Regards, > > JP > > > > *De :* Guillaume Nodet [mailto:gno...@apache.org] > *Envoyé :* vendredi 18 novembre 2016 20:16 > > *À :* user > *Objet :* Re: Karaf shutdown > > > > &

RE: Karaf shutdown

2016-11-21 Thread CLEMENT Jean-Philippe
ll some room for improvements in blueprint-core when shutting down bundles. Regards, JP De : Guillaume Nodet [mailto:gno...@apache.org<mailto:gno...@apache.org>] Envoyé : vendredi 18 novembre 2016 17:04 À : user Objet : Re: Karaf shutdown You have 2 events for each bundle (but for

Re: Karaf shutdown

2016-11-18 Thread Guillaume Nodet
ill some room for improvements in blueprint-core when shutting down bundles. > > > Regards, > > JP > > > > *De :* Guillaume Nodet [mailto:gno...@apache.org] > *Envoyé :* vendredi 18 novembre 2016 17:04 > > *À :* user > *Objet :* Re: Karaf shutdown > &

RE: Karaf shutdown

2016-11-18 Thread CLEMENT Jean-Philippe
, the spec says I should first get the event. Should not be tied to the actual stopping order, isn’t it (Blueprint or not)? Regards, JP De : Guillaume Nodet [mailto:gno...@apache.org] Envoyé : vendredi 18 novembre 2016 17:04 À : user Objet : Re: Karaf shutdown You have 2 events for each bundle

Re: Karaf shutdown

2016-11-18 Thread Guillaume Nodet
apache.org] > *Envoyé :* vendredi 18 novembre 2016 16:40 > > *À :* user > *Objet :* Re: Karaf shutdown > > > > > > > > 2016-11-18 15:01 GMT+01:00 CLEMENT Jean-Philippe < > jean-philippe.clem...@fr.thalesgroup.com>: > > Did you also add a bundle whi

RE: Karaf shutdown

2016-11-18 Thread CLEMENT Jean-Philippe
-stopping-bundle and displaying the event type? Regards, JP De : Guillaume Nodet [mailto:gno...@apache.org] Envoyé : vendredi 18 novembre 2016 16:40 À : user Objet : Re: Karaf shutdown 2016-11-18 15:01 GMT+01:00 CLEMENT Jean-Philippe <jean-philippe.clem...@fr.thalesgroup.com<mailt

Re: Karaf shutdown

2016-11-18 Thread Guillaume Nodet
et-commons-ssl_0.3.11.1 [31]] ... > > > Regards, > > JP > > > > *De :* Guillaume Nodet [mailto:gno...@apache.org] > *Envoyé :* vendredi 18 novembre 2016 14:26 > > *À :* user > *Objet :* Re: Karaf shutdown > > > > You must be doing something wrong. > > I added

RE: Karaf shutdown

2016-11-18 Thread CLEMENT Jean-Philippe
Did you also add a bundle which prevents stopping ? PS: in your traces which event is the shutdown itself? Regards, JP De : Guillaume Nodet [mailto:gno...@apache.org] Envoyé : vendredi 18 novembre 2016 14:26 À : user Objet : Re: Karaf shutdown You must be doing something wrong. I added

Re: Karaf shutdown

2016-11-18 Thread Guillaume Nodet
> System.out.println("Oooops: " + e); > > LOG.error(() -> "Issue while stopping karaf", e); > > } > > } > > } > > > > Regards, > > JP > > > > *De :* Guillaume Nodet [mailto:gno...@

RE: Karaf shutdown

2016-11-18 Thread CLEMENT Jean-Philippe
PS : After calling shutdown() the output is : Bye bye So long! De : CLEMENT Jean-Philippe Envoyé : vendredi 18 novembre 2016 13:29 À : user Objet : RE: Karaf shutdown That’s exactly what I did. The listener is not called at all. Looking at bundles

RE: Karaf shutdown

2016-11-18 Thread CLEMENT Jean-Philippe
JP De : Guillaume Nodet [mailto:gno...@apache.org] Envoyé : vendredi 18 novembre 2016 13:01 À : user Objet : Re: Karaf shutdown Can you write a simple SynchronousBundleListener that prints to stdout all received events and paste the output when stopping the framework for felix and

Re: Karaf shutdown

2016-11-18 Thread Guillaume Nodet
:* vendredi 18 novembre 2016 11:52 > *À :* user > *Objet :* Re: Karaf shutdown > > > > The SynchronousBundleListener is the way to go. > > You should receive a STOPPING event for the system bundle before any other > bundle is actually stopped. > > > > 2016-11-18 1

RE: Karaf shutdown

2016-11-18 Thread CLEMENT Jean-Philippe
t work when the shutdown is made via the Karaf prompt, so I decided to enhance it. Googling “Karaf shutdown hook”, I found an old thread talking about SynchronousBundleListener. The issue I’m facing is that I get no event when performing bundle0.stop(Bundle.STOP_TRANSIENT) and one of the

Re: Karaf shutdown

2016-11-18 Thread Guillaume Nodet
own event? > > > > Regards, > > JP > > > > *De :* CLEMENT Jean-Philippe [mailto:jean-philippe.clement@ > fr.thalesgroup.com] > *Envoyé :* jeudi 17 novembre 2016 17:03 > *À :* user@karaf.apache.org > *Objet :* Karaf shutdown > > > > Dear Karaf addicts :) &

RE: Karaf shutdown

2016-11-18 Thread CLEMENT Jean-Philippe
Is there a way to get a shutdown event? Regards, JP De : CLEMENT Jean-Philippe [mailto:jean-philippe.clem...@fr.thalesgroup.com] Envoyé : jeudi 17 novembre 2016 17:03 À : user@karaf.apache.org Objet : Karaf shutdown Dear Karaf addicts :) I would like Karaf to stop. This may fail to happen when

Karaf shutdown

2016-11-17 Thread CLEMENT Jean-Philippe
is made via the Karaf prompt, so I decided to enhance it. Googling “Karaf shutdown hook”, I found an old thread talking about SynchronousBundleListener. The issue I’m facing is that I get no event when performing bundle0.stop(Bundle.STOP_TRANSIENT) and one of the bundles refuses to stop

Karaf shutdown management

2016-03-03 Thread Benson Margulies
it before doing the actual Karaf shutdown.

Re: Karaf shutdown while starting

2014-11-19 Thread Srikanth Hugar
:38:37.258 [Thread-2] INFO o.a.karaf.main.ShutdownSocketThread - Karaf shutdown socket: received shutdown command. Stopping framework... *Start again without deleting data folder.* 07:45:35.968 [Blueprint Extender: 1] ERROR o.a.a.b.c.BlueprintContainerImpl - Unable to start blueprint container

Re: Karaf shutdown while starting

2014-11-19 Thread Jean-Baptiste Onofré
Hi, I would cleanup the data folder as you may have some bundles cache in incorrect state. Regards JB On 11/19/2014 08:58 AM, Srikanth Hugar wrote: How to make karaf start successful if stopped while starting? 1. First time start the karaf 2. Stop the karaf before it actually starts fully.

Re: Karaf shutdown while starting

2014-11-19 Thread Srikanth Hugar
It works if i clean up the data folder. Do we have option to start the karaf without cleaning the data folder? Srikanth Hugar www.gharki.com On Wed, Nov 19, 2014 at 1:48 PM, Jean-Baptiste Onofré j...@nanthrax.net wrote: Hi, I would cleanup the data folder as you may have some bundles cache

Re: Karaf shutdown while starting

2014-11-19 Thread Jean-Baptiste Onofré
What's your Karaf version ? Regards JB On 11/19/2014 09:20 AM, Srikanth Hugar wrote: It works if i clean up the data folder. Do we have option to start the karaf without cleaning the data folder? Srikanth Hugar www.gharki.com http://www.gharki.com On Wed, Nov 19, 2014 at 1:48 PM,

Re: Karaf shutdown while starting

2014-11-19 Thread Srikanth Hugar
karaf version is 3.0.0 Srikanth Hugar www.gharki.com On Wed, Nov 19, 2014 at 2:02 PM, Jean-Baptiste Onofré j...@nanthrax.net wrote: What's your Karaf version ? Regards JB On 11/19/2014 09:20 AM, Srikanth Hugar wrote: It works if i clean up the data folder. Do we have option to start

Karaf shutdown while starting

2014-11-18 Thread Srikanth Hugar
How to make karaf start successful if stopped while starting? 1. First time start the karaf 2. Stop the karaf before it actually starts fully. 3. Start the karaf Karaf does not start, how to resolve the issue? 1. First time start the karaf 2. Stop the karaf before it actually starts fully. 3.

Hook into Karaf shutdown process

2012-11-26 Thread Raman Gupta
I have an application in which, when it's given the stop command, I'd like to finish some work in progress before shutting down bundle 0. This is because the bundle shutdown starts prematurely shutting down services and such that are necessary for the work to complete. For now, I've implemented

Re: Hook into Karaf shutdown process

2012-11-26 Thread Raman Gupta
On 11/26/2012 02:33 PM, Raman Gupta wrote: Ideally, Karaf would have a ShutdownHook interface/service I could implement in my bundles -- for each one of these registered, Karaf would execute them before stopping the framework bundles. If someone could give me some starting pointers, I could

Re: Backspace key after karaf shutdown

2012-06-05 Thread Anthony Bargnesi
. Thanks! Tony Bargnesi On Sat, Jun 2, 2012 at 1:43 AM, Jean-Baptiste Onofré j...@nanthrax.netwrote: Hi Anthony, Could you try: $ reset after Karaf shutdown. Does it solve your issue ? Regards JB On 06/01/2012 05:10 PM, Anthony Bargnesi wrote: Hello, I am having an issue

Re: Backspace key after karaf shutdown

2012-06-03 Thread Anthony Bargnesi
Anthony, Could you try: $ reset after Karaf shutdown. Does it solve your issue ? Regards JB On 06/01/2012 05:10 PM, Anthony Bargnesi wrote: Hello, I am having an issue with my backspace key mapping after a karaf shutdown. The backspace key appears to be mapped differently as a ^H

Backspace key after karaf shutdown

2012-06-01 Thread Anthony Bargnesi
Hello, I am having an issue with my backspace key mapping after a karaf shutdown. The backspace key appears to be mapped differently as a ^H is displayed instead. The process I've used to reproduce the issue is: -- BACKSPACE works correctly before karaf is run -- [tony@starship ~]$ karaf

Re: Backspace key after karaf shutdown

2012-06-01 Thread Jean-Baptiste Onofré
Hi Anthony, Could you try: $ reset after Karaf shutdown. Does it solve your issue ? Regards JB On 06/01/2012 05:10 PM, Anthony Bargnesi wrote: Hello, I am having an issue with my backspace key mapping after a karaf shutdown. The backspace key appears to be mapped differently as a ^H