Bug 882280 - 4.6 on as7: exception in server log
4.6 on as7: exception in server log
Status: CLOSED CURRENTRELEASE
Product: RHQ Project
Classification: Other
Component: Core Server (Show other bugs)
unspecified
Unspecified Unspecified
high Severity unspecified (vote)
: ---
: RHQ 4.6
Assigned To: John Mazzitelli
Mike Foley
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-30 10:07 EST by Heiko W. Rupp
Modified: 2013-09-03 10:45 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-03 10:45:16 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Heiko W. Rupp 2012-11-30 10:07:13 EST
[16:02:03] <pilhuhn>	 mazz, jshaughn  16:01:38,630 ERROR [org.rhq.enterprise.server.core.StartupBean] (EJB default - 9) Plugin scan failed. Cause: java.lang.ClassNotFoundException:org.rhq.enterprise.server.xmlschema.generated.serverplugin.perspective.PerspectivePluginDescriptorType from [Module "deployment.rhq.ear.rhq-enterprise-server-ejb3.jar:main" from Service Module Loader]
[16:02:11] <pilhuhn>	 Is that something known?
[16:02:33] <pilhuhn>	 (or is my local setup flawed ?)
[16:02:33] <mazz>	 pilhuhn: the perspective stuff has been deleted
[16:02:36] <mazz>	 you have a bad build
[16:03:38] <mazz>	 or... and I didn't think of this - the perspective plugin in the DB
[16:03:41] <mazz>	 hmmm
[16:03:48] <mazz>	 this might be a problem for upgrades
[16:03:52] <mazz>	 crap
[16:04:01] <mazz>	 need to think about this - but I'm on a conf call right now
[16:04:06] <mazz>	 can you write a BZ on this?
[16:04:20] <pilhuhn>	 yes
[16:04:25] <mazz>	 log the error and do a "select * from RHQ_PLUGIN" and post the content in the BZ



rhqdev=# select name,version from rhq_plugin;
              name               |    version     
---------------------------------+----------------
 alert-microblog                 | 4.6.0-SNAPSHOT
 script2                         | 4.6.0-SNAPSHOT
 pattern-generator               | 4.6.0-SNAPSHOT
 Twitter                         | 4.6.0-SNAPSHOT
 Virtualization                  | 4.6.0-SNAPSHOT
 NetworkServices                 | 4.6.0-SNAPSHOT
 Tomcat                          | 4.6.0-SNAPSHOT
 CorePerspective                 | 1.0
 JMX                             | 4.6.0-SNAPSHOT
 JBossAS5                        | 4.6.0-SNAPSHOT
 No-op                           | 4.6.0-SNAPSHOT
 RHQAgent                        | 4.6.0-SNAPSHOT
 Kickstart                       | 1.0
 mod_cluster                     | 4.6.0-SNAPSHOT
Comment 1 John Mazzitelli 2012-11-30 17:03:20 EST
OK, for upgrade scenarios, we need a dbupgrade step to purge the core perspective plugin from the RHQ_PLUGIN table. That is an obsolete plugin (and the entire plugin type has gone away).
Comment 2 John Mazzitelli 2012-11-30 17:08:31 EST
I believe this will fix it:

<!-- The perspective server plugin type has been removed - delete perspective plugin from DB -->
<schemaSpec version="2.128">
  <schema-directSQL>
    <statement>
      DELETE FROM RHQ_PLUGIN WHERE NAME = 'CorePerspective'
    </statement>
  </schema-directSQL>
</schemaSpec>
Comment 3 John Mazzitelli 2012-11-30 17:12:32 EST
committed in the rhq-on-as7 branch - this will be merged to master shortly
commit hash: dadcd3f

when this gets to master, QA just needs to test db upgrade normally from an old RHQ release (say, prior to the AS7 integration)
Comment 4 John Mazzitelli 2012-11-30 17:16:44 EST
git commit to master: 59514c1
Comment 5 Heiko W. Rupp 2013-09-03 10:45:16 EDT
Bulk closing of issues in old RHQ releases that are in production for a while now.

Please open a new issue when running into an issue.

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