Skip to main content
February 12, 2009
Question

Captcha - bug on shared host

  • February 12, 2009
  • 6 replies
  • 1421 views
Morning. I am trying to run a simple captcha script on a shared host and most of the time it works well, however, sometimes it decides to crash.

Here is the error I'm getting:

An exception occured while performing the captcha cfimage action.
java.lang.IllegalStateException: Timer already cancelled.

The error occurred in C:\Websites\168219qa6\scribble.cfm: line 1

1 : <CFIMAGE action="captcha" fontsize="20" text="Hello" difficulty="high" fonts="verdana" width="200" height="50" />


I have logged many a ticket with the hosting company and they keep saying "sorry, nothing we can do" which seems like a really bad answer to me. Is there anyone that can perhaps guide me/them in the right direction so they can tell customers the correct answer?

Thanks!

Andy
    This topic has been closed for replies.

    6 replies

    February 13, 2009
    Hostmysite
    Matt Gifford
    Participating Frequently
    February 13, 2009
    I'm fairly sure it's a server issue with their set up. As a java error, it looks like it's having major timeout issues while trying to process the tag.
    If it ends up with endless server restarts as the only way to resolve the issue, it may be worth looking elsewhere for hosting.
    Matt Gifford
    Participating Frequently
    February 13, 2009
    Or the server is incorrectly configured, and is still loading required web modules when trying to access those beans during that startup process.

    Who are you hosting with?
    Matt Gifford
    Participating Frequently
    February 13, 2009
    As it's a shared hosting environment, it could be a case of incorrect sandbox settings from the hosting provider. By default, most shared hosts will disable access to java utilities, createObject functions, and most if not all file/fdirectory access tags. I have known of shared hosts to also have the cfimage tag disabled, or not have the correct temp location created (to hold the temporary image created by CF when writing to browser)

    Perhaps it's worth them checking the sandbox permission to make sure they have everything correctly set?
    Inspiring
    February 13, 2009
    idesdema wrote:
    > Morning. I am trying to run a simple captcha script on a shared host and most
    > of the time it works well, however, sometimes it decides to crash.
    >
    > Here is the error I'm getting:
    >
    > An exception occured while performing the captcha cfimage action.
    > java.lang.IllegalStateException: Timer already cancelled.
    >
    > The error occurred in C:\Websites\168219qa6\scribble.cfm: line 1
    >
    > 1 : <CFIMAGE action="captcha" fontsize="20" text="Hello" difficulty="high"
    > fonts="verdana" width="200" height="50" />
    >
    >
    > I have logged many a ticket with the hosting company and they keep saying
    > "sorry, nothing we can do" which seems like a really bad answer to me. Is
    > there anyone that can perhaps guide me/them in the right direction so they can
    > tell customers the correct answer?

    I remember that I got this error some time ago. A CF restart solved it.

    --
    Mack
    February 13, 2009
    The restart is their current solution. However, they have to do this for me almost daily. And if they don't, it errors out and new joiners can't sign up.

    Personally I think that restarting coldfusion is the last resort.
    February 12, 2009
    Provided by the hosting company. It's a standard cfimage="captcha" tag.

    They put the page up for me to test.
    tclaremont
    Inspiring
    February 12, 2009
    Where did you get the script? Is it provided by the hosting company, or did you download it from somewhere else?