Accenture / spring-petclinic

A sample Spring-based application
4 stars 31 forks source link

As an user, I am not able to add new Owners #6

Open deors opened 7 years ago

deors commented 7 years ago

When I complete the Add Owner form and submit it (Add Owner button), an error occurs: 'Something happened...".

deors commented 7 years ago

This is an excerpt from Pet Clinic log when the error is thrown. NPE, no more clues. We need to debug Pet Clinic and check what is happening.

Hibernate: select visits0_.pet_id as pet_id4_1_0_, visits0_.id as id1_6_0_, visits0_.id as id1_6_1_, visits0_.visit_date as visit_da2_6_1_, visits0_.description as descript3_6_1_, visits0_.pet_id as pet_id4_6_1_ from visits visits0_ where visits0_.pet_id=?                                                                                                        
Hibernate: select visits0_.pet_id as pet_id4_1_0_, visits0_.id as id1_6_0_, visits0_.id as id1_6_1_, visits0_.visit_date as visit_da2_6_1_, visits0_.description as descript3_6_1_, visits0_.pet_id as pet_id4_6_1_ from visits visits0_ where visits0_.pet_id=?                                                                                                        
theme=bootstrap2                                                                                                        
WARN  warn - Handler execution resulted in exception: java.lang.NullPointerException