puentepr / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

Captcha validation fails on our online forms. #128

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
 when we enter the captcha on our online form , everytime it gives captcha validation failsed error .

We saw in the logs and found below error

SEVERE Dec 21,2011 11:15 com.pwc.us.wcps.servlets.reCaptchaServlet 
net.tanesha.recaptcha.ReCaptchaException: Cannot load URL: Connection refused: 
connect
at 
net.tanesha.recaptcha.http.SimpleHttpLoader.httpPost(SimpleHttpLoader.java:89)
at net.tanesha.recaptcha.ReCaptchaImpl.checkAnswer(ReCaptchaImpl.java:61)
at com.pwc.us.wcps.servlets.reCaptchaServlet.doPost(reCaptchaServlet.java:62)
at com.pwc.us.wcps.servlets.reCaptchaServlet.doGet(reCaptchaServlet.java:31)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1087)
at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java
:118)
at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.jav
a:87)
at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.
java:837)
at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.
java:680)
at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java
:588)
at 
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.ja
va:525)
at 
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWr
apper.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:751)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:126)
at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpIn
boundLink.java:458)
at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpIn
boundLink.java:387)
at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:
267)
at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminator
s(NewConnectionInitialReadCallback.java:214)
at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnect
ionInitialReadCallback.java:113)
at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCom
pletionListener.java:165)
at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217
)
at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.jav
a:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:393)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:254)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:241)
at java.net.Socket.connect(Socket.java:551)
at java.net.Socket.connect(Socket.java:501)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:403) 
at sun.net.www.http.HttpClient.openServer(HttpClient.java:521) 
at sun.net.www.http.HttpClient.<init>(HttpClient.java:246)
at sun.net.www.http.HttpClient.New(HttpClient.java:320) 
at sun.net.www.http.HttpClient.New(HttpClient.java:337) 
at 
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.j
ava:838) 
at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:
790) 
at 
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:715) 
at 
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.ja
va:882) 
at 
net.tanesha.recaptcha.http.SimpleHttpLoader.httpPost(SimpleHttpLoader.java:66)
... 30 more
net.tanesha.recaptcha.ReCaptchaException: Cannot load URL: Connection refused: 
connect

What is the expected output? What do you see instead?
The validation was successful few days back but now it gives validation failes 
error.

What version of the product are you using? On what operating system?
Windows xp 

Please provide any additional information below.

We saw on this link 
http://code.google.com/p/recaptcha/wiki/FirewallsAndRecaptcha

that there are below set of ips for which firewall should always be open

ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 
ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 
ip4:207.126.144.0/20 ip4:173.194.0.0/16

we need to verify if 216.239.32.0/19 is /19 subnet google is asking or 19 ip 
address they asking  in network notation anything after / is considered as 
subnet not individual ip
.

Please help us with this query.

Original issue reported on code.google.com by khushb...@gmail.com on 23 Dec 2011 at 5:39