cancel
Showing results for 
Search instead for 
Did you mean: 

Debuggind MI application in NWDS

Former Member
0 Kudos

Hi everybody,

can you help me with debugging in NWDS?

Everytime I click Debug button I recieve error message (Internal error)...

Can you explain me necessary steps to start debugging of my application?

Thanks a lot.

Tomas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hello tomas,

is this an internal error shown in the browser or

an internal error specific to eclipse (i.e. NWDS)?

regards

jo

Former Member
0 Kudos

This is an Eclipse error message.

I try to start debugging this way:

1) choose run/debug

2) select my project under MI Application node from Configuration list

3) Click Debug button (all setting are initial)

then I can see a message: An internal error occured during "Launching".

In fact I'm not sure about steps I've done... are they correct? Shouldn't I change MI (Tomcat) configuration and start it manually?

Thanks for any help

Tomas

Former Member
0 Kudos

hi Tomas

Can you please tell me what settings you gave in the <b>MDK Plugin Preferences </b>?

Regards,

Ak.

Former Member
0 Kudos

MDK Plugin Preferences:

MI Home folder: C:\SAPmi

Java SDK tools.jar file: C:/J2sdk1.4.2_10/lit/tools.jar

MI server name: localhost

MI webapp root: me

MI webapp TCP port: 4444

Command line to launch browser: cmd /C start iexplore

AWT MI home folder - empty

MI logon user, password set

...and my setting in debug dialog are:

Main tab:

Project: GenericSyncTest

Main class: com.sap.ip.me.mdk.api.runtime.Start

Other options unchecked

Arguments tab:

Program arguments: "-home:C:\SAPmi" -trace -url:GENERICSYNCTEST/start -app:jsp

Working directory: Use default working directory - checked

JRE tab:

Project JRE checked

Classpath tab:

Bootstrap entries

- JRE_LIB - j2re1.4.2_10

User entries

- GenericSyncTest (default classpath)

Source tab - nothing

Enviroment tab - nothing

Common tab

Save as - local file checked

Standard input and output - Allocate console

Launch in background checked

Thats all...

If I uncheck "Launch in background" option at the last tab I have the same error but now with reason (there wasn't reason before): Error with debug UI; java.lang.reflect.InvocationTargetException

Thanks for help

Former Member
0 Kudos

hi Tomas

> MI Home folder: C:\SAPmi

Your MI Home folder should be your <b>MI Client JSP Version home folder.</b> it should have the TOMCAT engine in it.

is it so? please Confirm.

> MI logon user, password set

What user&password have you set in this?

Can you please send me the settings of your DEBUG tab in PREFENCES WINDOW?

Take a look at this Thread too.

Regards

ak.

Message was edited by: Arun Kumar Ravi

Former Member
0 Kudos

Tomas,

Please ignore my query on Debug preferences window. just confirm the other two alone.

Thanks

Ak.

Former Member
0 Kudos

Yes, directory C:\SAPmi contains MI Tomcat server and installed MI framework (webapps\me)

Username and password is the same I use to log into MI client and for replication (and it works correctly in MI client) and for administration (it is a testing system...

I'll look at tha link

Tomas

Former Member
0 Kudos

oh! your runtime environment is working fine then. i'll look for some other solution and get back to you.

Regards,

Ak.

Former Member
0 Kudos

hello tomas,

can you try setting the working directory path of your

debug configuration to your MI installation directory?

regards

jo

Former Member
0 Kudos

it doesn't work

whatever i set as a working directory, still have

java.lang.reflect.InvocationTargetException

exception

Former Member
0 Kudos

hi Tomas,

Can you give me the settings you have set in The <b>DEBUG TAB IN PREFERENCES WINDOW?</b>

Regards,

Ak.

Former Member
0 Kudos

-Java

--Debug

all options checked

Debugger timeout: 3000

Launch timeout: 20000

---Detail formaters

no items

---Logical structurec

Collection...

Composite...

Map...

Map$Entry...

---Step filtering

java.lang.ClassLoader checked

no Filter item checked

--Run/Debug

Reuse editor when... checked

Activate the workbench... checked

Activate the debug... checked

Open the associated perspective... Prompt

---Console

---External tools

---Launching

Build (if required) before launching checked

Save dirty editors before launching Prompt

Wait for ongoing build to complete before... Always

Remove terminated launches when a new launch... checked

Open the associated perspective when launch... Never

Launch in debug mode when workspace contains break... Never

Continue launch if project contains errors Prompt

Size of recently launched application list 10

--- String substitution ... nothing

--- View management

Debug checked

this is a complete list...

Former Member
0 Kudos

hi Tomas,

there is a similar error when you run SAP Download manager. i found it from SAP NOTES. it has the same exception. hope this solution helps.

<i>

Symptom

When trying to start the Java-based Download Manager, the loader displays the following error message:

"This application has Unexpectedly Quit"

When you click on "Details", the following error message is displayed:

java.lang.reflect.InvocationTargetException

Other terms

DownloadManager error start

Reason and Prerequisites

The loader is unable to find a Java run time environment on the machine where the Download Manager is installed.

<b>Solution

Install the proper Java run time environment.</b></i>

i found similar errors with same exceptions from the OSS Notes search. All of the notes tell you to Install appropriate java runtime environment.

<i>try to change the JRE. it might work.</i>

Hope this solves your problem.

Regards,

Ak.

PS: Don't forget my points if this helps.

Message was edited by: Arun Kumar Ravi

Former Member
0 Kudos

hello tomas,

please give me your NWDS version

for me to check it out.

regards

jo

Former Member
0 Kudos

hi,

what is the proper version?

I tried to change it to version 1.3.1 (as described in this document: http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/gettingstarted/introduction/J... )

but it doesn't work, the same error

What version of Java do you use?

How do you start debugging? Just by clicking on debug button?

Tomas

Former Member
0 Kudos

hi its:

Eclipse SDK

Version: 3.1.1

Build id: M20050929-0840

thanks

t

Former Member
0 Kudos

hello tomas,

MDK plugin is based on eclipse 2.1 plugin framework.

NWDS is based in 2.1 and is not available for 3.x

versions of eclipse. try using MDK on top of 2.1 eclipse

or use NWDS.

regards

jo

Former Member
0 Kudos

thank you everybody for helpful answers

it was a stupid mistake but I hope this will help others in the future

the result is - use NWDS rather than Eclipse + plugin

Answers (0)