NoClassDefFoundError when building with log4j library

Hi,


I have a test project with uses Aspose Java for Email. When I add the log4j (log4j-1.2.15.jar) to the build path the project gets the following error, if I remove log4j from the build path the error goes away:

Exception in thread “main” java.lang.NoClassDefFoundError: org/testng/Assert
at com.aspose.email.private.k.a.a(Unknown Source)
at com.aspose.email.private.b.a.a(Unknown Source)
at com.aspose.email.ix.b(Unknown Source)
at com.aspose.email.ix.(Unknown Source)
at com.aspose.email.MapiMessageReader.(Unknown Source)
at com.aspose.email.MapiMessage.fromFile(Unknown Source)
at com.test.Aspose_EmailTest.main(Aspose_EmailTest.java:46)
Caused by: java.lang.ClassNotFoundException: org.testng.Assert
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
… 7 more


I’ve attached the test project to this post.

Hi,


Thank you for your sample project.

I have logged an investigative ticket in our tracking system to probe further into this issue. The ticket id for your reference is 32704. We will keep you posted with updates on this.

Regards,

Hi,


Has there been any progress on this issue?
Have you been able to reproduce the problem?


Regards,

Hi,


Yes we were able to reproduce the said issue on our end, that is why we have logged it in our tracking system for the sake of correction.

Regarding the progress, we have fixed the problem and the fix will be released with Aspose.Email for Java v1.2.0. We will soon let you know its release date.

The issues you have found earlier (filed as 32704) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.