• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

User registration problem

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've installed JForum on Tomcat 5.5.9, using Java 1.5, and everything seems to work fine, except user registration.

Everytime I click on the register button, I got the error message:


An error has ocurred. For detailed stack trace, please see the page's source code.
word is too big, try to use less letters, smaller font or bigger background



And the stack trace is:

19:39:01,201 ERROR [ExceptionWriter ] java.lang.reflect.InvocationTargetExce
ption
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at net.jforum.Command.process(Command.java:106)
at net.jforum.JForum.service(JForum.java:298)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.octo.captcha.CaptchaException: word is too big, try to use less l
etters, smaller font or bigger background
at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactor
y.java:547)
at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactor
y.java:515)
at com.octo.captcha.engine.image.ListImageCaptchaEngine.getNextImageCapt
cha(ListImageCaptchaEngine.java:559)
at net.jforum.entities.UserSession.createNewCaptcha(UserSession.java:347
)
at net.jforum.view.forum.UserAction.insert(UserAction.java:142)
... 21 more
Caused by: com.octo.captcha.CaptchaException: word is too big, try to use less l
etters, smaller font or bigger background
at com.octo.captcha.component.image.textpaster.RandomTextPaster.getRando
mDeviation(RandomTextPaster.java:533)
at com.octo.captcha.component.image.textpaster.RandomTextPaster.pasteTex
t(RandomTextPaster.java:515)
at com.octo.captcha.component.image.wordtoimage.ComposedWordToImage.past
eText(ComposedWordToImage.java:587)
at com.octo.captcha.component.image.wordtoimage.AbstractWordToImage.getI
mage(AbstractWordToImage.java:517)
at com.octo.captcha.image.gimpy.GimpyFactory.getImageCaptcha(GimpyFactor
y.java:544)
... 25 more


I can ignore the problem, and continue clicking on the registration button, and eventually, the registration page shows up, and I can register. I could never get to the registration page the first page, have to continually click on it, sometimes to up 8 or 9 times.

What's wrong with that? My system is a Windows XP, with PostgreSQL 8.0.

coco


[originally posted on jforum.net by coconut]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like a problem generating the random string to be display as image. Where can I set the config to a shorter string or using a smaller font?


[originally posted on jforum.net by coconut]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try a few refreshses, and it will work. This bug is already fixed in the development version.

If you're getting this problem very frequently, you can disale Captcha in Admin Panel -> Configurations

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got it, thanks.

coco

[originally posted on jforum.net by Anonymous]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic