Getting error in Setup#2 :: Cannot evaluate because of org.eclipse.debug.core.DebugException: Attempt to access illegal array index: 0

Cannot evaluate because of org.eclipse.debug.core.DebugException: Attempt to access illegal array index: 0.

You have to pass argument while running the code. Maybe that’s why it is giving this error.

Can anyone reply. I have the same issue. not able to find the value of args[0]

How are you running the test? @badshah6

first of all start running the test than write this args[0] there

by doing right click on PortfolioManagerApplication.java and i clicked on debug and run both.

In module 1, Setup #2 , there are instructions on how to do it. Refer to those instructions.

2 Likes

thanks got it. Really appreciate your reply. was stuck in this for so many hours.

1 Like

@badshah6 Happy to help :slight_smile: . Could you mark your question as solved so that others know it has been solved.

@ankushshetkar16 i did not post this question. so i cant mark it solved.

1 Like

Closing this topic as your issue has been resolved by the community. If not Kindly un-mark the accepted solution to re-open the topic or feel free to create a new topic and post a link to this topic as a reference.