cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to launch debugger from NWDS. can not connect to the server..

Former Member
0 Kudos
204

Hi Experts,

I was trying to debug my Java DC's. Accessing the NWDI track for Utility customization. I am getting the error when launching the debugger.

Put the server and sdm into the debug mode.

1) In NWDS-> Debug mode-> trying to debug as ->remote java application---is this correct?? or debug as J2ee application or runtime workbench

2) Debug as -Remote java application -> under connect given the correct Host and debug port 50221 of the server, but when i click on the debug button then status bar is comingstablishing the connection..................and hang here. not able to connect to the server.. any idea??

3) i waited lon hour but no luck... Where i can check log of this??

Please suggest me on this.

Regards,

Narpal

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I am getting this exact same situation.

I have tried using the jdb command but when I enter the cursor moves to the next line and blinks forever.

Not sure whoat to look vor next.

If you have a solution please let me know.

Thanks

Rodney

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Narpal,

1.

1.4.2_09 is a very old JDK for a 700 EHP1 SP7 NWDS.

I kindly ask you to apply a newer one and try to reproduce the problem with that one.

2.

You may also try the following command in order to be sure that it is

possible to connect with debugger to the Engine.

jdb -connect com.sun.jdi.SocketAttach:hostname=<your server hostname>,port=5<instance number>21

You find the jdb executable in <your jdk installation>/bin folder.

Please copy paste the output of this command here.

I believe replacing the JDK can help to resolve the problem.

Best Regards,

Ervin

Former Member
0 Kudos

Hi Ervin,

1) I have upgraded to the JDK 1.6.0_20 but still no luck...

2) i have given the command line --C:\Program Files\Java\jdk1.6.0_20\bin>jdb -connect com.sun.jdi.SocketAttach:host

name=epqas.ndpl.com,port=50221

java.net.ConnectException: Connection refused: connect

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

at java.net.Socket.connect(Socket.java:529)

at com.sun.tools.jdi.SocketTransportService.attach(SocketTransportServic

e.java:204)

at com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingCo

nnector.java:98)

at com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConn

ector.java:72)

at com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnectio

n.java:358)

at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:1

68)

at com.sun.tools.example.debug.tty.Env.init(Env.java:64)

at com.sun.tools.example.debug.tty.TTY.main(TTY.java:1010)

Fatal error:

Unable to attach to target VM.

When i have used the port 50237 then there is not out put--- just curser is blinking...on next new line(seems hang or trying to connect). i used 50237 because we have changed the port from 50221 to 50237.. i can see debug port 50237 in J2ee engine view in NWDS.

Regards,

Narpal

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Narpal,

do not use JDK 1.6 because it is meant for higher releases.

Your NWDS is:

NWDS version Version: 7.01.07

I suggest you to take the currently highest JDK1.4 version and try again.

You find JDK1.4.2_19 here:

http://www.oracle.com/technetwork/java/archive-139210.html

-->

http://java.sun.com/products/archive/j2se/1.4.2_19/index.html

Thank you!

Best Regards,

Ervin

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Narpal,

right after finishing the debuggin, there's a red icon in the toolbar to disconnect the previous debug session, and there's also a button called 'remove all terminated launches'. Could you please confirm that you cannot do debuggin for the second time if you ensure before that you have cleaned up the debug view using these buttons?

Thank you!

Best Regards,

Ervin

Former Member
0 Kudos

Hi ,

Yes we are using this option suggested by you, but still we are not able to debug. For Remote java application we are not able to debug even first time.

wea re getting this error. "Failed to connect to remote VM. Connection refused."

Regards,

Narpal

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Narpal,

can you please tell me the JDK version used by your NWDS?

Thank you!

Best Regards,

Ervin

Former Member
0 Kudos

j2sdk1.4.2_09

NWDS version Version: 7.01.07

System Information:- all component

sap.com ADSSAP 7.01 SP4 (1000.7.01.4.0.20090417021200) SAP AG SAP AG 20100202120252

sap.com BASETABLES 7.01 SP4 (1000.7.01.4.0.20090417015900) SAP AG SAP AG 20100202114153

sap.com BI-BASE-S 7.00 SP15 (1000.7.00.15.0.20080218050012) SAP AG SAP AG 20090821165018

sap.com BI-IBC 7.00 SP15 (1000.7.00.15.0.20080218050017) SAP AG SAP AG 20090821165029

