[
http://issues.apache.org/jira/browse/MUSE-146?page=comments#action_12453755 ]
Dan Jemiolo commented on MUSE-146:
----------------------------------
It's not Axis2, it's Xerces:
2006-11-27 18:46:15 StandardWrapperValve[ApacheMuseServlet]: Servlet.service()
for servlet ApacheMuseServlet threw exception
java.io.IOException: Element or attribute do not match QName production:
QName::=(NCName':')?NCName.
at
org.apache.muse.core.platform.mini.MiniServlet.doPost(MiniServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Xerces and default namespaces in DOM L2 do not jive. The only info I could find
on this online was from the Cocoon project, which was not too helpful. I'm
going to resolve this by adding an item to our "troubleshooting" section.
> NotificationConsumer creates empty NotificationMessage array when no XML
> prefixes present
> -----------------------------------------------------------------------------------------
>
> Key: MUSE-146
> URL: http://issues.apache.org/jira/browse/MUSE-146
> Project: Muse
> Issue Type: Bug
> Components: Core Engine - Routing and Serialization, WSN
> NotificationConsumer
> Affects Versions: 2.0.0
> Environment: Windows XP SP2, Apache 2.2, Tomcat 5.5, Muse 2.0.0,
> Eclipse 3.2.1, XmlBeans 2.2.0
> Reporter: Vinh Nguyen
> Assigned To: Dan Jemiolo
> Priority: Minor
> Fix For: 2.1.0
>
> Attachments: MuseBox.zip
>
>
> Sending a notification containing a complex element doesn't seem to work. It
> only works for an element containing a simple string message. I'm using
> XmlBeans for conversion between xml schemas and java objects. Using the code
> below, the notification does not appear to be sent, nor do any errors get
> thrown in the process.
> BoxDocument doc = BoxDocument.Factory.newInstance();
> BoxType type = doc.addNewBox();
> type.setWidth(BigInteger.valueOf(123));
> type.setHeight(BigInteger.valueOf(123));
> QName qname = new QName(NAMESPACE_URI, "MyMessage", PREFIX);
> Element payload = XmlUtils.createElement(qname,
> XmlUtils.getFirstElement((Document)doc.getDomNode()));
> NotificationProducer np = ...
> np.publish(TOPIC_NAME, payload);
> Here is the XML from doc.xmlText():
> <box:Box
> xmlns:box="http://cisco.com/musebox/schemas/box"><box:width>123</box:width><box:height>123</box:height></box:Box>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]