Results 1 to 9 of 9

Thread: java method security exception - A security exception occurred while invoking java...

  1. #1
    Join Date
    May 2009
    Location
    Tulsa, OK
    Posts
    220

    Default java method security exception - A security exception occurred while invoking java...

    There are some variables that cause the CFDUMP tag to trigger the restriction on accessing Java Objects that are part of the ColdFusion package.

    The #CFCATCH# variable from the CFCATCH tag is one of these. If you encounter any others, please list them here for reference.

  2. #2
    PhillipSenn Guest

    Default dumping the form

    It gave me a java method security exception when I tried to dump the form.

  3. #3
    Join Date
    May 2009
    Location
    Tulsa, OK
    Posts
    220

    Default

    Please submit your test URL and we will take a look at it.

  4. #4
    CF_Tim Guest

    Angry errors with the cfcatch variable

    I get this from my Application.cfc OnError()

    <cfcatch type="fb">
    <cfmodule template="error.cfm" exception="#cfcatch#">
    <cfreturn false>
    </cfcatch>


    java.security.AccessControlException: access denied (java.io.FilePermission path\error.cfm execute) at cfApplication2ecfc1354484763$funcONERROR.runFuncti on(path\Application.cfc:87)

  5. #5
    Join Date
    May 2009
    Location
    Tulsa, OK
    Posts
    220

    Default

    Try giving the template the full path to the error.cfm file instead of just template="error.cfm" and see if that helps.

    If it doesn't, please submit your test URL and we will take a look at it. If the above doesn't fix it, when you submit the ticket reference this post so we can update the post with the solution we find.

  6. #6
    CF_Tim Guest

    Default

    The file is in the root why does it need to have the full path?
    This application worked fine under other hosting, but they did not have all these security restrictions. It is hard to believe you have CFDump locked down. This makes any development harder because you can simply dump out variables.

    I tried giving the full path to the template and then got template not found errors. The file exsists.

    Then I tried using the file as a custom tag <cf_footer>
    Got the same Java IO error

    Its like CF does not have permission to run any files, even though directly called files work, includes / modules / custom tags don't.

  7. #7
    CF_Tim Guest

    Default re

    looks like cfthrow causes the same errors

  8. #8
    CF_Tim Guest

    Default re

    also createObject() fails...
    <cfset api = createObject("component","mycfc")>


    Error:
    access denied (java.io.FilePermission path\mycfc.cfc read)
    Last edited by CF_Tim; October 30th, 2009 at 10:22 AM. Reason: update

  9. #9
    CF_Tim Guest

    Default re

    Not sure what you guys did, but you fixed it.

    Thanks
    Tim

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •