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

Java Debug options are Pre Java 5.0

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3, 2.4.1, 4.0.0.M2, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      None

      Description

      When debugging I noticed the debugger option are Pre Java 5.0. Since Karaf requires Java 7 or greater, the options need to be updated.

      I was expecting DEFAULT_JAVA_DEBUG_OPTS = “-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005”

      sparrow:bin paul$ grep DEFAULT_JAVA_DEBUG_OPTS= *
      instance: DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
      instance: #DEFAULT_JAVA_DEBUG_OPTS="-Xrunyjpagent"
      instance.bat:set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
      karaf: DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
      karaf: #DEFAULT_JAVA_DEBUG_OPTS="-Xrunyjpagent"
      karaf.bat:set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
      shell: DEFAULT_JAVA_DEBUG_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
      shell: #DEFAULT_JAVA_DEBUG_OPTS="-Xrunyjpagent"
      shell.bat:set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              paulsp Paul Spencer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: