Bug 1147001 - Server log exception when saving a resource error
Summary: Server log exception when saving a resource error
Status: ON_QA
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ---
: RHQ 4.13
Assignee: Thomas Segismont
QA Contact: Mike Foley
URL:
Whiteboard:
Keywords:
Depends On:
Blocks: 1147002
TreeView+ depends on / blocked
 
Reported: 2014-09-26 14:19 UTC by Thomas Segismont
Modified: 2014-09-26 14:23 UTC (History)
1 user (show)

(edit)
Clone Of:
: 1147002 (view as bug list)
(edit)
Last Closed:


Attachments (Terms of Use)
Server log exception (41.41 KB, text/plain)
2014-09-26 14:19 UTC, Thomas Segismont
no flags Details

Description Thomas Segismont 2014-09-26 14:19:36 UTC
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.

How reproducible:
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

Actual results:
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.

Expected results:
A Postgres plugin error is logged on the agent indicating that the credentials are invalid.
No exception logged on the server

Comment 1 Thomas Segismont 2014-09-26 14:22:35 UTC
Fixed in master

commit 61dc694215ad0058fd1e94e39af69337899c19bb
Author: Thomas Segismont <tsegismo@redhat.com>
Date:   Fri Sep 26 16:20:44 2014 +0200
    
    Do not send resource error until the resource is synced with server


Note You need to log in before you can comment on or make changes to this bug.