Glassfish: HTTP 500 internal server error without any exceptions

I am currently working on a project that is being deployed on a Glassfish server. When there is an exception, I can easily see the stack trace in the Glassfish log. However, sometimes when there is a problem with something related to saving, for example relationship annotations or lazy loading, the response from the server is an error of the internal HTTP 500 server without any exceptions in any log file. The trick around, rough - making a mistake without any understanding of what is actually wrong takes a huge amount of time. Is there a way to enable verbose mode so that I can see this exception or is it a technical limitation of Glassfish?

+4
source share
1 answer

I know the question is a little older, but I recently ran into the same problems and shared my findings with you guys.

For me, the following two approaches have helped to identify my problem.

Exit SQL statements using persistence.xml:

<property name = "hibernate.show_sql" value = "true" /> // hibernate

<property name="eclipselink.logging.level" value="FINE"/> //eclipse link

Journal Prohibition Violation as described in the answer to the following question:

javax.validation.ConstraintViolationException

0
source

Source: https://habr.com/ru/post/1616864/


All Articles