Skip to Content
avatar image
Former Member

EP6SP2 Remote Debugging with Eclipse

Hallo all together,

I have installed the EP6 with SP2 (+HF3). I have also imported the PDK6.0. My portal user has the new portal role "Java Developer".

For starting the J2EE in Debug Mode, I makes all the changes in the J2EE start script, which are described  in the Javadoc "Remote Debugging with Eclipse". When I now start the server with the new script "goDebug.bat", the following error will be displayed:

   Invalid listen port number: $DEBUG_PORT5000

   Transport dt_socket failed to initialize, rc = -1

   FATAL ERROR in native mathod: No transports initialized

Do you have any idea how I can solve this issues?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Jan 22, 2004 at 12:57 PM

    Hi Jens,

    I think I had the same problem. The problem is, that the go.bat passes

    %DEBUG_PARAMS%%DEBUG_PORT%

    to the java call.

    The descrition 'How to Debug Remotely' assumes to be on a unix system,

    where $DEBUG_PORT is replaced by its value (Windows pendant is: %DEBUG_PORT%)

    But if you do so, the port will be passed twice to the java call.

    My solution was to remove the %DEBUG_PORT% to the call and set the vaiables

    as follows:

    set MEMORY=512M

    set DEBUG_PORT=

    set DEBUG_PARAMS=

    "%JAVA_HOME% injava" -server -Xms512M -XX:+DisableExplicitGC -XX:MaxPermSize=64M -XX:PermSize=64M -XX:MaxNewSize=64M -XX:NewSize=64M -classpath ".;.system-lib oot.jar;.system-libjaas.jar;.system-libSystemLoginModule.jar" %DEBUG_PARAMS%%DEBUG_PORT% %1 %2 -Xmx%MEMORY%  -Dmemory.manager=%MEMORY% -Dredirect.input=true -Djava.security.policy=.java.policy -Dorg.omg.CORBA.ORBClass=com.inqmy.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.inqmy.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.inqmy.system.PortableRemoteObjectProxy -Djavax.rmi.CORBA.UtilClass=com.inqmy.system.UtilDelegateProxy com.inqmy.boot.Start

    Best Regrads,

    Rüdiger

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 20, 2004 at 12:53 PM

    Hi all

    When I try rudigers proposal I get the following error:

    <i>Error occurred during initialization of VM

    Incompatible initial and maximum heap sizes specified</i>

    I have the exact same settings in my go.bat file, which works.

    When i Try Axels proposal the godebug.bat hangs when it reaches:

    loading: ClusterManager...

    Any ideas?

    TIA

    Henrik

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi again

      How to do it!!

      When you reach the point where it hangs loading the clustermanager.

      Then you start the dispatcher....

      and whoops it works!!

      Kr Henrik

  • avatar image
    Former Member
    Apr 21, 2004 at 04:37 PM

    Hello all,

    launching godebug.bat i'm getting clustermanger error in loading. it cannot open port 50020.

    first of all i've never been able to have both server and dispatcher service running together.

    i just have one server which i've installed portal on. and it runs on dispatcher. Can anybaody tell me which is the fucntion of server? i was thinking for a clustered installation with more nodes as well.

    thanks in advence

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 30, 2004 at 09:43 AM

    Hi all,

    I've found out that there is another mistake in the doDebug.bat file. In the last line beginning with:

    "%JAVA_HOME%\bin\java"

    you find an entry:

    %DEBUG_PARAMS%%DEBUG_PORT%

    But the DEBUG_PORT you also specify in the DEBUG_PARAMS so here you would declare it twice - it does not work.

    After deleting this last %DEBUG_PORT% debugging with Eclipse worked!

    Here you can see my goDebug.bat:

    @echo off

    set PATH=..\..\os_libs;%PATH%

    cd /D "D:\usr\sap\EP6R\j2ee\j2ee_00\cluster\server"

    if not "%JAVA_HOME%"=="" (

    goto EDDIF28

    )

    set JAVA_HOME=D:\jdk1.3.1_09

    :EDDIF28

    set MEMORY=512M

    set DEBUG_PORT=8000

    set DEBUG_PARAMS=-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=8000

    "%JAVA_HOME%\bin\java" -server -Xms512M -XX:+DisableExplicitGC -XX:MaxPermSize=64M -XX:PermSize=64M -XX:MaxNewSize=64M -XX:NewSize=64M -classpath ".;.\system-lib\boot.jar;.\system-lib\jaas.jar;.\system-lib\SystemLoginModule.jar" %DEBUG_PARAMS% %1 %2 -Xmx%MEMORY% -Dmemory.manager=%MEMORY% -Dredirect.input=true -Djava.security.policy=.\java.policy -Dorg.omg.CORBA.ORBClass=com.inqmy.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.inqmy.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.inqmy.system.PortableRemoteObjectProxy -Djavax.rmi.CORBA.UtilClass=com.inqmy.system.UtilDelegateProxy com.inqmy.boot.Start

    regards

    Renu00E9

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2004 at 05:29 PM

    I noted from one of the folks above, that they got the error

    Error occurred during initialization of VM

    Incompatible initial and maximum heap sizes specified

    I am also getting the error after adding the debug information. Does anyone know how to solve this?

    Also after adding the debug info which should I start first server (go.bat) or dispatcher (go.bat). The documentation says server.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded