Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server throws "SERVER ERRO 500" at times #36

Closed
GoogleCodeExporter opened this issue Oct 13, 2015 · 3 comments
Closed

Server throws "SERVER ERRO 500" at times #36

GoogleCodeExporter opened this issue Oct 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. try viewing a page that uses KAPTCHA in a fresh system , that has not
seen any captcha yet.
2. I am getting a server error in IE. its a general server error 500

What version of the product are you using? On what operating system?
the latest one Version 2.3



Original issue reported on code.google.com by dangerou...@gmail.com on 9 Feb 2009 at 7:44

@GoogleCodeExporter
Copy link
Author

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 latch...@gmail.com on 9 Feb 2009 at 8:11

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

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 francesco.blunda@amuser.it on 28 Sep 2009 at 4:04

@GoogleCodeExporter
Copy link
Author

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 latch...@gmail.com on 28 Sep 2009 at 4:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant