List Info

Thread: Problem in running hello-world tutorial




Problem in running hello-world tutorial
country flaguser name
United States
2007-07-22 19:58:22
Hello,

I am trying to run the hello world example at
http:
//servicemix.org/site/hello-world-se.html. 
All SE,SU and SA are built successfully, and SE and SA are
deployed.
But I got an error in execution during sending SOAP message
by using
client.htm(http://svn.apache.org/viewvc/i
ncubator/servicemix/trunk/samples/bridge/client.html)
.

According to the stacktrace (see below), exception occurred
in processing
SOAP message in http cousumer.
But I'm not sure what causes this problem essentially.

Is there any advice? 

thanks,
--
tchiba

-----<from here>----
Execution environments:
OS = Windows XP SP2
JDK = 1.5.0_11-b03
ServiceMix = 3.1

-----<stack trace>-----
javax.servlet.ServletException: Failed to process request:
com.ctc.wstx.exc.Wstx
ParsingException: Illegal processing instruction target
("xml"); xml (case
insen
sitive) is reserved by the specs.
 at [row,col ]: [1,34]
        at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBrid
geServlet
.java:79)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder
.java:445
)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
er.java:3
56)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl
er.java:6
27)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(Co
ntextHand
lerCollection.java:149)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCo
llection.
java:123)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp
er.java:1
41)
        at org.mortbay.jetty.Server.handle(Server.java:269)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio
n.java:43
0)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
333)
        at
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEnd
Point.jav
a:270)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedT
hreadPool
.java:475)
WARN  - jetty                          - Nested in
javax.servlet.ServletExceptio
n: Failed to process request:
com.ctc.wstx.exc.WstxParsingException: Illegal
pro
cessing instruction target ("xml"); xml (case
insensitive) is reserved by
the sp
ecs.
 at [row,col ]: [1,34]:
com.ctc.wstx.exc.WstxParsingException: Illegal processing
instruction target
("x
ml"); xml (case insensitive) is reserved by the specs.
 at [row,col ]: [1,34]
        at
com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.
java:458)

        at
com.ctc.wstx.sr.BasicStreamReader.readPIPrimary(BasicStreamR
eader.jav
a:3780)
        at
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamRe
ader.java
:2700)
        at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.jav
a:1004)
        at
org.apache.servicemix.jbi.jaxp.XMLStreamHelper.copy(XMLStrea
mHelper.j
ava:78)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeConten
ts(SoapWr
iter.java:198)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimple
Message(S
oapWriter.java:113)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapW
riter.jav
a:82)
        at
org.apache.servicemix.http.processors.ConsumerProcessor.proc
ess(Consu
merProcessor.java:236)
        at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBrid
geServlet
.java:71)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder
.java:445
)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
er.java:3
56)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl
er.java:6
27)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(Co
ntextHand
lerCollection.java:149)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCo
llection.
java:123)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp
er.java:1
41)
        at org.mortbay.jetty.Server.handle(Server.java:269)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio
n.java:43
0)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
333)
        at
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEnd
Point.jav
a:270)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedT
hreadPool
.java:475)
WARN  - jetty                          - /Service/:
com.ctc.wstx.exc.WstxParsingException: Illegal processing
instruction target
("x
ml"); xml (case insensitive) is reserved by the specs.
 at [row,col ]: [1,34]
        at
com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.
java:458)

        at
com.ctc.wstx.sr.BasicStreamReader.readPIPrimary(BasicStreamR
eader.jav
a:3780)
        at
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamRe
ader.java
:2700)
        at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.jav
a:1004)
        at
org.apache.servicemix.jbi.jaxp.XMLStreamHelper.copy(XMLStrea
mHelper.j
ava:78)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeConten
ts(SoapWr
iter.java:198)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimple
Message(S
oapWriter.java:113)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapW
riter.jav
a:82)
        at
org.apache.servicemix.http.processors.ConsumerProcessor.proc
ess(Consu
merProcessor.java:236)
        at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBrid
geServlet
.java:71)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder
.java:445
)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
er.java:3
56)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl
er.java:6
27)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(Co
ntextHand
lerCollection.java:149)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCo
llection.
java:123)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp
er.java:1
41)
        at org.mortbay.jetty.Server.handle(Server.java:269)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio
n.java:43
0)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
333)
        at
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEnd
Point.jav
a:270)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedT
hreadPool
.java:475)
WARN  - jetty                          - /Service/
com.ctc.wstx.exc.WstxParsingException: Illegal processing
instruction target
("x
ml"); xml (case insensitive) is reserved by the specs.
 at [row,col ]: [1,34]
        at
com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.
java:458)

        at
com.ctc.wstx.sr.BasicStreamReader.readPIPrimary(BasicStreamR
eader.jav
a:3780)
        at
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamRe
ader.java
:2700)
        at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.jav
a:1004)
        at
org.apache.servicemix.jbi.jaxp.XMLStreamHelper.copy(XMLStrea
mHelper.j
ava:78)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeConten
ts(SoapWr
iter.java:198)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimple
Message(S
oapWriter.java:113)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapW
riter.jav
a:82)
        at
org.apache.servicemix.http.processors.ConsumerProcessor.proc
ess(Consu
merProcessor.java:236)
        at
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBrid
geServlet
.java:71)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder
.java:445
)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
er.java:3
56)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl
er.java:6
27)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(Co
ntextHand
lerCollection.java:149)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCo
llection.
java:123)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp
er.java:1
41)
        at org.mortbay.jetty.Server.handle(Server.java:269)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio
