I made one SA including two SU. The BC is http su and the SE is bean su. 
The http xbean.xml file is shown as below:

<beans xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:replaceMe="http://servicemix.apache.org/replaceMe";>

  <http:endpoint service="replaceMe:http"
                 endpoint="endpoint"
                 role="consumer" 
                 targetService="replaceMe:service"
                 locationURI="http://localhost:8000/example/";
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 soap="true" />             

</beans>

The bean SE is shown as below:
<beans xmlns:bean="http://servicemix.apache.org/bean/1.0";
       xmlns:replaceMe="http://servicemix.apache.org/replaceMe";>

  <bean:endpoint service="replaceMe:service" endpoint="endpoint"
bean="#myBean"/>

  <bean id="myBean" class="org.servicemix.samples.hello_world.su1.MyBean"/>

</beans>

When I send soap message to the http su, I will get this error:

Received exchange: InOut[
  id: ID:192.168.1.101-123e1eb8178-10:2
  status: Active
  role: provider
  service: {http://servicemix.apache.org/replaceMe}service
  endpoint: endpoint
  operation: ping
  in: <?xml version="1.0" encoding="UTF-8"?><ping
xmlns:e="http://schemas.xmlsoa
p.org/soap/envelope/">
      <pingRequest>
        <message xmlns="http://soap";>hel lo</message>
      </pingRequest>
    </ping>
]
ERROR - BeanComponent                  - Error processing exchange InOut[
  id: ID:192.168.1.101-123e1eb8178-10:2
  status: Done
  role: provider
  service: {http://servicemix.apache.org/replaceMe}service
  endpoint: endpoint
  operation: ping
  in: <?xml version="1.0" encoding="UTF-8"?><ping
xmlns:e="http://schemas.xmlsoa
p.org/soap/envelope/">
      <pingRequest>
        <message xmlns="http://soap";>hel lo</message>
      </pingRequest>
    </ping>
]
javax.jbi.messaging.MessagingException: illegal exchange status: done
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.handleSend(Me
ssageExchangeImpl.java:626)

Does anyone know what the problem is?

thanks

-- 
View this message in context: 
http://www.nabble.com/An-error-of-%22ERROR---BeanComponent----Error-processing-exchange%22-tp25530739p25530739.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to