sap.com BI-REPPLAN 7.00 SP15 (1000.7.00.15.0.20080218054920) SAP AG MAIN_APL70VAL_C 20090821165347

sap.com BI-WDALV 7.00 SP15 (1000.7.00.15.0.20080218054927) SAP AG MAIN_APL70VAL_C 20090821165105

sap.com BI_MMR 7.01 SP4 (1000.7.01.4.0.20090417021807) SAP AG SAP AG 20100202120335

sap.com BI_UDI 7.01 SP4 (1000.7.01.4.0.20090416221700) SAP AG SAP AG 20100202121824

sap.com BIWEBAPP 7.00 SP15 (1000.7.00.15.0.20080218050048) SAP AG SAP AG 20090821163934

sap.com BP_BIADMIN 60.1 SP5 (1000.60.1.5.0.20060118134900) SAP AG SAP AG 20100202131605

sap.com BP_DMSCONN 1.0 SP1 (1000.1.0.1.6.20080320073018) SAP AG SAP AG 20090821165638

sap.com BP_ERP4CSP 60.2 SP0 (1000.60.2.0.0.20041024061259) SAP AG SAP AG 20090821165644

sap.com BP_ERP4ESS 60.2 SPnull (1000.60.2..0.20041012014145) SAP AG SAP AG 20090713133932

sap.com BP_ERP5ASS 1.0 SP14 (1000.1.0.14.0.20081002055226) SAP AG MAIN_ERP05VAL_C 20090821165650

sap.com BP_ERP5BUA 1.0 SP14 (1000.1.0.14.0.20081002055211) SAP AG MAIN_ERP05VAL_C 20090821165707

sap.com BP_ERP5BUY 1.0 SP14 (1000.1.0.14.0.20081002055212) SAP AG MAIN_ERP05VAL_C 20090821165713

sap.com BP_ERP5COM 1.0 SP14 (1000.1.0.14.0.20081002055216) SAP AG MAIN_ERP05VAL_C 20090821165736

sap.com BP_ERP5DCO 1.0 SP14 (1000.1.0.14.0.20081002055213) SAP AG MAIN_ERP05VAL_C 20090821165742

sap.com BP_ERP5ESS 1.0 SP14 (1000.1.0.14.0.20081002055228) SAP AG MAIN_ERP05VAL_C 20090821165754

sap.com BP_ERP5HER 1.0 SP14 (1000.1.0.14.0.20081002055208) SAP AG MAIN_ERP05VAL_C 20090821165800

sap.com BP_ERP5HRA 1.0 SP14 (1000.1.0.14.0.20081002055230) SAP AG MAIN_ERP05VAL_C 20090821165812

sap.com BP_ERP5INV 1.0 SP14 (1000.1.0.14.0.20081002055217) SAP AG MAIN_ERP05VAL_C 20090821165818

sap.com BP_ERP5MSS 1.0 SP14 (1000.1.0.14.0.20081002055224) SAP AG MAIN_ERP05VAL_C 20090821165836

sap.com BP_ERP5MTC 1.0 SP14 (1000.1.0.14.0.20081002055223) SAP AG MAIN_ERP05VAL_C 20090821165842

sap.com BP_ERP5PLA 1.0 SP14 (1000.1.0.14.0.20081002055219) SAP AG MAIN_ERP05VAL_C 20090821165848

sap.com BP_ERP5PRS 1.0 SP14 (1000.1.0.14.0.20081002055214) SAP AG MAIN_ERP05VAL_C 20090821165854

sap.com BP_ERP5PSS 1.0 SP14 (1000.1.0.14.0.20081002055210) SAP AG MAIN_ERP05VAL_C 20090821165901

sap.com BP_ERP5QIN 1.0 SP14 (1000.1.0.14.0.20081002055229) SAP AG MAIN_ERP05VAL_C 20090821165907

sap.com BP_ERP5SAL 1.0 SP14 (1000.1.0.14.0.20081002055209) SAP AG MAIN_ERP05VAL_C 20090821165913

sap.com BP_ERP5SUP 1.0 SP14 (1000.1.0.14.0.20081002055221) SAP AG MAIN_ERP05VAL_C 20090821165919

sap.com BP_RETAIL 60.1 SP0 (1000.60.1.0.0.20051020154859) SAP AG SAP AG 20090821165926

sap.com BPCRMAPP 700 SP4 (1000.700.0.4.0.20090818091707) SAP AG MAIN_CRM7AVAL_C 20100310151827