n.java:43
0)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
333)
        at
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEnd
Point.jav
a:270)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedT
hreadPool
.java:475)
-----<end>-----

-- 
View this message in context: http://www.nabble.co
m/Problem-in-running-hello-world-tutorial-tf4127009s12049.ht
ml#a11736446
Sent from the ServiceMix - User mailing list archive at
Nabble.com.


Re: Problem in running hello-world tutorial
user name
2007-07-24 08:59:57
On 7/22/07, tchiba <takeshi.chibafujixerox.co.jp> wrote:
>
> Hello,
>
> I am trying to run the hello world example at
> http:
//servicemix.org/site/hello-world-se.html.
> All SE,SU and SA are built successfully, and SE and SA
are deployed.
> But I got an error in execution during sending SOAP
message by using
> client.htm(http://svn.apache.org/viewvc/i
ncubator/servicemix/trunk/samples/bridge/client.html)
> .
>
> According to the stacktrace (see below), exception
occurred in processing
> SOAP message in http cousumer.
> But I'm not sure what causes this problem essentially.
>
> Is there any advice?
>
> thanks,
> --
> tchiba
>
> -----<from here>----
> Execution environments:
> OS = Windows XP SP2
> JDK = 1.5.0_11-b03
> ServiceMix = 3.1
>
> -----<stack trace>-----
> javax.servlet.ServletException: Failed to process
request:
> com.ctc.wstx.exc.Wstx
> ParsingException: Illegal processing instruction target
("xml"); xml (case
> insen
> sitive) is reserved by the specs.
>  at [row,col ]: [1,34]

According to the error above, it appears that the XML you
are sending
contains an illegal processing instruction. Please paste a
copy of the
full XML request that is being submitted.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V44VYY9&5R"F)R=6-E+G-N>61E<D!G;6%I;&q
uot;YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.or
g/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: Problem in running hello-world tutorial
country flaguser name
United States
2007-07-24 17:59:44
the message sent is :
-----<from here>-----
<?xml version="1.0"
encoding="UTF-8"?>
<e:Envelope xmlns:e="h
ttp://schemas.xmlsoap.org/soap/envelope/">
  <e:Body>
    <ping>
      <pingRequest>
        <message xmlns="http://soap">hel
lo</message>
      </pingRequest>
    </ping>
  </e:Body>
</e:Envelope>
-----<end>-----

This is the same as the content of  the  message field of
the
client.htm(http://svn.apache.org/viewvc/i
ncubator/servicemix/trunk/samples/bridge/client.html)
itself.

Thanks,
--
tchiba


bsnyder wrote:
> 
> On 7/22/07, tchiba <takeshi.chibafujixerox.co.jp> wrote:
>>
>> Hello,
>>
>> I am trying to run the hello world example at
>> http:
//servicemix.org/site/hello-world-se.html.
>> All SE,SU and SA are built successfully, and SE and
SA are deployed.
>> But I got an error in execution during sending SOAP
message by using
>> client.htm(http://svn.apache.org/viewvc/i
ncubator/servicemix/trunk/samples/bridge/client.html)
>> .
>>
>> According to the stacktrace (see below), exception
occurred in processing
>> SOAP message in http cousumer.
>> But I'm not sure what causes this problem
essentially.
>>
>> Is there any advice?
>>
>> thanks,
>> --
>> tchiba
>>
>> -----<from here>----
>> Execution environments:
>> OS = Windows XP SP2
>> JDK = 1.5.0_11-b03
>> ServiceMix = 3.1
>>
>> -----<stack trace>-----
>> javax.servlet.ServletException: Failed to process
request:
>> com.ctc.wstx.exc.Wstx
>> ParsingException: Illegal processing instruction
target ("xml"); xml
>> (case
>> insen
>> sitive) is reserved by the specs.
>>  at [row,col ]: [1,34]
> 
> According to the error above, it appears that the XML
you are sending
> contains an illegal processing instruction. Please
paste a copy of the
> full XML request that is being submitted.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V44VYY9&5R"F)R=6-E+G-N>61E<D!G;6%I;&q
uot;YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.or
g/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: http://www.nabble.co
m/Problem-in-running-hello-world-tutorial-tf4127009s12049.ht
ml#a11773444
Sent from the ServiceMix - User mailing list archive at
Nabble.com.


Re: Problem in running hello-world tutorial
country flaguser name
United States
2007-07-29 19:26:41
bsnyder wrote:

> According to the error above, it appears that the XML
you are sending
> contains an illegal processing instruction. Please
paste a copy of the
> full XML request that is being submitted.
> 
> Bruce

I tried to inpect more in detail:

Before entering MyEndpoint.processInOut(), XML MyEndpoint
line is added
before message I sent.
That is:
 Message sent:
 <hello>hello</hello>
 Acutual string:
 <?xml version='1.0' ....
><hello>hello</hello>
 
As a result, return message string from
MyEndpoint.processInOut() is :
 <hello>Hello World! Message <?xml version='1.0'
.... ><hello>hello</hello> 
contains ... bytes</hello>.

Then, this produces ParsingException.

It seems for me that some module transforms input message
into valid xml
string by adding xml declaration  line to it.

If above comprehension is right, to fix the problem, we
should modify
MyEndpoint.processInOut() to process input message as XML
string (not as
simple string).

Is this right?

Thanks,
--
tchiba

-- 
View this message in context: http://www.nabble.co
m/Problem-in-running-hello-world-tutorial-tf4127009s12049.ht
ml#a11856597
Sent from the ServiceMix - User mailing list archive at
Nabble.com.


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )