Thread "Master Certificate plugin"

Tabs

  • Deleted
    Deleted | 3. Jan 2020, 02:28
    Master Certificate plugin
    Hi,

    i am trying to preview certificatred created dby this plugin>
    https://github.com/studer-raimann/Certificate

    i am getting this error when trying to generate them: 

    [5i861] [2020-01-02 13:15:45.896488] cpconsultant_root.ERROR:

    srCertificateDefinitionGUI::previewCertificate:155
    srCertificateTemplyteTypeJasper::generate() Report file of certificate with ID 0 was not created by Jasper:

    Exception in thread "main" java.lang.ClassCastException:
    class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader
    (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap'),
    at de.cenote.tools.classpath.ApplicationClasspath.add(ApplicationClasspath.java:72),
    at de.cenote.tools.classpath.ApplicationClasspath.add(ApplicationClasspath.java:62),
    at de.cenote.tools.classpath.ApplicationClasspath.addJars(ApplicationClasspath.java:127),
    at de.cenote.tools.classpath.ApplicationClasspath.addJarsRelative(ApplicationClasspath.java:142),
    at de.cenote.jasperstarter.App.processReport(App.java:169),
    at de.cenote.jasperstarter.App.main(App.java:102)

    is this a permissions thing?

    Thanks for any help,

    Josh

  • rbaumgartner
    rbaumgartner | rbaumgartner | 6. Jan 2020, 10:50
    Master Certificate plugin
    Hi Josh,

    This may be an issue with Jasper and the Java version you're using. The following thread suggests, that JasperStarter may have issues with java >=9:
    https://sourceforge.net/p/jasperstarter/discussion/general/thread/408babe1eb/

    Which Java version are you using? Does the same error occur with Java 8 too?
  • Deleted
    Deleted | 8. Jan 2020, 01:38
    Master Certificate plugin
    Hi,

    yep, that fixed it.  I can now generate certificates.

    Thank you.
  • Deleted
    Deleted | 8. Jan 2020, 04:12
    Master Certificate plugin
    Hi,

    when i use my own template i am getting the following 2 errors:

    [cdlna] [2020-01-07 21:10:02.067617] cpconsultant_root.INFO: srCertificateEventsCertificateHandler::sendNotifications:41 Failed to generate certificate with ID 6; Certificate data directory is not writable.
    [cdlna] [2020-01-07 21:10:02.067921] cpconsultant_root.ERROR: srCertificateCronjob::generateCertificates:52 Failed to generate certificate with ID 6, message: disk_free_space(): No such file or directory

    what are the nesscary file / folder permissions and do  need to increase the amount of disk space avaialbe?

  • Deleted
    Deleted | 8. Jan 2020, 04:39
    Master Certificate plugin
    Hi,

    I believe it is an issue with the Template file.  I have tried to add an image as per the instructions using the additional CERT_TEMPLATE_PATH paramater.

    could you send me an example tmeplate with a background image and a logo so i can see how the XML is meant to look?

    Thanks