Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Hi I figured out what exactly the problem was...</p> <p>First error message was: </p> <pre><code> com.google.gwt.event.shared.UmbrellaException: Exception caught: Exception caught: Exception caught: (TypeError) @com.claudiushauptmann.gwt.recaptcha.client.Recaptcha:: create(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I) ([string: '6LcTueYSAAAAAHPQtHZgAULhzRiawknYecvkKokU', string: 'recaptcha_div', string: 'red', string: 'en', int: 0]): $wnd.Recaptcha is undefined </code></pre> <p>this was shown only because, from client side the gwt-captcha component try to call the functionality in <code>recaptcha_ajax.js</code>, and it was unavailable. </p> <p>When I inspected more, the client web page using <strong>firebug</strong> it was shown that an error message:</p> <p><code>Blocked loading mixed active content "http://api.recaptcha.net/js/recaptcha_ajax.js"</code></p> <p>So this was the reason for the first error message.</p> <p>Now what make my project blocks from accessing this js url is, my project url is <code>https://domain/index.html</code>, so secured content blocking insecure content. see my text transfer protocol is secured ( https), but recaptcha_ajax.js url is unsecure (http). </p> <p><strong>solution:</strong> So in-order to work this out I have to change the unsecure url to secured one.</p> <p>edit the gwt.xml file in gwt-captcha.jar file. [<strong><em>original</em></strong>]</p> <pre><code> &lt;module&gt; &lt;inherits name="com.google.gwt.user.User"/&gt; &lt;script src="**http://**api.recaptcha.net/js/recaptcha_ajax.js"/&gt; &lt;/module&gt; </code></pre> <p>to [<strong><em>edited</em></strong>]</p> <pre><code>&lt;module&gt; &lt;inherits name="com.google.gwt.user.User"/&gt; &lt;script src="**https://**api.recaptcha.net/js/recaptcha_ajax.js"/&gt; &lt;/module&gt; </code></pre> <p>Thanks.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload