-
Bug
-
Resolution: Done
-
Major
-
1.0.0.Beta3
-
None
The ServerModel within AS7 contains the following loop: -
if (! extensions.isEmpty()) {
streamWriter.writeStartElement(Element.EXTENSIONS.getLocalName());
for (String extension : extensions)
streamWriter.writeEndElement();
}
Each call to writeEmptyElement causes the previous writeAttribute to be executed, as the for loop completes there is one pending writeAttribute, the subsequent writeEndElement call does not write this attribute first leaving the call to write it happening later.
The AS7 start up reports this problem as: -
Caused by: javax.xml.stream.XMLStreamException: Attribute not associated with any element
at com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.writeAttribute(XMLStreamWriterImpl.java:521) [:1.6.0_23]
at org.jboss.staxmapper.FormattingXMLStreamWriter$4.run(FormattingXMLStreamWriter.java:224)
... 11 more
However it is also conceivable that this element could be written to an incorrect element.