This JIRA indicates that using default namespaces is fixed. https://issues.apache.org/jira/browse/AXIS2-1964 i.e. If your XSD looks like this you should now be OK: <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:y="http://............" targetNamespace="http://............" elementFormDefault="unqualified" attributeFormDefault="unqualified">
Last entry is 'Fixed in svn revision 541097 (in axiom) '. I downloaded the latest Axis2 smapshot here: http://people.apache.org/dist/axis2/nightly/ and tested. Unfortunately I'm still getting the same stack trace: Exception in thread "main" java.lang.NullPointerException at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteDefaultNs(BaseNsStreamWriter.java:529) at com.ctc.wstx.sw.SimpleNsStreamWriter.writeDefaultNamespace(SimpleNsStreamWriter.java:113) at com.ctc.wstx.sw.SimpleNsStreamWriter.writeNamespace(SimpleNsStreamWriter.java:121) at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeNamespace(MTOMXMLStreamWriter.java:148) at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElement(StreamingOMSerializer.java:238) at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:71) at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:54) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:490) ...... Am I doing something wrong? Is this JIRA not actually fixed? Is the JIRA for a subtly different kind of problem? (This is a nasty showstopper for us) :-/ Many thanks, Mark B
