Hello.

I am using SM  3.2.2. And now I am interested in progect scalability.
I have two services. First - http-consumer, that gets a message from client.
Then this service sends message to the second service. Second service is a 
service engine (i wrote it manualy), it process message and give the 
response. This response SM send to the http client.
Everysing alright when both services on the one machine.

I' ve done SM cluser. Two SM's work together. But when I move second service 
to the other PC and deploy into second SM - after sending of client message I 
get next response:

[code]
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 Cannot write non xml faults for non soap messages</title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>Cannot write non xml faults for non soap 
messages</pre>
<p>RequestURI=/Service/</p><h3>Caused 
by:</h3><pre>java.lang.IllegalStateException: Cannot write non xml faults for 
non soap messages
        at 
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:124)
        at 
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
        at 
org.apache.servicemix.http.processors.ConsumerProcessor.sendFault(ConsumerProcessor.java:281)
        at 
org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:180)
        at 
org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.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:487)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
        at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
</pre>
<p><i><small><a href="http://jetty.mortbay.org/";>Powered by 
Jetty://</a></small></i></p><br/>                                               
 

</body>
</html>
[/code]

Configuration of the http-consumer-su next(xbean.xml):
[code]
<beans xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:hwse="http://org.apache.servicemix.samples.helloworld.se/1.0";
       xmlns:xyz="http://companyxyz.com";>

    <http:endpoint service="xyz:helloWorld"
                   endpoint="helloWorld"
                   soap="false"
                   role="consumer" 
                   locationURI="http://localhost:8193/Service/";
                   defaultMep="http://www.w3.org/2004/08/wsdl/in-out"; />    
</beans>
[/code]

Thanks for any suggestions.
Ihor. [EWU]

Reply via email to