You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Cott Lang (JIRA)" <ji...@apache.org> on 2010/05/14 01:05:16 UTC

[jira] Created: (CAMEL-2721) Camel-mina logs a warning if an InOut connection does not send a reply

Camel-mina logs a warning if an InOut connection does not send a reply
----------------------------------------------------------------------

                 Key: CAMEL-2721
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2721
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-mina
    Affects Versions: 2.2.0
            Reporter: Cott Lang


I have an application that receives UDP packets and only occasionally replies when conditions warrant.

This works okay, except when I have an empty body on Out, I get this in the log:

{code}
Cannot write body since its null, closing session: Exchange[Message: [Body is null]]
{code}

Is there some other way to indicate a response shouldn't be sent?  Looking in MinaConsumer, nothing jumps out at me. :)

If not, it seems like this should be DEBUG. 

Thanks.


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


[jira] Commented: (CAMEL-2721) Camel-mina logs a warning if an InOut connection does not send a reply

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59359#action_59359 ] 

Claus Ibsen commented on CAMEL-2721:
------------------------------------

I dont think we have an option to control the log level of this. Lets add such an option.

What would be a good name for it?
{code}
warnOnEmptyBody=true|false
{code}

The option should be added to Netty as well.

> Camel-mina logs a warning if an InOut connection does not send a reply
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-2721
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2721
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mina
>    Affects Versions: 2.2.0
>            Reporter: Cott Lang
>
> I have an application that receives UDP packets and only occasionally replies when conditions warrant.
> This works okay, except when I have an empty body on Out, I get this in the log:
> {code}
> Cannot write body since its null, closing session: Exchange[Message: [Body is null]]
> {code}
> Is there some other way to indicate a response shouldn't be sent?  Looking in MinaConsumer, nothing jumps out at me. :)
> If not, it seems like this should be DEBUG. 
> Thanks.

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


[jira] Updated: (CAMEL-2721) Camel-mina logs a warning if an InOut connection does not send a reply

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

Claus Ibsen updated CAMEL-2721:
-------------------------------

         Assignee: Claus Ibsen
    Fix Version/s: 2.3.0
                   2.4.0

> Camel-mina logs a warning if an InOut connection does not send a reply
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-2721
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2721
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mina
>    Affects Versions: 2.2.0
>            Reporter: Cott Lang
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0, 2.4.0
>
>
> I have an application that receives UDP packets and only occasionally replies when conditions warrant.
> This works okay, except when I have an empty body on Out, I get this in the log:
> {code}
> Cannot write body since its null, closing session: Exchange[Message: [Body is null]]
> {code}
> Is there some other way to indicate a response shouldn't be sent?  Looking in MinaConsumer, nothing jumps out at me. :)
> If not, it seems like this should be DEBUG. 
> Thanks.

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


[jira] Commented: (CAMEL-2721) Camel-mina logs a warning if an InOut connection does not send a reply

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59361#action_59361 ] 

Claus Ibsen commented on CAMEL-2721:
------------------------------------

I wonder if we should have 2 options for fine grained control

- noReplyLogLevel
- disconnectOnNoReply

Then you can control the logging level, eg WARN by default. And you can turn it OFF as well.
And then the option option can dictate if the session should be close or not (as it does now).

> Camel-mina logs a warning if an InOut connection does not send a reply
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-2721
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2721
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mina
>    Affects Versions: 2.2.0
>            Reporter: Cott Lang
>             Fix For: 2.3.0, 2.4.0
>
>
> I have an application that receives UDP packets and only occasionally replies when conditions warrant.
> This works okay, except when I have an empty body on Out, I get this in the log:
> {code}
> Cannot write body since its null, closing session: Exchange[Message: [Body is null]]
> {code}
> Is there some other way to indicate a response shouldn't be sent?  Looking in MinaConsumer, nothing jumps out at me. :)
> If not, it seems like this should be DEBUG. 
> Thanks.

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


[jira] Resolved: (CAMEL-2721) Camel-mina logs a warning if an InOut connection does not send a reply

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

Claus Ibsen resolved CAMEL-2721.
--------------------------------

    Fix Version/s:     (was: 2.4.0)
       Resolution: Fixed

trunk: 944686.

Added the 2 options listed above.
Also updated the wiki documentation.

Cott fell free to test it on your system.

> Camel-mina logs a warning if an InOut connection does not send a reply
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-2721
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2721
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-mina
>    Affects Versions: 2.2.0
>            Reporter: Cott Lang
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>
> I have an application that receives UDP packets and only occasionally replies when conditions warrant.
> This works okay, except when I have an empty body on Out, I get this in the log:
> {code}
> Cannot write body since its null, closing session: Exchange[Message: [Body is null]]
> {code}
> Is there some other way to indicate a response shouldn't be sent?  Looking in MinaConsumer, nothing jumps out at me. :)
> If not, it seems like this should be DEBUG. 
> Thanks.

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