Bonjour,
J'utilise le composant OdiReadMail pour récupérer un fichier envoyé par mail.
J'arrive a récupérer ce fichier lorsque j’exécute mon job en localhost.
Par contre lorsque je l’exécute sur l'agent distant, ODI m'affiche l'erreur suivante:
ODI-1241: Oracle Data Integrator tool execution fails.
Caused By: java.lang.NoClassDefFoundError: sun.awt.X11.XToolkit (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:141)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:182)
at java.awt.Toolkit$2.run(Toolkit.java:848)
at java.security.AccessController.doPrivileged(AccessController.java:273)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:840)
at oracle.j2ee.ws.saaj.soap.ch.GifDataContentHandler.getContent(GifDataContentHandler.java:78)
at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:787)
at javax.activation.DataHandler.getContent(DataHandler.java:534)
at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:629)
at com.sunopsis.dwg.tools.ReadMail.extractAttachment(ReadMail.java:864)
at com.sunopsis.dwg.tools.ReadMail.dumpPart(ReadMail.java:843)
at com.sunopsis.dwg.tools.ReadMail.dumpPart(ReadMail.java:829)
at com.sunopsis.dwg.tools.ReadMail.dumpPart(ReadMail.java:829)
at com.sunopsis.dwg.tools.ReadMail.treatMessages(ReadMail.java:1252)
at com.sunopsis.dwg.tools.ReadMail.actionExecute(ReadMail.java:252)
at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3437)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1509)
at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:44)
at oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:761)
Quelqu'un aurait une idée?
Merci d'avance.
Partager