sap.com BPCRMFND 700 SP4 (1000.700.0.4.0.20090818091708) SAP AG MAIN_CRM7AVAL_C 20100310152521

sap.com CAF 7.01 SP4 (1000.7.01.4.0.20090417194106) SAP AG MAIN_NW701P04_C 20100202122518

sap.com CAF-KM 7.01 SP4 (1000.7.01.4.0.20090417191616) SAP AG MAIN_NW701P04_C 20100202133931

sap.com CAF-UM 7.01 SP4 (1000.7.01.4.0.20090417194111) SAP AG MAIN_NW701P04_C 20100202120442

sap.com CORE-TOOLS 7.01 SP4 (1000.7.01.4.0.20090417021948) SAP AG SAP AG 20100202114207

sap.com CRMAPP 700 SP4 (1000.700.0.4.0.20090825090545) SAP AG MAIN_CRM7AVAL_C 20100310152617

sap.com CRMFND 700 SP4 (1000.700.0.4.0.20090825090544) SAP AG MAIN_CRM7AVAL_C 20100310152630

sap.com DI_CBS 7.01 SP4 (1000.7.01.4.0.20090417193047) SAP AG MAIN_NW701P04_C 20100310152719

sap.com DI_CMS 7.01 SP4 (1000.7.01.4.2.20091006155357) SAP AG MAIN_NW701P04_C 20100310152907

sap.com DI_DTR 7.01 SP4 (1000.7.01.4.2.20090811145328) SAP AG MAIN_NW701P04_C 20100310152934

sap.com EP-PSERV 7.01 SP4 (1000.7.01.4.1.20090616101311) SAP AG SAP AG 20100202131757

sap.com EP-WDC 7.01 SP4 (1000.7.01.4.0.20090422175006) SAP AG SAP AG 20100202131955

sap.com EPBC 7.01 SP4 (1000.7.01.4.0.20090422174528) SAP AG SAP AG 20100202120606

sap.com EPBC2 7.01 SP4 (1000.7.01.4.0.20090422174557) SAP AG SAP AG 20100202132011

sap.com IS-HER-CSS 600 SP14 (1000.600.0.14.0.20081002055225) SAP AG MAIN_ERP05VAL_C 20090821172953

sap.com JLOGVIEW 7.01 SP4 (1000.7.01.4.0.20090417020000) SAP AG SAP AG 20100202114233

sap.com JSPM 7.01 SP4 (1000.7.01.4.3.20091023083200) SAP AG SAP AG 20100201163052

sap.com KM-KW_JIKS 7.01 SP4 (1000.7.01.4.0.20090514115300) SAP AG SAP AG 20100202120648

sap.com KMC-BC 7.01 SP4 (1000.7.01.4.0.20090515120600) SAP AG SAP AG 20100202132055

sap.com KMC-CM 7.01 SP4 (1000.7.01.4.0.20090422175232) SAP AG SAP AG 20100202132140

sap.com KMC-COLL 7.01 SP4 (1000.7.01.4.0.20090422175304) SAP AG SAP AG 20100202132226

sap.com LM-PORTAL 7.01 SP4 (1000.7.01.4.0.20090417192118) SAP AG MAIN_NW701P04_C 20100202132250

sap.com LM-TOOLS 7.01 SP4 (1000.7.01.4.1.20090616171437) SAP AG MAIN_NW701P04_C 20100202123802

sap.com NET-PDK 7.01 SP4 (1000.7.01.4.0.20090422150500) SAP AG SAP AG 20100202131250

sap.com RTC 7.01 SP4 (1000.7.01.4.0.20090422172100) SAP AG SAP AG 20100202131254

sap.com RTC-STREAM 7.01 SP4 (1000.7.01.4.0.20090422172100) SAP AG SAP AG 20100202132302

sap.com SAP-CRMAPP 700 SP4 (1000.700.0.4.7.20091130065746) SAP AG MAIN_CRM7APAT_C 20100310153434

sap.com SAP-CRMDIC 7.0 SP6 (1000.7.0.6.9.20100614105410) SAP AG MAIN_CRM7APAT_C 20100616134734

sap.com SAP-CRMJAV 700 SP4 (1000.700.0.4.7.20091130065941) SAP AG MAIN_CRM7APAT_C 20100310150901

sap.com SAP-CRMWEB 700 SP4 (1000.700.0.4.7.20091130070034) SAP AG MAIN_CRM7APAT_C 20100310150902

