Exercise 4: Exceptions
When the performance problem Adding Existing Movie to the Shopping Car is activated, an exception is thrown when a user tries to add a movie to his shopping card that already exists there, instead of just increasing the quantity of wanted movie in the shopping card. The user does not see the exception, but he can notice that the amount of movies in his shopping card stayed the same without any explanation.
This example can show how you can find exceptions with inspectIT that have been thrown in the DVD store.
What do you need to do?
- Activate the performance problem Adding Existing Movie to the Shopping Card if you did not do it already
- Go to Shop page
- Add any movie to the shopping card
- Go again to Shop page
- Add same movie to the shopping card
- Analyze the results of monitoring with the inspectIT User interface
Task
What exception was thrown? Can you find the service method where exception was thrown? Can you find out the exception message and stack trace?
Solution hints:
- Use the Exception views of the inspectIT UI
- Can you see where exactly the Exception is thrown? You