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?

  1. Activate the performance problem Adding Existing Movie to the Shopping Card if you did not do it already
  2. Go to Shop page
  3. Add any movie to the shopping card
  4. Go again to Shop page
  5. Add same movie to the shopping card
  6. 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