OpenDj server debug mode is not working

Tagged: 

This topic has 4 replies, 4 voices, and was last updated 5 years, 1 month ago by bikumar.

  • Author
    Posts
  • #12201
     avinashch
    Participant

    Hi,

    Trying to start the OpenDJ server in debug mode using

    OPENDJ_JAVA_ARGS=”-agentlib:jdwp=transport=dt_socket,address=localhost:8998,server=y”\
    bin/start-ds

    I could not bring the server up and it just hangs at

    Listening for transport dt_socket at address: 8998.

    When trying to remote debug from eclipse it will not connect obviously since the server is not up yet.

    #12202
     Ludo
    Moderator

    The point of these arguments are to block the server from really running until you connect to the port with the debugger. This said, you may need to connect twice. The start-ds script makes 2 calls to the OpenDJ main method, one for checking various things, the second one to actually start the server.
    So the first time, the debugger connects and disconnects right away, and OpenDJ is blocked waiting for the debugger to connect again.

    #12213
     JnRouvignac
    Participant

    Hi avinashch,

    Did Ludo’s answer help? Are you unblocked?

    Cheers,
    Jean-Noel

    #12223
     avinashch
    Participant

    Hi Jean-Noel, Ludo

    Thanks for the quick reply and it is working fine.

    Thanks,
    Avinash.

    #17752
     bikumar
    Participant

    Hi,

    I am also facing the same issue, unable to start OpenDJ in debug mode.

    As Ludo suggested: “This said, you may need to connect twice”

    How do I connect twice?

    I am stuck at

    ++ export PATH LD_LIBRARY_PATH LD_LIBRARY_PATH_32 LD_LIBRARY_PATH_64 LD_PRELOAD LD_PRELOAD_32 LD_PRELOAD_64
    ++ SCRIPT_NAME_ARG=-Dorg.opends.server.scriptName=start-ds
    ++ export SCRIPT_NAME_ARG
    ++ set_classpath
    ++ CLASSPATH=/apps/opendj/classes
    ++ for JAR in ‘”${INSTALL_ROOT}/resources/”*.jar’
    ++ CLASSPATH=’/apps/opendj/classes:/apps/opendj/resources/*.jar’
    ++ CLASSPATH=’/apps/opendj/classes:/apps/opendj/resources/*.jar:/apps/opendj/lib/bootstrap.jar’
    ++ ‘[‘ /apps/opendj ‘!=’ /apps/opendj ‘]’
    ++ export CLASSPATH
    ++ test_java_args
    ++ test -z -agentlib:jdwp=transport=dt_socket,address=localhost:8200,server=y,suspend=y
    ++ test_java
    ++ test -z -agentlib:jdwp=transport=dt_socket,address=localhost:8200,server=y,suspend=y
    ++ /usr/bin/java -agentlib:jdwp=transport=dt_socket,address=localhost:8200,server=y,suspend=y org.opends.server.tools.InstallDS -t
    Listening for transport dt_socket at address: 8200

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?