You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Gianfranco Boccalon (JIRA)" <ji...@apache.org> on 2008/12/01 19:44:05 UTC

[jira] Created: (SM-1712) CXF-BC consumer sends too many messages

CXF-BC consumer sends too many messages
---------------------------------------

                 Key: SM-1712
                 URL: https://issues.apache.org/activemq/browse/SM-1712
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-cxf-bc
    Affects Versions: 3.3
            Reporter: Gianfranco Boccalon


I have a very simple process composed as follows:

CXF-BC Consumer->My component

The MEP is InOut.
The problem is that the CXF send too many messages to my component.
I used a listener to see the messages sent.

The messages are:

------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
INFO  - SimpleExchangeListener         - Status: Active
INFO  - SimpleExchangeListener         - InOut[
 id: ID:192.168.20.106-11de3ccb3eb-4:1
 status: Active
 role: consumer

------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----

INFO  - SimpleExchangeListener         - Status: Active
INFO  - SimpleExchangeListener         - InOut[
 id: ID:192.168.20.106-11de3ccb3eb-4:1
 status: Active
 role: provider

------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)

INFO  - SimpleExchangeListener         - Status: Active
INFO  - SimpleExchangeListener         - InOut[
 id: ID:192.168.20.106-11de3ccb3eb-4:1
 status: Active
 role: consumer

------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----

INFO  - SimpleExchangeListener         - Status: Done
INFO  - SimpleExchangeListener         - InOut[
 id: ID:192.168.20.106-11de3ccb3eb-4:1
 status: Done
 role: consumer



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47883#action_47883 ] 

Guillaume Nodet commented on SM-1712:
-------------------------------------

I've run your SA and launch a simple soap request.
I can see only 3 messages there.  Are you sure the problem does not come from your listener somehow ?
IIRC, listeners are invoked when messages are sent *and* accepted, so the listener should be called 6 times actually.

{code}
DEBUG - CxfBcComponent                 - Created correlation id: ID:192.168.0.128-11e076198a3-18:0
DEBUG - DeliveryChannelImpl            - SendSync ID:192.168.0.128-11e076198a3-18:0 in DeliveryChannel{servicemix-cxf-bc}
DEBUG - SecuredBroker                  - send exchange with secure broker
DEBUG - SecuredBroker                  - service name :{urn:eng:spagic:processes:firstProcess:v0}firstProcess.Transform_v_0
DEBUG - SecuredBroker                  - operation name :{urn:eng:spagic:processes:firstProcess:v0}run
DEBUG - SedaFlow                       - Called Flow send
DEBUG - DeliveryChannelImpl            - Waiting for exchange ID:192.168.0.128-11e076198a3-18:0 (8ccd21) to be answered in DeliveryChannel{servicemix-cxf-bc} from sendSync
DEBUG - SedaQueue                      - org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@ef6abe dequeued exchange: InOut[
  id: ID:192.168.0.128-11e076198a3-18:0
  status: Active
  role: provider
  service: {urn:eng:spagic:processes:firstProcess:v0}firstProcess.Transform_v_0
  endpoint: firstProcess.Transform_v_0
  operation: {urn:eng:spagic:processes:firstProcess:v0}run
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmlns:msg="urn:eng:spagic:processes:firstProcess:v0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="msgRequest" type="msg:msgRequest" version="1.0"><jbi:part><urn:payload xmlns:urn="urn:eng:spagic">?</urn:payload></jbi:part></jbi:message>
]
DEBUG - DeliveryChannelImpl            - Send ID:192.168.0.128-11e076198a3-18:0 in DeliveryChannel{firstProcess.Transform_v_0}
DEBUG - SecuredBroker                  - send exchange with secure broker
DEBUG - SedaFlow                       - Called Flow send
DEBUG - SedaQueue                      - org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@e883ec dequeued exchange: InOut[
  id: ID:192.168.0.128-11e076198a3-18:0
  status: Active
  role: consumer
  service: {urn:eng:spagic:processes:firstProcess:v0}firstProcess.Transform_v_0
  endpoint: firstProcess.Transform_v_0
  operation: {urn:eng:spagic:processes:firstProcess:v0}run
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmlns:msg="urn:eng:spagic:processes:firstProcess:v0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="msgRequest" type="msg:msgRequest" version="1.0"><jbi:part><urn:payload xmlns:urn="urn:eng:spagic">?</urn:payload></jbi:part></jbi:message>
  out: <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="msgRequest" type="msg:msgRequest" version="1.0"><jbi:part><urn:payload xmlns:urn="urn:eng:spagic">?</urn:payload></jbi:part></jbi:message>
]
DEBUG - DeliveryChannelImpl            - Notifying exchange ID:192.168.0.128-11e076198a3-18:0(8ccd21) in DeliveryChannel{servicemix-cxf-bc} from processInboundSynchronousExchange
DEBUG - DeliveryChannelImpl            - Notified: ID:192.168.0.128-11e076198a3-18:0(8ccd21) in DeliveryChannel{servicemix-cxf-bc} from sendSync
DEBUG - DeliveryChannelImpl            - Send ID:192.168.0.128-11e076198a3-18:0 in DeliveryChannel{servicemix-cxf-bc}
DEBUG - SecuredBroker                  - send exchange with secure broker
DEBUG - SedaFlow                       - Called Flow send
DEBUG - SedaQueue                      - org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@374f1c dequeued exchange: InOut[
  id: ID:192.168.0.128-11e076198a3-18:0
  status: Done
  role: provider
  service: {urn:eng:spagic:processes:firstProcess:v0}firstProcess.Transform_v_0
  endpoint: firstProcess.Transform_v_0
  operation: {urn:eng:spagic:processes:firstProcess:v0}run
  in: <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmlns:msg="urn:eng:spagic:processes:firstProcess:v0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="msgRequest" type="msg:msgRequest" version="1.0"><jbi:part><urn:payload xmlns:urn="urn:eng:spagic">?</urn:payload></jbi:part></jbi:message>
  out: <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="msgRequest" type="msg:msgRequest" version="1.0"><jbi:part><urn:payload xmlns:urn="urn:eng:spagic">?</urn:payload></jbi:part></jbi:message>
]
{code}


> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47890#action_47890 ] 

Guillaume Nodet commented on SM-1712:
-------------------------------------

A simple workaround for now would be to check the kind of message: EXCHANGE_SENT or EXCHANGE_ACCEPTED in your listener and discard the accepted ones.

> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Andrea Zoppello (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Zoppello updated SM-1712:
--------------------------------

    Attachment: SimpleExchangeListener.java

Hi Guillaume,

I've attached the code of the listener, as you could see we trace only the exchange sent event.

BTW

I've noticed this error in the use case when i'm using a process very similar to the example attached but using servicemix-bean instead of lw-container.

Andrea

> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Gianfranco Boccalon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gianfranco Boccalon updated SM-1712:
------------------------------------

    Attachment: firstProcess_v_0-sa.zip

This is a sample process with a CXF BC component and a lightweight transformer component.
If you use a listener to trace all the messages sent, you will see 4 messages, instead of 3, on the bus.

> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1712) ExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated SM-1712:
--------------------------------

    Summary: ExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync  (was: MessageExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync)

> ExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync
> --------------------------------------------------------------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-core
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>            Assignee: Guillaume Nodet
>             Fix For: 3.3.1, 3.2.4
>
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Andrea Zoppello (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47866#action_47866 ] 

Andrea Zoppello commented on SM-1712:
-------------------------------------

Is there any plan to fix this???

Is there any idea where to look at???

Andrea

> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47892#action_47892 ] 

Guillaume Nodet commented on SM-1712:
-------------------------------------

I guess the servicemix-bean problem is a different issue.  It's really easy to mess with JBI exchanges states and such.
You may want to open another issue for that, but I would suspect either the TransformBeanSupport or your own code.

> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47900#action_47900 ] 

Freeman Fang commented on SM-1712:
----------------------------------

Hi Andrea,

I think the difference you see between the http component and cxf bc component is that http component use send() but cxf component by default use sendSync().
You can add attribute synchronous="false" for cxf bc endpoint to see what happen.

Freeman



> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47887#action_47887 ] 

Guillaume Nodet commented on SM-1712:
-------------------------------------

I may have identified the problem.
When using sendSync (which is the case from cxf-bc), the listener should be called when the exchange is sent with an EXCHANGE_SENT event, and when the exchange comes back with an EXCHANGE_ACCEPTED.
IN the DeliveryChannelImpl, line 495, (in servicemix-core) there is a call to
{code}
  l[i].exchangeSent(event);
{code}
 but I think it should be
{code}
  l[i].exchangeAccepted(event); 
{code}

Could you see if this change fix the behavior for you and I would apply that patch.


> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Andrea Zoppello (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47888#action_47888 ] 

Andrea Zoppello commented on SM-1712:
-------------------------------------

Guillaume,

I'm going to test but what i cannot figure is because if instead of
a process with lw ( CXF-BC <-> LW ), i use the same process using the 
same pojo component ( extending TransformBeanSupport instead of
TransformComponentSupport ) and having the process as CXFBC <->SMXBean
i have the pojo component hanging saying it could not handle an exchange in illegal 
state.

We have started investigating the excahnges sent after we've found this.


Any idea?? 



> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SM-1712) MessageExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated SM-1712:
--------------------------------

      Component/s:     (was: servicemix-cxf-bc)
                   servicemix-core
    Fix Version/s: 3.2.4
                   3.3.1
         Assignee: Guillaume Nodet
          Summary: MessageExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync  (was: CXF-BC consumer sends too many messages)

> MessageExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-core
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>            Assignee: Guillaume Nodet
>             Fix For: 3.3.1, 3.2.4
>
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Andrea Zoppello (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47893#action_47893 ] 

Andrea Zoppello commented on SM-1712:
-------------------------------------

Yes Guillaume,

It could be mine problems, but it's a little strange that with the same POJO bean if i use another
http input/output binding components, for example the old http all is ok.

HTTPInputOutput <-> POJOBean    ( All is OK and smx-bean is not giving any error )
CXFBCInputOutput <-> POJOBean ( The problem arises... )



> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-1712) CXF-BC consumer sends too many messages

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47885#action_47885 ] 

Guillaume Nodet commented on SM-1712:
-------------------------------------

Another point is that the NMR strongly checks the state of the JBI exchanges, so there is no way an exchange could be sent one more time than expected.

> CXF-BC consumer sends too many messages
> ---------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>         Attachments: firstProcess_v_0-sa.zip
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SM-1712) ExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SM-1712.
---------------------------------

    Resolution: Fixed

Sending        src/main/java/org/apache/servicemix/jbi/messaging/DeliveryChannelImpl.java
Transmitting file data .
Committed revision 724301.

Sending        src/main/java/org/apache/servicemix/jbi/messaging/DeliveryChannelImpl.java
Transmitting file data .
Committed revision 724299.

> ExchangeListener is called with exchangeSent instead of exchangeAccepted when using sendSync
> --------------------------------------------------------------------------------------------
>
>                 Key: SM-1712
>                 URL: https://issues.apache.org/activemq/browse/SM-1712
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-core
>    Affects Versions: 3.3
>            Reporter: Gianfranco Boccalon
>            Assignee: Guillaume Nodet
>             Fix For: 3.3.1, 3.2.4
>
>         Attachments: firstProcess_v_0-sa.zip, SimpleExchangeListener.java
>
>
> I have a very simple process composed as follows:
> CXF-BC Consumer->My component
> The MEP is InOut.
> The problem is that the CXF send too many messages to my component.
> I used a listener to see the messages sent.
> The messages are:
> ------ FIRST MESSAGE (from CXF to my component, only "in" message contained in the exchange) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ SECOND MESSAGE (from my component to CXF, same exchange with "out" message, in addition to "in" message) -----
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: provider
> ------ THIRD MESSAGE ----- <---- WHAT IS THIS ?? (This message is sent by CXF, the exchange is the same of second message, but the role changed from provider to consumer. The JBI InOut MEP specification doesn't say anything about this message)
> INFO  - SimpleExchangeListener         - Status: Active
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Active
>  role: consumer
> ------ FOURTH MESSAGE (This is the DONE message sent by the CXF to my component )-----
> INFO  - SimpleExchangeListener         - Status: Done
> INFO  - SimpleExchangeListener         - InOut[
>  id: ID:192.168.20.106-11de3ccb3eb-4:1
>  status: Done
>  role: consumer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.