java.lang.IllegalArgumentException: Hook previously registered

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Xrs option and shutdown hooks
    via by 843798,
  • addShutdownHook not working in HP-Unix
    via by 807592,
    • java.lang.IllegalArgumentException: Hook previously registered at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:72)[na:1.7.0_147-icedtea] at java.lang.Runtime.addShutdownHook(Runtime.java:209)[na:1.7.0_147-icedtea] at org.springframework.context.support.AbstractApplicationContext.registerShutdownHook(AbstractApplicationContext.java:961)[org.springframework.context-3.1.1.RELEASE.jar:3.1.1.RELEASE]

    Users with the same issue

    hoangtranwork
    hoangtranwork1 times, last one,