Created attachment 941583 [details]
Server log exception
Description of problem:
An exception is logged on the server:
HHH000437: Attempting to save one or more entities that have a non-nullable association with an unsaved transient entity.
It appears as soon as the agent is restarted, during resource activation.
Not 100% sure how to reproduce
Steps to Reproduce:
1.Setup RHQ server and agent environment on a machine with Postgres server running
2.In discovery queue, ignore Postgres resource
3.Wait for agent inventory to stabilize (couple of minutes)
4.Restart the agent
A Postgres plugin error is logged on the agent indicating that the credentials are invalid
The Hibernate HHH000437 issue message is logged on the server when the error is reported to the server.
A Postgres plugin error is logged on the agent indicating that the credentials are invalid.
No exception logged on the server
Fixed in master
Author: Thomas Segismont <firstname.lastname@example.org>
Date: Fri Sep 26 16:20:44 2014 +0200
Do not send resource error until the resource is synced with server