Bug 1105522
| Summary: | EAP 6.3 host controller reading the host.xml from 6.2 fails | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Tom Fonteyne <tfonteyn> |
| Component: | Domain Management | Assignee: | Tom Fonteyne <tfonteyn> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kremensky <pkremens> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 6.3.0 | CC: | emuckenh, kkhan, myarboro |
| Target Milestone: | ER8 | ||
| Target Release: | EAP 6.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-28 15:30:45 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Verified on EAP 6.3.0.ER8. |
Installed current build of 6.x (today) on two nodes. Previously had 2 nodes with 6.2, one of them configured to use a remote DC copy the host.xml from the 6.2 to the 6.3 host controller and start the 6.3 HC [Host Controller] 11:14:01,529 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010932: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration [Host Controller] at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at org.jboss.as.host.controller.HostControllerConfigurationPersister.load(HostControllerConfigurationPersister.java:185) [jboss-as-host-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:423) [jboss-as-host-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:254) [jboss-as-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at java.lang.Thread.run(Thread.java:701) [rt.jar:1.6.0_28] [Host Controller] Caused by: java.lang.IllegalStateException: Current event not START_ELEMENT [Host Controller] at com.ctc.wstx.sr.BasicStreamReader.getAttributeCount(BasicStreamReader.java:574) [Host Controller] at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.getAttributeCount(XMLExtendedStreamReaderImpl.java:210) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2] [Host Controller] at org.jboss.as.host.controller.parsing.HostXml.parseRemoteDomainControllerAttributes_1_5(HostXml.java:1192) [jboss-as-host-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at org.jboss.as.host.controller.parsing.HostXml.parseRemoteDomainController1_5(HostXml.java:1023) [jboss-as-host-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at org.jboss.as.host.controller.parsing.HostXml.parseDomainController(HostXml.java:926) [jboss-as-host-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at org.jboss.as.host.controller.parsing.HostXml.readHostElement_1_1(HostXml.java:446) [jboss-as-host-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:147) [jboss-as-host-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:118) [jboss-as-host-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2] [Host Controller] at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final-redhat-2.jar:1.1.0.Final-redhat-2] [Host Controller] at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.4.0.Final-redhat-SNAPSHOT.jar:7.4.0.Final-redhat-SNAPSHOT] [Host Controller] ... 4 more [Host Controller] [Host Controller] 11:14:01,536 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010933: Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details. The issue/fix is easy: org.jboss.as.host.controller.parsing; public class HostXml extends CommonXml { ... private void parseDomainController(... line 922: case DOMAIN_1_5: { parseRemoteDomainController1_5(reader, address, expectedNs, list, false); } default: { parseRemoteDomainController1_5(reader, address, expectedNs, list, true); break; => missing break in the DOMAIN_1_5 and the parseRemoteDomainController1_5 method gets called a second time. Will do a pull request right now