sap.com SAP-EU 7.01 SP4 (1000.7.01.4.0.20090417192301) SAP AG MAIN_NW701P04_C 20100202133733

sap.com SAP-JEE 7.01 SP4 (1000.7.01.4.1.20090612152648) SAP AG SAP AG 20100202114313

sap.com SAP-JEECOR 7.01 SP4 (1000.7.01.4.0.20090417015900) SAP AG SAP AG 20100202114512

sap.com SAP-SHRAPP 700 SP4 (1000.700.0.4.7.20091130070232) SAP AG MAIN_CRM7APAT_C 20100310154050

sap.com SAP-SHRJAV 700 SP4 (1000.700.0.4.7.20091130070435) SAP AG MAIN_CRM7APAT_C 20100310154104

sap.com SAP-SHRWEB 700 SP4 (1000.700.0.4.7.20091130072612) SAP AG MAIN_CRM7APAT_C 20100310150903

sap.com SAP_ASR 600 SP14 (1000.600.0.14.0.20081002055222) SAP AG MAIN_ERP05VAL_C 20090821173122

sap.com SAP_ESS 600 SP14 (1000.600.0.14.2.20090123104651) SAP AG MAIN_ERP05PAT_C 20090821182154

sap.com SAP_JTECHF 7.01 SP4 (1000.7.01.4.2.20090612144700) SAP AG SAP AG 20100202114604

sap.com SAP_JTECHS 7.01 SP4 (1000.7.01.4.2.20090612152905) SAP AG SAP AG 20100202121533

sap.com SAP_MSS 600 SP14 (1000.600.0.14.1.20081127041351) SAP AG MAIN_ERP05PAT_C 20090821183250

sap.com SAP_PSS 600 SP14 (1000.600.0.14.0.20081002055215) SAP AG MAIN_ERP05VAL_C 20090821183445

sap.com SAPPCUI_GP 600 SP14 (1000.600.0.14.0.20081002055220) SAP AG MAIN_ERP05VAL_C 20090821172941

sap.com SWLIFECYCL 7.01 SP4 (1000.7.01.4.0.20090511115334) SAP AG MAIN_NW701P04_C 20100202132438

sap.com UMEADMIN 7.01 SP4 (1000.7.01.4.0.20090417195012) SAP AG MAIN_NW701P04_C 20100202123915

sap.com UWLJWF 7.01 SP4 (1000.7.01.4.0.20090422175453) SAP AG SAP AG 20100202132548

sap.com VCBASE 7.01 SP4 (1000.7.01.4.0.20090422175457) SAP AG SAP AG 20100202134026

sap.com VCFLEX 7.01 SP4 (1000.7.01.4.0.20090422175527) SAP AG SAP AG 20100202133936

sap.com VCFRAMEWORK 7.01 SP4 (1000.7.01.4.0.20090422175533) SAP AG SAP AG 20100202133952

sap.com VCKITBI 7.00 SP15 (1000.7.00.15.0.20080218050301) SAP AG SAP AG 20090821190620

sap.com VCKITGP 7.01 SP4 (1000.7.01.4.0.20090422175534) SAP AG SAP AG 20100202134031

sap.com VCKITXX 7.01 SP4 (1000.7.01.4.0.20090422175534) SAP AG SAP AG 20100202134037

sap.com WDEXTENSIONS 7.01 SP4 (1000.7.01.4.0.20090417192441) SAP AG MAIN_NW701P04_C 20100202134316

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Narpal,

please have a look at the note:

#952795 - Central note for debugging J2EE Engine

(http://service.sap.com/sap/support/notes/952795)

This also includes some screenshot attachments how to set up the debugging.

Further, please ensure that the port 50221 is available. For this you can use the command "netstat -a" (the usage can be slightly different depending on the OS you are, but you can use the help of this command if you are not familiar with it).

Best Regards,

Ervin

Former Member
0 Kudos

Hi,

I have applyed the note suggested by you.. seems that from server side every thing is fine. somewhere probs is with NWDS side. Because i have created one webdynpro java project -with just test application as testaap and blank component(have ntot written any code onle default view with default taxtview in that). I have not put any bebug point in this. When i tryed to debig this.. it's work fine.. i was able to manage the SDM password screen and after giving the SDM user ID password, it deployed successfully.

When i have created one taxt box and one button in this program and put 1-2 debug point then its not working.. hang after clicking on the Debug button. Seems that first time when i am debugging then working fine but after that giving error second time.

Regards,

Narpal