camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen">
Subject RE: how to disable warn log message when running ?
Date Fri, 13 Jun 2008 08:23:54 GMT

Thansk for looking into this. It's a bug in Camel. I have reported it  	 CAMEL-607

Med venlig hilsen
Claus Ibsen
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
-----Original Message-----
From: jhcha [] 
Sent: 13. juni 2008 09:46
Subject: Re: how to disable warn log message when running ?

Dear Camel Developer.

Thanks for reply.

After your reply, I has investigated the reason of that warning message 
more precisely. 
I did understand the Camel TypeConverter more deeply. 

I found why the warning message displayed. 

Tha camel http component type converter class has the two methods having the
same input parameter type
ant return type. 


    public ServletInputStream toServletInputStream(HttpMessage message)
throws IOException {
        System.out.println("Converting to an InputStream using the
        HttpServletRequest request = toServletRequest(message);
        if (request != null) {
            return request.getInputStream();
        return null;

    public ServletInputStream toInputStream(HttpMessage message) throws
IOException {
        return toServletInputStream(message);

I don't know why the two methods has the same from and to type. 

Might the toInputStream return type be InputStream ? 
When I replace the toInputStream return type to InputStream, the warning
message disappeared. 

Could you check the camel http component type converter source ? 

Thanks a lot. 


J. H. Cha 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message