Bug 1105522 - EAP 6.3 host controller reading the host.xml from 6.2 fails
Summary: EAP 6.3 host controller reading the host.xml from 6.2 fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Domain Management
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ER8
: EAP 6.3.0
Assignee: Tom Fonteyne
QA Contact: Petr Kremensky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-06 10:24 UTC by Tom Fonteyne
Modified: 2018-12-05 18:48 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-06-28 15:30:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFLY-3461 0 Major Closed wildfly 8.x host controller reading the host.xml from namespace version 1.5 will fail 2016-01-26 11:28:55 UTC
Red Hat Issue Tracker WFLY-3462 0 Major Closed wildfly host controller reading the host.xml from namespace version 1.5 will fail 2016-01-26 11:28:55 UTC

Description Tom Fonteyne 2014-06-06 10:24:16 UTC
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

Comment 2 Petr Kremensky 2014-06-23 11:02:51 UTC
Verified on EAP 6.3.0.ER8.


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