You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Preben.Asmussen" <pr...@dr.dk> on 2014/09/25 14:56:57 UTC

Confusing cxf log messages after upgrading to 2.14.0

After upgrade the CXF producer info logs like
CxfProducer                    INFO  CxfProducer cannot find the
operationName from message header, try to use the defaultOperationName

This is due to change in in https://issues.apache.org/jira/browse/CAMEL-7503 
https://fisheye6.atlassian.com/changelog/camel-git?cs=75dfe61edc1d6f9e2837056189dea5f7e20f1090

The defaultOperationName is actually set on my endpoint like
cxf:bean:mybean?synchronous=true&amp;DefaultOperationName=MyDefaultOperationName

The Info log statement i kind of misleading you to think something is
broken.
IMHO the log statment should be debug or trace at best, or even better see
only log if the defaultOperationName is not present as a header or set as a
endpoint DefaultOperationName option.


Best,
Preben



--
View this message in context: http://camel.465427.n5.nabble.com/Confusing-cxf-log-messages-after-upgrading-to-2-14-0-tp5757014.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Confusing cxf log messages after upgrading to 2.14.0

Posted by Raul Kripalani <ra...@evosent.com>.
Yep, perhaps try setting it as a <cxf:property /> in your bean...

*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Thu, Sep 25, 2014 at 3:12 PM, Claus Ibsen <cl...@gmail.com> wrote:

> Hi
>
> Yeah INFO logging per message is a bad idea. Feel free to log a JIRA
> so we can tone it down. And also if you get that option set, then
> there is a bug in that code check.
>
> Maybe there is a case sensitive issue with DefaultXXX vs defaultXXX
>
>
> On Thu, Sep 25, 2014 at 2:56 PM, Preben.Asmussen <pr...@dr.dk> wrote:
> > After upgrade the CXF producer info logs like
> > CxfProducer                    INFO  CxfProducer cannot find the
> > operationName from message header, try to use the defaultOperationName
> >
> > This is due to change in in
> https://issues.apache.org/jira/browse/CAMEL-7503
> >
> https://fisheye6.atlassian.com/changelog/camel-git?cs=75dfe61edc1d6f9e2837056189dea5f7e20f1090
> >
> > The defaultOperationName is actually set on my endpoint like
> >
> cxf:bean:mybean?synchronous=true&amp;DefaultOperationName=MyDefaultOperationName
> >
> > The Info log statement i kind of misleading you to think something is
> > broken.
> > IMHO the log statment should be debug or trace at best, or even better
> see
> > only log if the defaultOperationName is not present as a header or set
> as a
> > endpoint DefaultOperationName option.
> >
> >
> > Best,
> > Preben
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Confusing-cxf-log-messages-after-upgrading-to-2-14-0-tp5757014.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> hawtio: http://hawt.io/
> fabric8: http://fabric8.io/
>

Re: Confusing cxf log messages after upgrading to 2.14.0

Posted by Willem Jiang <wi...@gmail.com>.
The info log is try to tell the user that the CxfProducer is looking up the operation name.
I’m OK to change the log level to DEBUG, I will update the Java doc and Wiki page for operation name look up processing.


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On September 26, 2014 at 12:06:21 AM, Preben.Asmussen (pras@dr.dk) wrote:
> Hi
>  
> created https://issues.apache.org/jira/browse/CAMEL-7863
>  
> I actually still works as expected when setting the DefaultOperationName as
> an endpoint option, so there is no new bug.
>  
> But to avoid the info logging pr. message you currently have to set a header
> 'operationName' too.
>  
> Best,
> Preben
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Confusing-cxf-log-messages-after-upgrading-to-2-14-0-tp5757014p5757017.html  
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  


Re: Confusing cxf log messages after upgrading to 2.14.0

Posted by "Preben.Asmussen" <pr...@dr.dk>.
Hi

created https://issues.apache.org/jira/browse/CAMEL-7863

I actually still works as expected when setting the DefaultOperationName as
an endpoint option, so there is no new bug.

But to avoid the info logging pr. message you currently have to set a header
'operationName' too.

Best,
Preben



--
View this message in context: http://camel.465427.n5.nabble.com/Confusing-cxf-log-messages-after-upgrading-to-2-14-0-tp5757014p5757017.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Confusing cxf log messages after upgrading to 2.14.0

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yeah INFO logging per message is a bad idea. Feel free to log a JIRA
so we can tone it down. And also if you get that option set, then
there is a bug in that code check.

Maybe there is a case sensitive issue with DefaultXXX vs defaultXXX


On Thu, Sep 25, 2014 at 2:56 PM, Preben.Asmussen <pr...@dr.dk> wrote:
> After upgrade the CXF producer info logs like
> CxfProducer                    INFO  CxfProducer cannot find the
> operationName from message header, try to use the defaultOperationName
>
> This is due to change in in https://issues.apache.org/jira/browse/CAMEL-7503
> https://fisheye6.atlassian.com/changelog/camel-git?cs=75dfe61edc1d6f9e2837056189dea5f7e20f1090
>
> The defaultOperationName is actually set on my endpoint like
> cxf:bean:mybean?synchronous=true&amp;DefaultOperationName=MyDefaultOperationName
>
> The Info log statement i kind of misleading you to think something is
> broken.
> IMHO the log statment should be debug or trace at best, or even better see
> only log if the defaultOperationName is not present as a header or set as a
> endpoint DefaultOperationName option.
>
>
> Best,
> Preben
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Confusing-cxf-log-messages-after-upgrading-to-2-14-0-tp5757014.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/