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

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

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.
Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
Jun 14, 2018 5:14 PM UTC

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

7 replies

abhinash007
Level 2
Aug 22, 2019 10:31 AM UTC

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

Translate
Wells_Sri
Level 2
Jul 6, 2021 8:18 PM UTC

<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

Translate
abhinashs680544
New Participant
Aug 6, 2019 11:40 AM UTC

Hi Chris,

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

Translate
Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
Jun 14, 2018 5:14 PM UTC

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

Translate
Wells_Sri
Level 2
Jul 6, 2021 8:14 PM UTC

<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));

Translate
smacdonald2008
Level 10
Jun 14, 2018 3:50 PM UTC

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

Translate
puneet_soni
Level 2
Jun 5, 2018 6:46 AM UTC

Any update on this question.

Translate