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. 

at org.apache.camel.component.http.HttpConverter.java 

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

    @Converter
    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. 

Sincerely.

J. H. Cha 



-- 
View this message in context: 
http://www.nabble.com/how-to-disable-warn-log-message-when-running-HttpGetTest.java---tp17598680s22882p17817463.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to