Bug 616400 - 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
Summary: Upgrade JON2.3.1 to JON2.4 with Oracle gives IllegalArgumentException: Unknow...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Database
Version: 3.0.0
Hardware: All
OS: Linux
urgent
high
Target Milestone: ---
: ---
Assignee: Joseph Marques
QA Contact: Rajan Timaniya
URL:
Whiteboard:
Depends On:
Blocks: jon-sprint12-bugs 614432
TreeView+ depends on / blocked
 
Reported: 2010-07-20 11:11 UTC by Rajan Timaniya
Modified: 2010-08-12 16:46 UTC (History)
2 users (show)

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-12 16:46:28 UTC
Embargoed:


Attachments (Terms of Use)
server log (154.27 KB, text/x-log)
2010-07-20 11:11 UTC, Rajan Timaniya
no flags Details
screenshot (26.93 KB, image/png)
2010-07-20 11:11 UTC, Rajan Timaniya
no flags Details

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.


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