| Summary: | [webadmin] in dev mode create new host fails | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Tomas Jelinek <tjelinek> |
| Component: | ovirt-engine-webadmin | Assignee: | Tomas Jelinek <tjelinek> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | ecohen, iheim, vszocs |
| Target Milestone: | --- | ||
| Target Release: | 3.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-09 08:05:52 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Tomas Jelinek
2011-11-11 14:39:56 UTC
The reason why it fails for the first time and not for the second one is as follows: When the HostnameOrIp annotation is first time inspected, the sun.reflect.annotation.AnnotationType.getInstance is called which tries to get the AnnotationType from sun.misc.SharedSecrets. If it is not there yet, the new one is about to be created. The creation is as follows: - first the methods are processed - than the result is set to the SharedSecrets - than the annotations of this annotation are processed The last step fails, because of the class not found When the class is second time inspected, the SharedSecrets already contains the annotation, so the logic which fails on class not found is not executed. For me the following solution works: the gwt-extension contains the HostnameOrIp class which overrides the one implemented in common and removes the payload() method for the client. When also the @Constraint(validatedBy = HostnameOrIPConstraint.class) is removed (which does not make sense to have it there on the front-end), the creation of the new host works fine for me. closing ON_QA bugs as oVirt 3.1 was released: http://www.ovirt.org/get-ovirt/ |