Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Java exception received when calling Java method

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Java exception received when calling Java method

    I have a program that will build a PDF, and it runs when I call the program. When a user tries to use the program they get an error. Here is the detail of the Java exception error:

    Java exception received when calling Java method.

    Message . . . . : Java exception received when calling Java method.
    Cause . . . . . : RPG procedure AIRPDF_GET in program AIRLIB/SVAIRPDF
    received Java exception "java.io.FileNotFoundException: Permission denied.
    /www/zendcore/htdocs/commcorr/Pics/NoPhoto.jpg" when calling method
    "getInstance" with signature "(Ljava.lang.StringLcom.lowagie.text.Image;"
    in class "com.lowagie.text.Image".
    Recovery . . . : Contact the person responsible for program maintenance to
    determine the cause of the problem.
    Technical description . . . . . . . . : If the exception indicates that the
    Java class was not found, ensure the class for the method is in the class
    path. If the exception indicates that the Java method was not found, check
    the method name and signature. If the signature is not correct, change the
    RPG prototype for the method, or change the Java method, so that the return
    type and parameter types match. You can determine the signatures for all the
    methods in class XYZ using command QSH CMD('javap -s XYZ').

    Any help will be greatly appreciated.

  • #2
    It looks like the user does not have authority to write files into that folder. Which is a good thing, you want to keep you web server folders protected.

    I would recommend having the files created in a public or controlled folder that that person has access to. Then have another job push the file to its destination that has the authority.

    I see it is for web usage with Zend. You may want the PHP to read from another directory and set proper permissions on that. But, for the first step I would create a public folder and test on that to ensure it is a security issue.

    Let me know if it works out for you,
    Tom

    Comment

    Working...
    X