Bug 1099621 - Serialization Exception when scheduling operation for resource with an alert definition
Summary: Serialization Exception when scheduling operation for resource with an alert ...
Keywords:
Status: CLOSED DUPLICATE of bug 1058318
Alias: None
Product: RHQ Project
Classification: Other
Component: Operations
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-20 18:52 UTC by Jay Shaughnessy
Modified: 2014-05-21 15:07 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-21 15:07:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Shaughnessy 2014-05-20 18:52:25 UTC
How reproducible: Always

Steps to Reproduce:
1. Create an alert definition on a resource.
   - For example, a abs threshold condition on a platform metric
2. Schedule an operation on the same resource.
   - For example, View process list on the platform

Actual results: Server-Side error:

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/coregui]] (http-/0.0.0.0:7080-7) org.rhq.coregui.CoreGUI OperationGWTService: An IncompatibleRemoteServiceException was thrown while processing this call.: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Attempt to deserialize an object of type class org.rhq.core.domain.alert.AlertCondition when an object of type class org.rhq.core.domain.alert.AlertDefinition is expected



Marking for 4.11 although I'm not sure yet whether it affects 4.11 but I think it might.  I'll correct later depending on what we find.

Comment 1 Jay Shaughnessy 2014-05-21 13:13:23 UTC
This may be a gwt 2.5.0 issue.  I rebuilt with gwt 2.4.0 and it things worked fine both in dev mode and in web mode.

The issue happens in 2.5.0 when the Resource being passed into scheduleResourceOperation has the previously created alert def hanging on it.  Which happens when you create the alert def and then schedule the op, in the same detail view.  

The workaround is to in some way refresh your detail view after the alert def creation and before the operation scheduling.

Comment 2 Jay Shaughnessy 2014-05-21 15:07:16 UTC
This was reported in a separate BZ under different conditions... closing as duplicate of Bug 1058318.

*** This bug has been marked as a duplicate of bug 1058318 ***


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