Recaptcha Issue - Compile time error

Hi,

I’m trying to implement the vaadin recaptcha 2.0.2.

I was added IVY dependency as followed :

ReCaptcha captcha = new ReCaptcha("xxx-privateKey", "xxx-publicKey", new ReCaptchaOptions());
layout.addComponent(captcha);

When i tried to run this i got following error.


java.lang.NoSuchMethodError: com.wcs.wcslib.vaadin.widget.recaptcha.ReCaptcha.(Ljava/lang/String;Ljava/lang/String;Lcom/wcs/wcslib/vaadin/widget/recaptcha/shared/ReCaptchaOptions;)V

Still now i can’t able to find the solution?

Hi,

From a quick look at the code and at the error message, it looks like there is no such constructor. There is one with the parameters: ReCaptcha(key, options, lang).

-Pontus

Thanks for your reply. I will check…