ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Jemiolo (JIRA)" <>
Subject [jira] Commented: (MUSE-146) NotificationConsumer creates empty NotificationMessage array when no XML prefixes present
Date Mon, 27 Nov 2006 23:57:22 GMT
    [ ] 
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 Element or attribute do not match QName production: QName::=(NCName':')?NCName.

	at javax.servlet.http.HttpServlet.service(
	at javax.servlet.http.HttpServlet.service(

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:
>             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:
> 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=""><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:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message