Error: "java.lang.NoClassDefFoundError: javax/activation/DataHandler" When Starting the Email Status Service

(Doc ID 2414487.1)

Last updated on JUNE 25, 2018

Applies to:

Primavera P6 Team Member - Version 17.12.6.0 and later
Information in this document applies to any platform.

Symptoms

When starting the TM Email status service the following error is observed in the logs

ERROR
------------
TIMESTAMP [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1] INFO com.oracle.pgbu.teammember.messaging.TaskMessageServiceImpl - Start - Processing updated tasks....
TIMESTAMP [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1] INFO com.oracle.pgbu.teammember.messaging.TaskMessageServiceImpl - Start - Retrieving all new messages.
TIMESTAMP [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1] ERROR org.quartz.core.JobRunShell - Job DEFAULT.readJobDetail threw an unhandled Exception:
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'processUpdatedTasks' on target class [class com.oracle.pgbu.teammember.messaging.TaskMessageServiceImpl] failed;
   nested exception is java.lang.NoClassDefFoundError: javax/activation/DataHandler
   at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:266)
   at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.lang.NoClassDefFoundError: javax/activation/DataHandler
   at com.sun.mail.imap.IMAPFolder.newIMAPMessage(IMAPFolder.java:1334)
   at com.sun.mail.imap.MessageCache.getMessage(MessageCache.java:146)
   at com.sun.mail.imap.IMAPFolder.getMessages(IMAPFolder.java:1788)
   at com.oracle.pgbu.teammember.messaging.dao.ImapMessageDao.moveAllMessagesToTempFolder(ImapMessageDao.java:242)
   at com.oracle.pgbu.teammember.messaging.dao.ImapMessageDao.loadMessages(ImapMessageDao.java:64)
   at com.oracle.pgbu.teammember.messaging.TaskMessageServiceImpl.processUpdatedTasks(TaskMessageServiceImpl.java:40)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.base/java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
   at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:257)
   ... 3 more
Caused by: java.lang.ClassNotFoundException: javax.activation.DataHandler
   at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
   at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
   at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
   ... 15 more

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms