java.lang.NoClassDefFoundError: com/adobe/aemfd/docmanager/source/DocumentSourceHandler | Community
Skip to main content
Level 2
December 11, 2017
Solved

java.lang.NoClassDefFoundError: com/adobe/aemfd/docmanager/source/DocumentSourceHandler

  • December 11, 2017
  • 5 replies
  • 5060 views

Hello

For PDF generating we are using com.adobe.aemfd.docmanager.Document, which works fine.

But using this in unit tests we receive this error:

java.lang.NoClassDefFoundError: com/adobe/aemfd/docmanager/source/DocumentSourceHandler

We are using this dependency:

<dependency>
  <groupId>com.adobe.aemfd</groupId>
  <artifactId>aemfd-client-sdk</artifactId>
  <version>6.3.0</version>
  <scope>provided</scope>
</dependency>

How can we solve this error so we can run our tests?

Kind regards

Christofhe De Bock

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Gandhi

Hi Puneet and Christofhe,

As smacdonald2008 mentioned please give details on how the Unit tests were set up and also please share the client sdk version being used at your end. It would have version something like 4.1.xx if you are using AEM Forms 6.3.

Thanks,

Mayank

5 replies

puneet_soni
Level 2
June 5, 2018

Any update on this question.

smacdonald2008
Level 10
June 14, 2018

How are you setting  up the Unit tests? Are you using the OOTB Unit Tests that are part of the Maven Archetype project?

Mayank_Gandhi
Adobe Employee
Mayank_GandhiAdobe EmployeeAccepted solution
Adobe Employee
June 14, 2018

Hi Puneet and Christofhe,

As smacdonald2008 mentioned please give details on how the Unit tests were set up and also please share the client sdk version being used at your end. It would have version something like 4.1.xx if you are using AEM Forms 6.3.

Thanks,

Mayank

Wells_Sri
Level 2
July 6, 2021

<dependency>
<groupId>com.adobe.aemfd</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<version>4.1.50</version>
</dependency>

 

I am using above dependency, Still facing same problem when convert base 64 doc to com.adobe.aemfd.docmanager.Document

 

Here my Code: 

 

Document document = new Document(java.util.Base64.getDecoder().decode(baseDoc));

abhinashs680544
August 6, 2019

Hi Chris,

  We are facing same issue. Have you found the solution? If Yes, please share

abhinash007
Level 2
August 22, 2019

Hi Everyone,

     You need to add Adobe AEMDS Core Document Manager Support (adobe-aemds-core-docmanager) bundle in classpath or you can add it dependency. This bundle is present in AEM. It will resolve DocumentSourceHandler class

Wells_Sri
Level 2
July 6, 2021

<dependency>
<groupId>adobe-aemds-core-docmanager</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<version>4.1.50</version>
</dependency>

 

I am using above dependency, but still facing same issue