Description
The ADBBeanTemplate contains the following piece of code (in registerPrefix):
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
}
According to the Javadoc of NamespaceContext, the getNamespaceURI method never returns null. The fact that Woodstox returns null for unbound prefixes is a known issue (WSTX-231) that has been fixed on the 4.0 branch.
The ADB code needs to be updated to support both null and the empty string as return value of NamespaceContext#getNamespaceURI for unbound prefixes.