StefanSchubert / sabi

Seawater Aquarium Business Intelligence (sabi) aims to gain knowledge from aquarists for aquarists based on collected seawater parameters.
https://sabi-project.net
MIT License
4 stars 3 forks source link

Server error on Second measurement #72

Closed StefanSchubert closed 3 years ago

StefanSchubert commented 3 years ago

Describe the bug Message of internal Server error appears.

To Reproduce Steps to reproduce the behavior:

  1. Take measurement
  2. Click on Clear Form
  3. Take second measurement
  4. See error

Expected behavior just working

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Webservers log shows:

Apr 11 11:50:54 Shangri-La sabi-webclient.jar[12095]: SLF4J: Failed toString() invocation on an object of type [de.bluewhale.sabi.model.MeasurementTo]
Apr 11 11:50:54 Shangri-La sabi-webclient.jar[12095]: Reported exception:
Apr 11 11:50:54 Shangri-La sabi-webclient.jar[12095]: java.lang.NullPointerException
Apr 11 11:50:54 Shangri-La sabi-webclient.jar[12095]: #011at de.bluewhale.sabi.model.MeasurementTo.hashCode(MeasurementTo.java:95)
...
Apr 11 11:50:54 Shangri-La sabi-webclient.jar[12095]: 11-04-2021 11:50:54.729 #033[35m[http-nio-8088-exec-4]#033[0;39m #033[1;31mERROR#033[0;39m de.bluewhale.sabi.webclient.controller.MeasurementListView.save - Couldn't save measurement [FAILED toString()] {}
Apr 11 11:50:54 Shangri-La sabi-webclient.jar[12095]: de.bluewhale.sabi.exception.BusinessException: null
StefanSchubert commented 3 years ago

In addition to fix: The user does not have a stacktrace. But the message may tell about denoting the date/time to support log analytics.