Copy link to clipboard
Copied
I am using PDF service api added all dependencies related to api while executing the code facing issue with nimbusds jose library which is java.lang.NoClassDefFoundError. I am using 8.19 version of nimbusds library. Please help me out
Copy link to clipboard
Copied
Are you able to run the PDF Services API Samples?
Copy link to clipboard
Copied
No...facing an issue to run those samples.
Copy link to clipboard
Copied
Ok - Did you download the personalized ones and can you share the error log?
Copy link to clipboard
Copied
Yes...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Aug 23, 2021 11:00:38 PM org.hibernate.validator.internal.util.Version <clinit>
INFO: HV000001: Hibernate Validator 6.1.3.Final
Exception in thread "main" java.lang.NoClassDefFoundError: com/nimbusds/jose/JOSEException
at com.adobe.pdfservices.operation.internal.auth.AuthenticatorFactory.getAuthenticator(AuthenticatorFactory.java:21)
at com.adobe.pdfservices.operation.internal.InternalExecutionContext.<init>(InternalExecutionContext.java:41)
at com.adobe.pdfservices.operation.ExecutionContext.create(ExecutionContext.java:57)
at com.adobe.pdfservices.operation.ExecutionContext.create(ExecutionContext.java:45)
at com.adobe.pdfservices.operation.samples.createpdf.CreatePDFFromStaticHTML.main(CreatePDFFromStaticHTML.java:50)
Caused by: java.lang.ClassNotFoundException: com.nimbusds.jose.JOSEException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 5 more
Copy link to clipboard
Copied
Have yoiu tried updating the Maven project?
Copy link to clipboard
Copied
Yes...I have tried....created separate POC also but facing the same issue
Copy link to clipboard
Copied
can you please help me how to fix this issue
Copy link to clipboard
Copied
I've not been able to reproduce the problem on my system. I may not be understanding your issue though. You state "I am using 8.19 version of nimbusds library." That library is included in Samples project. Are you trying to add it separately?
Copy link to clipboard
Copied
No....added com.adobe.documentservices in pom.xml file and trying to run the sample at that time I am facing this issue. How to run this sample?
Copy link to clipboard
Copied
I am able to run this sample. Now I am trying to run another html file zip in that sample it giving me error transactionId and requestTrackingId statusCode 400. can you please guide me ? how to do that
Copy link to clipboard
Copied
I am able to run the sample project and problem of nimbusds library has been resolved.