Bug 616400

Summary: Upgrade JON2.3.1 to JON2.4 with Oracle gives IllegalArgumentException: Unknown name value for enum class org.rhq.core.domain.alert.notification.ResultState: DEFERRED_EMAIL
Product: [Other] RHQ Project Reporter: Rajan Timaniya <rtimaniy>
Component: DatabaseAssignee: Joseph Marques <jmarques>
Status: CLOSED CURRENTRELEASE QA Contact: Rajan Timaniya <rtimaniy>
Severity: high Docs Contact:
Priority: urgent    
Version: 3.0.0CC: cwelton, jmarques
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:46:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 601949, 614432    
Attachments:
Description Flags
server log
none
screenshot none

Description Rajan Timaniya 2010-07-20 11:11:04 UTC
Created attachment 433131 [details]
server log

Description of problem:
Upgrade JON2.3.1 to JON2.4 with Oracle gives IllegalArgumentException: Unknown name value for enum class org.rhq.core.domain.alert.notification.ResultState: DEFERRED_EMAIL

Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: Unknown name value for enum class org.rhq.core.domain.alert.notification.ResultState: DEFERRED_EMAIL

Version-Release number of selected component (if applicable):
version: 2.4.0.GA_QA  (build #70)
build number: 10856:52c274a

How reproducible:
Always

Steps to Reproduce:
1) Install JON 2.3.1 and agent with Oracle 10g
2) Perform operations on JON 2.3.1
 (i) Create alerts:
 (a) Name:   Platform_alert_test    [Type: Linux (Platform)]
         If Condition:    Free Memory > 0.1B
         Dampening Rule:  Each time condition set is true
         Action Filters:  Disable alert until re-enabled manually or by    
         recovery alert: false
         Notify Other Recipients: Eamil - rtimaniy

        (b)Name:   JBOSSAS_JVM_ALERT [Type: JBoss AS JVM (Server)]
         If Condition:    Availability goes DOWN
         Dampening Rule:  Each time condition set is true
         Action Filters:  Disable alert until re-enabled manually or by
recovery 
         alert : false 
         Notify Other Recipients: Eamil - rtimaniy

        (c)Name:RHQ_Agent_JVM_Active_Threads_Alert  [Type: RHQ Agent(Server)]
         If Condition:    JVM Active Threads > -1.0
         Dampening Rule:  Each time condition set is true
         Action Filters:  Disable alert until re-enabled manually or by
recovery 
         alert: false 
         Notify Other Recipients: Eamil - rtimaniy
         Notify Roles (All Resources Role, Super User Role)
         Notify JON Users  (username - rhqadmin)

 (ii) Create groups (Mix, Compatible, Group defination)
 (iii)Content repository syncronization (for JBoss Patch)
 (iv) Create Roles and Users
 (v) Change INVENTORY -> CONNECTION of JBoss AS4 
 (vi)Change configuration values of 'RHQ Agent' and create 'History'
 (vii)Perform LDAP settings
 (viii)Create 'SCHEDULES' for 'View Process List' on platform
 (ix) Enabled JBossAS events
5) Stop/Down all JON2.3.1 servers
6) Keep all agents running
7) Upgrade one server from JON2.3.1 to JON 2.4 (build #70) (with same database
-Oracle 10g)
8) Provide JON license xml
9) Log-in to JON 2.4 (build #70)
10) Please refer server log

  
Actual results:
Upgrade JON2.3.1 to JON2.4 with Oracle gives IllegalArgumentException: Unknown name value for enum class org.rhq.core.domain.alert.notification.ResultState: DEFERRED_EMAIL

Expected results:
Upgrade JON2.3.1 to JON2.4 should not give error.

Additional info:
Please refer attached screenshot and server log.

Comment 1 Rajan Timaniya 2010-07-20 11:11:53 UTC
Created attachment 433132 [details]
screenshot

Comment 2 Joseph Marques 2010-07-20 13:32:38 UTC
commit c487acda658988f3016e2e4ec71ec03261bf50fd
Author: Joseph Marques <joseph>
Date:   Tue Jul 20 09:30:50 2010 -0400

    BZ-616400: fix alert notification log custom upgrade task

Comment 3 Corey Welton 2010-07-21 05:14:56 UTC
I /think/ this is fixed now, but I want rajan, et al, to double-check

Comment 4 Rajan Timaniya 2010-07-21 12:43:50 UTC
Verified on JON2.4 (build #71) version: 2.4.0.GA_QA build number: 10860:2ca5643

Upgrade JON2.3.1 to JON2.4 (build #71) without error - IllegalArgumentException: Unknown name value for enum class org.rhq.core.domain.alert.notification.ResultState: DEFERRED_EMAIL

Comment 5 Corey Welton 2010-08-12 16:46:28 UTC
Mass-closure of verified bugs against JON.