java.lang.NoClassDefFoundError: com/sun/imageio/plugins/jpeg/JPEGImageReader

Hello,

Encountered this exception

java.lang.NoClassDefFoundError: Failed to link com/aspose/email/internal/cd/za (Module "com.aspose.email:main" from local module loader @4f4a7090 (finder: local module finder @18ef96 (roots: /opt/jboss.8090/modules,/opt/jboss.8090/modules/system/layers/base))): com/sun/imageio/plugins/jpeg/JPEGImageReader
at sun.reflect.GeneratedConstructorAccessor286.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
at org.jboss.modules.Module.loadModuleClass(Module.java:606)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.aspose.email.internal.ca.zb.c(Unknown Source)
at com.aspose.email.internal.ca.zb.b(Unknown Source)
at com.aspose.email.internal.ca.zb.a(Unknown Source)
at com.aspose.email.internal.ca.zb.a(Unknown Source)
at com.aspose.email.internal.ca.zb.setInput(Unknown Source)
at com.aspose.email.internal.an.za.a(Unknown Source)
at com.aspose.email.internal.h.zb.a(Unknown Source)
at com.aspose.email.internal.h.zb.<init>(Unknown Source)
at com.aspose.email.internal.h.zb.<init>(Unknown Source)
at com.aspose.email.internal.h.zn.a(Unknown Source)
at com.aspose.email.internal.h.zn.a(Unknown Source)
at com.aspose.email.internal.h.zn.a(Unknown Source)
at com.aspose.email.zast.a(SourceFile:1473)
at com.aspose.email.zast.a(SourceFile:1534)
at com.aspose.email.zast.a(SourceFile:1339)
at com.aspose.email.zast.e(SourceFile:1253)
at com.aspose.email.MapiMessage.a(SourceFile:4771)
at com.aspose.email.MapiMessage.h(SourceFile:4521)
at com.aspose.email.MapiMessage.e(SourceFile:3340)
at com.aspose.email.MapiMessage.fromMailMessage(SourceFile:1692)

Aspose.Email for Java 22.6

openjdk version “1.8.0_275”
OpenJDK Runtime Environment (build 1.8.0_275-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)

Regards,
Gopi

@sgdokku

Please upgrade to the latest version of Aspose.Email for Java 22.11 and let us know how it goes on your side.

If you still face problem, please share your input file along with simplified code example to reproduce the same issue at our end. We will investigate the issue and provide you more information on it.

@tahir.manzoor

We will try the later versions or the latest version of Aspose.Email but want to check if any similar issues were already resolved in the later versions. If yes, can you help me with the corresponding release note or issue description?

@sgdokku

Unfortunately, there no similar issue fixed in recent releases. Please use latest version of Aspose.Email for Java 22.11.

If problem still remains, please attach the following resources here for testing:

  • Your input document.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.