• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

!! No longer possible to create PDF's - VVSRVPGM !!!

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

  • !! No longer possible to create PDF's - VVSRVPGM !!!

    since the new version of Valence (20240416) we can no longer create PDF's..

    a rather annoying urgent problem
    we use the create pdf procedures to generate Certificates to our customers- we now noticed this wasn't generated anymore after i did the install of the newest valence release to production...



    i get the error
    Code:
    Bericht . . . . : Java exception received when calling Java method.
    
    Cause . . . . . : RPG procedure VVPDF_NEWD in program VALENCE60P/VVSRVPGM
    received Java exception "java.lang.NoClassDefFoundError: documenttype" when
    calling method "documentpotrait" with signature
    "()Lcom.lowagie.text.Document;" in class "documenttype".
    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').







    Attached Files

  • #2
    Hi Thierry,

    The screenshot seems to indicate a Java class path problem is at play there. Per chance do you have anything specified as a class path at the *SYS level?

    WRKENVVAR LEVEL(*SYS)

    We've noticed on other systems that *SYS-level environment variables can supersede equivalent *JOB-level ones. So if you see a class path specified at the *SYS level, try removing it and then restart your Valence instance.

    If that's not the case, please reach out to support directly so we can try to diagnose the problem over a web meeting.

    Comment


    • #3
      Hi Robert.. sorry but i'm totally not familiar with Java...


      I see the classpath *sys is referring to :

      Code:
       CS_EMAIL_METHOD '*SMTP'
      AR_DISPLAY_USAGE_TIPS '*NO'
      CS_IFS_TMP_PATH '\\CMIS001\root\filexfer\temp'
      CS_IFS_ROOT_PATH '\\CMIS001\root'
      CS_ADOBE_READER_PATH 'FoxitReader.exe'
      CS_XLS_COLUMN_WIDTH '*FITTEXT'
      CM_MESSAGE_ID_FORMAT '2'
      [COLOR=#e74c3c]CLASSPATH '/qibM/UserData/Java400/ext/poi3.16'[/COLOR]
      and when verifying this path on the iSeries - i see it isn't there

      Code:
      Directory . . . . : /qibm/userdata/Java400
      
      Typ opties en druk op Enter.
      2=Bewerken 3=Kopiëren 4=Verwijderen 5=Afbeelden 7=Naam
      8=Kenmerken 11=Actieve directory wijzigen...
      
      OPT OBJECTKOPPELING Type KENMERK BESCHRIJVING
      . DIR
      .. DIR
      ext DIR
      AdoptAuthority DIR
      SystemDefault.prop > STMF
      but i see there is a folder
      Code:
      /java/poi-3.16
      can i just replace that envvar and put that one in ?




      Comment


      • #4
        BTW : i removed also once the CLASSPATH from de*sys .. but still with the same result.


        thierry

        Comment


        • #5
          Originally posted by ThierryC View Post
          BTW : i removed also once the CLASSPATH from de*sys .. but still with the same result.


          thierry
          I'm very surprised removing the *SYS-level classpath didn't fix the problem. Did you restart the instance?

          Comment

          Working...
          X