Comments (3)
More details please. What is in your logs? Stack trace? Server configuration?
I've NEVER seen Kaptcha throw an error in about 2 years of use, so my guess is
that you are doing something
wrong that has nothing to do with Kaptcha.
Marking as invalid until you respond with more information that would be of any
use to me because what you
have sent so far is pretty much a waste of my time.
Original comment by [email protected]
on 9 Feb 2009 at 8:11
- Changed state: Invalid
from kaptcha.
Hi,
i'm also experiencing a ploblem like that described. I run BEA weblogic 10
(solaris).
It seems that when the problem occurs, the server can't respond anymore to
requests
for captcha gifs and the strange thing is that after uninstall/delete/re-deploy
the
webapp that uses kaptcha, the problem is still there!!! (also after
reinitializing
BEA instance). So i guess it is something dealing more with OS than java/bea.
Follows 2 exceptions i have on my logs when the problem appears.
Any help in understanding the problem is welcome!
Francesco
=====
Root cause of ServletException.
java.lang.InternalError: Can't connect to X11 window server using
'localhost:10.0' as
the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1141)
at
com.google.code.kaptcha.text.impl.DefaultWordRenderer.renderWord(DefaultWordRend
erer.java:39)
at com.google.code.kaptcha.impl.DefaultKaptcha.createImage(DefaultKaptcha.java:43)
at com.google.code.kaptcha.servlet.KaptchaServlet.doGet(KaptchaServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecuri
tyHelper.java:226)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.ja
va:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherI
mpl.java:528)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.ja
va:261)
at it.amuser.webClick2Call.F2TServlet.processRequest(F2TServlet.java:108)
at it.amuser.webClick2Call.F2TServlet.doGet(F2TServlet.java:531)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecuri
tyHelper.java:226)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.ja
va:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAp
pServletContext.java:3395)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.ja
va:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletConte
xt.java:2140)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java
:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
>
Root cause of ServletException.
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1141)
at
com.google.code.kaptcha.text.impl.DefaultWordRenderer.renderWord(DefaultWordRend
erer.java:39)
at com.google.code.kaptcha.impl.DefaultKaptcha.createImage(DefaultKaptcha.java:43)
at com.google.code.kaptcha.servlet.KaptchaServlet.doGet(KaptchaServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecuri
tyHelper.java:226)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.ja
va:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherI
mpl.java:528)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.ja
va:261)
at it.amuser.webClick2Call.F2TServlet.processRequest(F2TServlet.java:108)
at it.amuser.webClick2Call.F2TServlet.doGet(F2TServlet.java:531)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecuri
tyHelper.java:226)
at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.ja
va:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAp
pServletContext.java:3395)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.ja
va:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletConte
xt.java:2140)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java
:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
>
Original comment by [email protected]
on 28 Sep 2009 at 4:04
from kaptcha.
This has nothing to do with Kaptcha and everything to do with your os/java
install. Did
you try asking google for a solution?
http://www.google.com/search?
client=safari&rls=en&q=%22Can't+connect+to+X11+window+server+using+'localhost:
10.0'%22&ie=UTF-8&oe=UTF-8
Original comment by [email protected]
on 28 Sep 2009 at 4:09
from kaptcha.
Related Issues (20)
- Remove pixels-jar from distribution HOT 1
- Enhancement for Wiki documentation HOT 1
- image with wrong code HOT 8
- session key is previous image - don't think it is KAPTCHA; looking for direction HOT 1
- Problem with Can't read the image? Click it to get a new one HOT 3
- Issues with the test environment HOT 1
- Can't Re-genarate image HOT 1
- java.lang.NoSuchMethodError: com.jhlabs.image.RippleFilter.setXAmplitude HOT 1
- unhandled exception leads to java heap dump (Compiled_method=com/jhlabs/image/TransformFilter.filter(Ljava/awt/image/BufferedImage;Ljava/awt/image/BufferedImage;)Ljava/awt/image/BufferedImage;) HOT 1
- The package is not available from any of the existing maven repositories HOT 1
- java.lang.IllegalStateException: getWriter() has already been called for this response HOT 1
- Maven repo HOT 2
- wrong captcha after IE9 sends 2 requests and cuts one off HOT 9
- Kaptcha is not validated in Safari Browser
- the kaptcha image's font border can not be customrized. HOT 3
- It does not work well in Firefox 23.0.1 HOT 12
- config no working when use @WebServlet annotation HOT 6
- Kaptcha is not validated in Google Chrome browser HOT 1
- The image is not showing after uploading the application on amazon ec2 instance HOT 1
- Java Compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaptcha.