Bug 586068
Summary: | Overview->Subsystem->OOB view is broken | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Heiko W. Rupp <hrupp> |
Component: | Core UI | Assignee: | John Sanda <jsanda> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Corey Welton <cwelton> |
Severity: | medium | Docs Contact: | |
Priority: | urgent | ||
Version: | 3.0.0 | CC: | jmarques |
Target Milestone: | --- | Keywords: | Reopened |
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:50:12 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: | 591531 |
Description
Heiko W. Rupp
2010-04-26 18:20:08 UTC
Greg, can you see whats going on here and if necessary turn back on the old jsf OOB subsystem view Charles, the exception is happening *on* the JSF-based subsystem view. One of the OOB columns uses a class called MeasurementConverterClient in core/domain, which references a GWT client class. In JSF-land, all of the page render logic is executed server-side, and then serialized out to the client as HTML. The GWT error is very accurate: "UnsupportedOperationException ERROR: GWT.create() is only usable in client code! It cannot be called, for example, from server code. If you are running a unit test, check that your test case extends GWTTestCase and that GWT.create() is not called from within an initializer or constructor." I'm guessing that Greg used the NumberFormat in GWT because the standard guy in javax.text was not GWT-compile-able. John can you work on this, pinging Greg as necessary. This must have been resolved since it was initially reported. I am not able to reproduce the error reported. I am able to bring up all of the subsystem views and perform filtering/searching. Removed GWT dependency from MeasurementOOBComposite. commit hash: aeebeea6b406adbcfbb9fa246df7aa56564eb5c5 It has been pointed out by Joseph Marques that my solution is problematic because it uses a formatter from java.text, and classes in java.text cannot be used in GWT code. The class in question, MeasurementOOBComposite, is currently not used in the GWT UI, but it eventually will be once the JSF view(s) where it is used are ported. In light of this, the formatting code needs to be moved to a layer outside of the core/domain module since those classes are used in both GWT and non-GWT code. In addition to the code changes, I am going to add checkstyle to the build so that we can flag usage of "restricted" classes/packages. I am moving this back to ASSIGNED until these changes are complete. Moved the java.text formatting dependencies out of core/domain and into server/jar. The SLSB methods that return the MeasurementOOBComposite objects now do the formatting and pass the results to the MeasurementOOBComposite objects. The GWT text formatting dependencies have been moved into the coregui module. commit hash: 797f13a4df3a2c1798649557c9911682e3e0b9b8 QA Verified. Mass-closure of verified bugs against JON. |