You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "s.sachin2210" <sa...@wipro.com> on 2009/02/23 12:37:22 UTC
help needed with service mix (not able to send an xml document as
string)
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.
Re: help needed with service mix (not able to send an xml document
as string)
Posted by "s.sachin2210" <sa...@wipro.com>.
hi the debug statements are as follows
13:59:17,828 | DEBUG | btpool1-0 - Acceptor0
SelectChannelConnector@10.201.114.248:8192 | JettyContextManager |
ntextManager$ThreadPoolWrapper 465 | Dispatching job:
SCEP@12682218[d=true,io=0,w=true,b=false|false]
13:59:17,875 | DEBUG | btpool1-1 | ConsumerProcessor |
p.processors.ConsumerProcessor 121 | Receiving HTTP request: POST /Broker/
HTTP/1.1
Host: 10.201.114.248:8192
User-Agent: gSOAP/2.7
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 1639
Connection: close
13:59:17,875 | DEBUG | btpool1-1 | HttpComponent |
emix.common.AsyncBaseLifeCycle 587 | Created correlation id:
ID:10.201.114.248-11f93ce49da-2:15
13:59:17,875 | DEBUG | btpool1-1 | DeliveryChannelImpl |
.messaging.DeliveryChannelImpl 425 | Send
ID:10.201.114.248-11f93ce49da-2:15 in DeliveryChannel{servicemix-http}
13:59:17,890 | DEBUG | btpool1-1 | SedaFlow |
emix.jbi.nmr.flow.AbstractFlow 118 | Called Flow send
13:59:17,890 | DEBUG | btpool1-1 | ConsumerProcessor |
p.processors.ConsumerProcessor 160 | Suspending continuation for exchange:
ID:10.201.114.248-11f93ce49da-2:15
13:59:18,218 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 |
SedaQueue | .jbi.nmr.flow.seda.SedaQueue$1 132 |
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@bbb074 dequeued
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.WstxParsingException: Illegal processing instruction target
("xml"); xml (case insensitive) is reserved by the specs.
at [row,col {unknown-source}]: [2,822]
]
13:59:18,218 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 |
WSNComponent | emix.common.AsyncBaseLifeCycle 468 | Received
exchange: status: Active, role: provider
13:59:18,218 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 |
WSNComponent | emix.common.AsyncBaseLifeCycle 536 | Retrieved
correlation id: ID:10.201.114.248-11f93ce49da-2:15
13:59:18,281 | 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)
at
com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:129)
at
com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:93)
at org.apache.servicemix.jbi.jaxp.StaxSource.parse(StaxSource.java:140)
at org.apache.servicemix.jbi.jaxp.StaxSource.parse(StaxSource.java:266)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)
at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:172)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:120)
at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:103)
at
org.apache.servicemix.wsn.component.WSNEndpoint.process(WSNEndpoint.java:128)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
13:59:18,312 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 |
DeliveryChannelImpl | .messaging.DeliveryChannelImpl 425 | Send
ID:10.201.114.248-11f93ce49da-2:15 in DeliveryChannel{servicemix-wsn2005}
13:59:18,312 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 | SedaFlow
| emix.jbi.nmr.flow.AbstractFlow 118 | Called Flow send
13:59:18,765 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 |
SedaQueue | .jbi.nmr.flow.seda.SedaQueue$1 132 |
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@12cf455 dequeued
exchange: InOnly[
id: ID:10.201.114.248-11f93ce49da-2:15
status: Error
role: consumer
service: {http://servicemix.org/wsnotification}NotificationBroker
endpoint: Broker
operation: {http://docs.oasis-open.org/wsn/brw-2}Notify
in: Unable to display: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An
attempt was made to insert a node where it is not permitted.
error: java.lang.NullPointerException
]
13:59:18,765 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 |
HttpComponent | emix.common.AsyncBaseLifeCycle 468 | Received
exchange: status: Error, role: consumer
13:59:18,765 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 |
HttpComponent | emix.common.AsyncBaseLifeCycle 536 | Retrieved
correlation id: ID:10.201.114.248-11f93ce49da-2:15
13:59:18,781 | DEBUG | pool-flow.seda.servicemix-wsn2005-thread-3 |
ConsumerProcessor | p.processors.ConsumerProcessor 98 | Resuming
continuation for exchange: ID:10.201.114.248-11f93ce49da-2:15
13:59:18,796 | DEBUG | btpool1-0 - Acceptor0
SelectChannelConnector@10.201.114.248:8192 | JettyContextManager |
ntextManager$ThreadPoolWrapper 465 | Dispatching job:
RetryContinuation@33478627,pending,resumed
13:59:18,796 | DEBUG | btpool1-1 | ConsumerProcessor |
p.processors.ConsumerProcessor 121 | Receiving HTTP request: POST /Broker/
HTTP/1.1
Host: 10.201.114.248:8192
User-Agent: gSOAP/2.7
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 1639
Connection: close
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/
--
View this message in context: http://www.nabble.com/help-needed-with-service-mix-%28not-able-to-send-an-xml-document-as-string%29-tp22159926p22161551.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: help needed with service mix (not able to send an xml document as
string)
Posted by Gert Vanthienen <ge...@gmail.com>.
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 <sa...@wipro.com>:
>
> 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.
>
>