1 2 Previous Next 26 Replies Latest reply: Jan 27, 2007 10:10 AM by 807597 RSS

    Solution to: Transport dt_socket failed to initialize

    807597
      Hey, this is aplicable in Windows systems, JDK 1.3.1

      I kept finding this error trying to initialize the JPDA. The solution is to copy the dt_socket.dll file from the jre/bin dir into the current working dir. I'm not a DLL guru, but I think it's the same as to copy it to the system dir.

      I'm not sure how to do it, so someone please send this to the JPDA FAQ or the bug lists.

      Regards to all :)
        • 1. Re: Solution to: Transport dt_socket failed to initialize
          807597
          I copied it to system32 directory, and that worked just fine.. there are two files of interest..

          dt_socket.dll and dt_shmem.dll

          one is for remote debugging and the other for local.

          Good Luck
          • 2. Re: Solution to: Transport dt_socket failed to initialize
            807597
            I am having trouble starting JBoss with the -Xrunjdwp option. Here is my command line:

            java -classic -classpath "%JBOSS_CLASSPATH%" -Xdebug -Xnoagent %JAXP% -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,launch="c:\Together\bin\win32\display.bat c:\Together",suspend=n org.jboss.Main tomcat

            I get the error:
            JBOSS_CLASSPATH=;run.jar;../lib/crimson.jar
            Transport dt_socket failed to initialize, rc = 510.
            FATAL ERROR in native method: No transports initialized

            abnormal program termination

            I found some mention of this error on the sun web site which suggested putting dt_socket.dll in the winnt/system32 directory, but this doesn't work.

            I'm running jdk1.3.1_01 and C:\jdk1.3.1_01\bin is at the beginning of my path.

            Any suggestions?
            • 3. Re: Solution to: Transport dt_socket failed to initialize
              807597
              I copied those files to my System32 and it didn't do a single thing! I still get this error:
              Socket transport failed to init.
              Transport dt_socket failed to initialize, rc = -1.
              FATAL ERROR in native method: No transports initialized

              I am using port 1151. Any useful suggestions?
              • 4. Re: Solution to: Transport dt_socket failed to initialize
                807597
                Make sure that "<java_home>\bin" is in your path.

                You dont need to copy the dll anywhere as it will be found along the path.
                • 5. Re: Solution to: Transport dt_socket failed to initialize
                  807597
                  Thats not going to help as System32 was already in the path and it did not work. Besides, I do have <JAVA_HOME> /bin in my path. Is there a conflict with Forte?
                  • 6. Re: Solution to: Transport dt_socket failed to initialize
                    807597
                    I was also getting the dt_socket error and after approx 2 hours of digging have got it working.

                    - I added .\jre\bin to my PATH : Still got error.
                    - Copied dt_socket.dll to my system32 folder : All okay.

                    Am running 1.3.1.02
                    • 7. Re: Solution to: Transport dt_socket failed to initialize
                      807597
                      have checked whether the dll is registered or not? It doesnt matter where the dll resides the only thing that matters is whether that dll is registered or not.

                      use regsvr. first uninstall it the install it

                      • 8. Re: Solution to: Transport dt_socket failed to initialize
                        807597
                        Hi,
                        I try to launch my debugee application with the following debugging parameters:

                        -Xdebug
                        -Xnoagent
                        -Djava.compiler=NONE
                        -Xrunjdwp:transport=dt_shmem,address=shared,suspend=n

                        Sadly, i have the folowing error:

                        Error accessing shared memory, rc = -1
                        Transport dt_shmem failed to initialize, rc = -1.
                        FATAL ERROR in native method: No transports initialized

                        I try the same command with dt_socket -> same error.

                        I use the jdk1.2.2 on a win XP platform. I have installed jpda and configue the path correctly.

                        Help please!!
                        Best regards
                        Guiguch
                        • 9. Re: Solution to: Transport dt_socket failed to initialize
                          807597
                          Hi,
                          I try to launch my debugee application with the following debugging parameters:

                          -Xdebug
                          -Xnoagent
                          -Djava.compiler=NONE
                          -Xrunjdwp:transport=dt_shmem,address=shared,suspend=n

                          Sadly, i have the folowing error:

                          Error accessing shared memory, rc = -1
                          Transport dt_shmem failed to initialize, rc = -1.
                          FATAL ERROR in native method: No transports initialized

                          I try the same command with dt_socket -> same error.

                          I use the jdk1.2.2 on a win XP platform. I have installed jpda and configue the path correctly.

                          Help please!!
                          Best regards
                          Guiguch
                          • 10. Re: Solution to: Transport dt_socket failed to initialize
                            807597
                            Hi,
                            I try to launch my debugee application with the following debugging parameters:

                            -Xdebug
                            -Xnoagent
                            -Djava.compiler=NONE
                            -Xrunjdwp:transport=dt_shmem,address=shared,suspend=n

                            Sadly, i have the folowing error:

                            Error accessing shared memory, rc = -1
                            Transport dt_shmem failed to initialize, rc = -1.
                            FATAL ERROR in native method: No transports initialized

                            I try the same command with dt_socket -> same error.

                            I use the jdk1.2.2 on a win XP platform. I have installed jpda and configue the path correctly.

                            Help please!!
                            Best regards
                            Guiguch
                            • 11. Re: Solution to: Transport dt_socket failed to initialize
                              807597
                              Error accessing shared memory, rc = -1
                              Transport dt_shmem failed to initialize, rc = -1.
                              FATAL ERROR in native method: No transports
                              initialized

                              I try the same command with dt_socket -> same error.

                              I use the jdk1.2.2 on a win XP platform. I have
                              installed jpda and configue the path correctly.

                              Help please!!
                              The runtime can't find the JPDA libraries dt_shmem.dll
                              and dt_socket.dll. Please double-check to be sure
                              they are in a directory that is on your PATH.

                              Bug 4420211 addressed this in 1.4.0:
                              http://developer.java.sun.com/developer/bugParade/bugs/4420211.html

                              As a side note, jdk1.2.2 is a very old release
                              of the technology. I suggest you download and
                              install 1.4.1 from this web page:
                              http://java.sun.com/j2se/1.4.1/

                              For information on Enhancements and Changes in the J2SE 1.4.1
                              Platform, as well as bugs fixed in 1.4.1, refer to:

                              http://java.sun.com/j2se/1.4.1/docs/index.html
                              • 12. Re: Solution to: Transport dt_socket failed to initialize
                                807597
                                I have the same error. I am using 1.3.1_07 on win2K. It was not happening before. Its not happening on my laptop. And I never put these things in the path I dont think. Whats up?
                                • 13. Re: Solution to: Transport dt_socket failed to initialize
                                  807597
                                  blah, I added

                                  C:\jdk1.3.1_07\bin

                                  to my path and now its working...go figure/.
                                  • 14. Re: Solution to: Transport dt_socket failed to initialize
                                    807597
                                    Hi !

                                    Using Linux / JDK_141

                                    I've got the same problem when trying to launch Tomcat Server in debug mode from Eclipse 2.1 whith sysdeo 2.1 plugin.

                                    If someone knows, please help !
                                    1 2 Previous Next