Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Aug 23, 2021 Aug 23, 2021

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
1.0K
Translate
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

Are you able to run the PDF Services API Samples?

Translate
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

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

 

Translate
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

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

Translate
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

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

Translate
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

Have yoiu tried updating the Maven project?

Translate
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

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

 

Translate
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

can you please help me how to fix this issue

Translate
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

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? 

Translate
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

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? 

Translate
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

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

Translate
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
LATEST

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

Translate
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