PDF Service API to create PDF from static HTML NoClassDefFoundError in nimbusds

New Here ,
Aug 23, 2021 Aug 23, 2021

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

TOPICS
PDF Embed API , PDF Services API

Views

121

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2021 Aug 23, 2021

Copy link to clipboard

Copied

Are you able to run the PDF Services API Samples?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 23, 2021 Aug 23, 2021

Copy link to clipboard

Copied

No...facing an issue to run those samples.

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2021 Aug 23, 2021

Copy link to clipboard

Copied

Ok - Did you download the personalized ones and can you share the error log?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 23, 2021 Aug 23, 2021

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 23, 2021 Aug 23, 2021

Copy link to clipboard

Copied

Have yoiu tried updating the Maven project?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 23, 2021 Aug 23, 2021

Copy link to clipboard

Copied

Yes...I have tried....created separate POC also but facing the same issue

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 24, 2021 Aug 24, 2021

Copy link to clipboard

Copied

can you please help me how to fix this issue

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 24, 2021 Aug 24, 2021

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? 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 24, 2021 Aug 24, 2021

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? 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 28, 2021 Aug 28, 2021

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 01, 2021 Sep 01, 2021

Copy link to clipboard

Copied

LATEST

I am able to run the sample  project and problem of nimbusds library  has been resolved. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources