osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Camel 2.21.1 HttpComponent


The registerExtension method is provided by camel-core.
Please check if you updated the camel-core jar at the same time.

As the major version upgrade could introduce internal API change. We don't
suggest user just upgrade the version of camel-component unless it's a
patch release, such as 2.19.4 -> 2.19.5.


Willem Jiang

Twitter: willemjiang
Weibo: 姜宁willem

On Tue, Jun 19, 2018 at 5:24 AM, Binole, William J <
William.J.Binole@xxxxxxxxxxxxxxxxxxxx> wrote:

> We recently upgraded our camel libs to the latest version (2.21.1) and
> have found that we can no longer instantiate HttpComponent. This is due to
> the constructor calling the registerExetnsion method which we have yet to
> find in the source.
>
>     public HttpComponent(Class<? extends HttpEndpoint> endpointClass) {
>         super(endpointClass);
>
>         registerExtension(HttpComponentVerifierExtension::new);
>     }
> The above constructor fails with a no such method error on
> registerExtension. I dropped back to camel 2.19.5 and things work as that
> method is not being used. I would prefer to use the latest release 2.21.1
> but we have not been able to find a way around the problem with
> registerExtension. Since there does not appear to be any documentation
> around this any information on how to now instantiate HttpComponent would
> be appreciated.
>
> Bill
>
> ______________________________________________________________________
> The contents of this message, together with any attachments, are intended
> only for the use of the person(s) to which they are addressed and may
> contain confidential and/or privileged information. Further, any medical
> information herein is confidential and protected by law. It is unlawful for
> unauthorized persons to use, review, copy, disclose, or disseminate
> confidential medical information. If you are not the intended recipient,
> immediately advise the sender and delete this message and any attachments.
> Any distribution, or copying of this message, or any attachment, is
> prohibited.