cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:StackTrace

Former Member
0 Kudos

Hi,

When i run my Application I get an Exception

"com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Error connecting using JCO.Client: null"

Now i need to explore more on this type of Exception's ...

So i need something like a Stack Trace.

What my question is ,how can i implement Stack Trace feature in my application.

can anyone suggest me a piece of code on how i can implement Stack Trace functionality.

Thanks and regards,

Chandrashekar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Chandrashekar,

Use this in ur catch block

try

{

}

catch(Exception e)

{

StackTraceElement[] trace = e.getStackTrace();

for(int a = 0; a< trace.length;a++)

{

Print ur trace here as trace[a]; using message manager

}

}

regards

Sumit