L.S., Could you provide us with a more complete stacktrace? Also, could you try enabling DEBUG logging to see which messages are being passed through the ESB?
Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/2/23 s.sachin2210 <[email protected]>: > > hi, > i am using gsoap generated codes,and a function written by me ,to send > messages to the service mix server running on my windows m/c. > when i am trying to send an xml document(as a string) ,servicemix is raising > the following eceptions > > Notify > in: Unable to display: javax.xml.transform.TransformerException: > com.ctc.wstx.exc.WstxParsingException: Illegal processing instruction target > ("xml"); xml (case insensitive) is reserved by the specs. > at [row,col {unknown-source}]: [2,822] > ERROR | pool-flow.seda.servicemix-wsn2005-thread-3 | WSNComponent > | ervicemix.common.BaseLifeCycle 48 | Error processing exchange InOnly[ > id: ID:10.201.114.248-11f93ce49da-2:15 > status: Active > role: provider > service: {http://servicemix.org/wsnotification}NotificationBroker > endpoint: Broker > operation: {http://docs.oasis-open.org/wsn/brw-2}Notify > in: Unable to display: javax.xml.transform.TransformerException: > com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'x' (code > 120) excepted space, or '>' or "/>" > at [row,col {unknown-source}]: [2,905] > ] > java.lang.NullPointerException > at > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.expectText(UnmarshallingContext.java:442) > > > > below is the string i was trying to submit, > > <?xml version="1.0" encoding="UTF-8"?> > <tns:Notification xmlns:tns="http://Notification" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="Notification.xsd "> > > <NotificationHeader> > <color>Black</color> > <notificationType>1</notificationType> > </NotificationHeader> > <NotificationContent> > <itemID>114901</itemID> > <itemType>2</itemType> > <sellTime>120405161404</sellTime> > </NotificationContent> > </tns:Notification> > > but if i submit, > <NotificationHeader> > <color>Black</color> > <notificationType>1</notificationType> > </NotificationHeader> > <NotificationContent> > <itemID>114901</itemID> > <itemType>2</itemType> > <sellTime>120405161404</sellTime> > </NotificationContent> > the message is sent/recvd successfull > -- > View this message in context: > http://www.nabble.com/help-needed-with-service-mix-%28not-able-to-send-an-xml-document-as-string%29-tp22159926p22159926.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
