• 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.

Java exception vvPdf_addHTML

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

  • Java exception vvPdf_addHTML

    Valence version 6.1.20220706

    Tried to call EXPDF04 from an app.

    Message . . . . : Java exception received when calling Java method.
    Cause . . . . . : RPG procedure VVPDF_ADDH in program SPACESAND/VVSRVPGM
    received Java exception "java.lang.NoClassDefFoundError:
    com.lowagie.text.cnx.AddHTMLToPDF" when calling method "<init>" with
    signature "()V" in class "com.lowagie.text.cnx.AddHTMLToPDF".
    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').

    Current classpath:
    .
    :[ROOT_PATH]java/iText-2.1.7.jar
    :[ROOT_PATH]java/documenttype.jar
    :[ROOT_PATH]java/javax.mail.jar
    :[ROOT_PATH]java/MessageType.jar
    :[ROOT_PATH]java/remotedb/vvJavaRemote.jar
    :[ROOT_PATH]java/remotedb/mysql-connector-java-8.0.26.jar
    :[ROOT_PATH]java/remotedb/jtds-1.2.5.jar
    :[ROOT_PATH]java/remotedb/sqljdbc41.jar
    :[ROOT_PATH]java/remotedb/jt400.jar
    :[ROOT_PATH]java/remotedb/json.jar
    :[ROOT_PATH]java/remotedb
    :[ROOT_PATH]java/tls_email_17.jar
    :[ROOT_PATH]java/remotedb/commons-codec-1.10.jar
    :[ROOT_PATH]java/remotedb/commons-collections4-4.1.jar
    :[ROOT_PATH]java/remotedb/commons-compress-1.18.jar
    :[ROOT_PATH]java/remotedb/commons-logging-1.2.jar
    :[ROOT_PATH]java/remotedb/commons-math3-3.6.1.jar
    :[ROOT_PATH]java/remotedb/curvesapi-1.04.jar
    :[ROOT_PATH]java/remotedb/opencsvsrc.jar
    :[ROOT_PATH]java/remotedb/poi-3.16.jar
    :[ROOT_PATH]java/remotedb/poi-excelant-3.16.jar
    :[ROOT_PATH]java/remotedb/poi-ooxml-3.16.jar
    :[ROOT_PATH]java/remotedb/poi-ooxml-schemas-3.16.jar
    :[ROOT_PATH]java/remotedb/poi-scratchpad-3.16.jar
    :[ROOT_PATH]java/remotedb/xmlbeans-2.6.0.jar
    :[ROOT_PATH]java/remotedb/ojdbc7.jar


    Not sure what I might need to add to the classpath.

  • #2
    Thanks for the heads-up, we're able to replicate this issue on our end as well. We're looking into it.

    Comment


    • #3
      Hi Patrick, I'm going to email you a replacement for the itext .jar file, should rectify the problem. This will be included in the next 6.1 build.

      Comment

      Working...
      X