Now that we track the life cycle of objects in a couple of places, I wonder
if we could use this to check that we are shutting down during start up and
be more graceful.

Gary

On Mon, Aug 3, 2015 at 5:05 AM, Mikael Ståldal <mikael.stal...@magine.com>
wrote:

> This is not a web application.
>
> On Thu, Jul 16, 2015 at 11:10 AM, Adam Retter <adam.ret...@googlemail.com>
> wrote:
>
> > Are you using log4j in a web application? If so if you google around
> > you can find several suggestions for solving this behaviour.
> >
> > On 16 July 2015 at 09:49, Mikael Ståldal <mikael.stal...@magine.com>
> > wrote:
> > > I sometimes get the message:
> > > FATAL Unable to register shutdown hook because JVM is shutting down.
> > >
> > > This happens in a short running batch job.
> > >
> > > Can it be so that Log4j did not have time to initialize fully before
> > > shutting down? What can be done about it?
> > >
> > > Log4j 2.3.
> > >
> > > --
> > > [image: MagineTV]
> > >
> > >  *Mikael Ståldal*
> > > Senior backend developer
> > >
> > >  *Magine TV*
> > >  mikael.stal...@magine.com
> > >  Regeringsgatan 25  | 111 53 Stockholm, Sweden  |   www.magine.com
> > >
> > >  Privileged and/or Confidential Information may be contained in this
> > > message. If you are not the addressee indicated in this message
> > > (or responsible for delivery of the message to such a person), you may
> > not
> > > copy or deliver this message to anyone. In such case,
> > > you should destroy this message and kindly notify the sender by reply
> > > email.
> >
> >
> >
> > --
> > Adam Retter
> >
> > skype: adam.retter
> > tweet: adamretter
> > http://www.adamretter.org.uk
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> > For additional commands, e-mail: log4j-user-h...@logging.apache.org
> >
> >
>
>
> --
> [image: MagineTV]
>
> *Mikael Ståldal*
> Senior backend developer
>
> *Magine TV*
> mikael.stal...@magine.com
> Regeringsgatan 25  | 111 53 Stockholm, Sweden  |   www.magine.com
>
> Privileged and/or Confidential Information may be contained in this
> message. If you are not the addressee indicated in this message
> (or responsible for delivery of the message to such a person), you may not
> copy or deliver this message to anyone. In such case,
> you should destroy this message and kindly notify the sender by reply
> email.
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to