Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1410

Error in stop script if KARAF_DEBUG is enabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.6
    • 2.2.8, 2.3.0, 3.0.0
    • karaf
    • None
    • Tested under Linux but problem exists also under Windows

    Description

      While trying to use the stop script in order to shut down my Karaf instance (2.2.6) with the debug option enabled I have encountered the following error:

      karaf: Enabling Java debug options: -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
      ERROR: transport error 202: bind failed: Address already in use
      ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
      JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
      FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
      Aborted

      The problem is that stop script calls karaf script which tries to execute a new Java process with DEBUG option enabled to the same port.

      Attachments

        1. unix-karaf-diff.txt
          0.2 kB
          Nikolaos Dimos

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              nikosd23 Nikolaos Dimos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: