Error: java.lang.NoClassDefFoundError: com/automic/mail/MailException in Automic Analytics
search cancel

Error: java.lang.NoClassDefFoundError: com/automic/mail/MailException in Automic Analytics

book

Article ID: 451211

calendar_today

Updated On:

Products

Automic Automation

Issue/Introduction

When attempting to start the Automic Analytics backend using Java v25, the application fails to start. The following error is observed in the logs:

ERROR --- [main] c.a.analytics.backend.AgentMainDelegate : Exception in Agent main java.lang.NoClassDefFoundError: com/automic/mail/MailException at java.base/java.lang.Class.getDeclaredConstructors0(Native Method) ... Caused by: java.lang.ClassNotFoundException: com.automic.mail.MailException

Environment

  • Product: Automic Automation / Analytics v26.0
  • Java Version: OpenJDK 25

Cause

This is a known incompatibility between Automic Analytics v26.0 and Java v25. Despite being listed as compatible the Compatibility Matrix, the Analytics backend cannot correctly load mail-related classes when running on Java v25, leading to a NoClassDefFoundError during the service activation phase.

Resolution

Workaround

Until version 26.1.0 is released, please use Java v17 for the Analytics backend:

  1. Install a dedicated Java v17 on the host server.
  2. Update the Analytics backend startup configuration of the Service Manager to point to the Java v17 executable instead of Java v25.
  3. Restart the Analytics backend service.

Solution

Update to a fix version listed below or a newer version if available.


Fix version:

Component(s): Analytics Backend

Automation.Engine 26.1.0 - TBD