Git Product home page Git Product logo

icaptcha's People

Watchers

 avatar

icaptcha's Issues

Bezier curve property not properly getting set

What steps will reproduce the problem?
1. in the properties you set bezier as true
2.
3.

What is the expected output? What do you see instead?

Bezier curve should get display

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


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 24 Apr 2008 at 8:17

java.awt.HeadlessException

What steps will reproduce the problem?

No X11 on server and/or no X11 libs on server, this captcha won't work
within JSP or servlet code.   

Please provide any additional information below.

Quick fix:
 Font font = new  Font(fontName, Font.BOLD,  fontSize);
// GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
// GraphicsDevice gs = ge.getDefaultScreenDevice();
// GraphicsConfiguration gc = gs.getDefaultConfiguration();
// Create an image that supports arbitrary levels of transparency
BufferedImage buffer = new BufferedImage(1, 1, IMAGE_TYPE_BUFFERED);             
Why do you use the GraphicsEnvironment and other X11 dependent class?

Gábor Auth (http://www.javaforum.hu)

Original issue reported on code.google.com by [email protected] on 21 Dec 2007 at 10:07

Infinite while loop whith certain conditions

If following conditions will are met
1.  Using BoxedbackgroundProducer
2.  Setting "intersect" property to "false"
3.  Setting "minboxes" property to ">1"


Sometimes this will produce infinite or long running loops, reason for this
is that the width/height is randomized and sometimes width is given all
area so the next randomly generated box have no place to occyp



Original issue reported on code.google.com by [email protected] on 20 Aug 2007 at 8:27

Properties for FactoryRandomImpl

What steps will reproduce the problem?
1. in the sample code replace the FactorySimpleMathImpl with 
FactoryRandomImpl in the captcha.jsp and index.jsp
2. run the project on server and look into the console for the value
returned by the solver
3. Please note that i have not changed the instProps values in captcha.jsp
as i was not aware about the property names for FactoryRandomImpl.

What is the expected output? What do you see instead?
Must show VERIFIED instead showing Not Verified even if we give the right
values.

What version of the product are you using? On what operating system?
Project given as example in Windows.

Please provide any additional information below.
I am using JRE 1.5.0,TOMCAT 5.5

Original issue reported on code.google.com by [email protected] on 12 Jun 2008 at 11:12

captcha.jar Not compatible for jdk1.4

What steps will reproduce the problem?
1. Run the example in a tomacat instance that uses the jre1.4
2.
3.

What is the expected output? What do you see instead?
Need to get the result but we are getting an error 
Generated servlet error:
/opt/jakarta-tomcat-
5.0.28/work/Catalina/localhost/50mb/org/apache/jsp/index_jsp.java:10: 
cannot access org.smx.captcha.impl.FactoryRandomImpl
bad class file: /opt/jakarta-tomcat-5.0.28/webapps/50mb/WEB-
INF/lib/captcha.jar(org/smx/captcha/impl/FactoryRandomImpl.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the 
classpath.
import org.smx.captcha.impl.FactoryRandomImpl;


What version of the product are you using? On what operating system?
JDK1.4 and webserver is tomcat 5.0.28

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 13 Jun 2008 at 1:25

Ant build fails

What steps will reproduce the problem?
1. Check out the read-only source from SVN
2. Run "ant" in the project's root directory

The compiler complains about the "-source 1.4" switch.

build:
    [javac] Compiling 23 source files to
/home/andy/projects/icaptcha/icaptcha-read-only/classes
    [javac]
/home/andy/projects/icaptcha/icaptcha-read-only/src/org/smx/captcha/IBackgroundP
roducer.java:5:
generics are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable generics)

You need to set the javac task to use at JDK5:
<javac source="5" srcdir="${src}" destdir="${classes}" debug="true"
optimize="true">

Original issue reported on code.google.com by [email protected] on 30 Mar 2008 at 7:48

Not working in IE

What steps will reproduce the problem?
1. Installed icaptcha.war in Tomcat
2. Open http://localhost:8080/icaptcha/index.jsp
3. Click on Reload

What is the expected output? What do you see instead?
The Image should get refreshed But instead I am not able to see any image
in the location. I tries to debug it and found that in captcha.jsp while
rendering the image using Producer.render(os, solver, props), the following
error is getting thrown:

javax.imageio.IIOException: I/O error writing PNG file!
        at
com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:
1104)
        at javax.imageio.ImageWriter.write(ImageWriter.java:591)
        at javax.imageio.ImageIO.write(ImageIO.java:1434)
        at javax.imageio.ImageIO.write(ImageIO.java:1508)
        at org.smx.captcha.Producer.render(Producer.java:94)
        at org.apache.jsp.captcha_jsp._jspService(captcha_jsp.java:105)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:162)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
40)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:199)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:145)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:210)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:596)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:433)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:139)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:596)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:433)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)

        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2460)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:133)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:596)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:119)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:594)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:594)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:433)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:127)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:596)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:433)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)

        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:15
7)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:874)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:689)
        at java.lang.Thread.run(Thread.java:534)
Caused by: ClientAbortException:  java.net.SocketException: Connection reset by
peer: socket write error
        at
org.apache.coyote.tomcat4.OutputBuffer.doFlush(OutputBuffer.java:329)

        at org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:297)
        at
org.apache.coyote.tomcat4.CoyoteOutputStream.flush(CoyoteOutputStream
.java:74)
        at
javax.imageio.stream.FileCacheImageOutputStream.flushBefore(FileCache
ImageOutputStream.java:212)
        at
com.sun.imageio.plugins.png.ChunkStream.finish(PNGImageWriter.java:12
0)
        at
com.sun.imageio.plugins.png.PNGImageWriter.write_IHDR(PNGImageWriter.
java:368)
        at
com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:
1071)
        ... 41 more
Creating instance of FactoryLanguageImpl

What version of the product are you using? On what operating system?
I checked out the code from the svn location specified. And using the JSPs
provided in example.war. The OS is WindowsXp and IE version is 6.0.9.

Please provide any additional information below.
It is working fine with Mozilla.


Original issue reported on code.google.com by [email protected] on 10 Apr 2008 at 12:25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.