Discussion:
Getting Error while sending Emails from ISDI
(too old to reply)
Pretty Jacob
2019-01-22 11:32:09 UTC
Permalink
Hi Team,

I am getting below error while trigerring emails from AL in ISDI.

CTGDIS810E handleException - cannot handle exception , get
java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger
at javax.mail.Session.initLogger(Session.java:227)
at javax.mail.Session.<init>(Session.java:212)
at javax.mail.Session.getInstance(Session.java:248)
at com.ibm.di.fc.SendEMailFC.perform(SendEMailFC.java:444)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at com.ibm.jscript.types.JavaAccessObject.call(JavaAccessObject.java:321)
at com.ibm.jscript.types.FBSObject.call(FBSObject.java:161)
at com.ibm.jscript.ASTTree.ASTCall.interpret(ASTCall.java:175)
at com.ibm.jscript.ASTTree.ASTDebug.interpret(Unknown Source)
at com.ibm.jscript.ASTTree.ASTProgram.interpret(ASTProgram.java:119)
at com.ibm.jscript.ASTTree.ASTProgram.interpretEx(ASTProgram.java:139)
at com.ibm.jscript.JSExpression._interpretExpression(JSExpression.java:435)
at com.ibm.jscript.JSExpression.interpretExpression(JSExpression.java:421)
at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:251)
at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:238)
at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:241)
at com.ibm.jscript.JSInterpreter.interpret(JSInterpreter.java:57)
at com.ibm.di.script.ScriptEngine.interpret(ScriptEngine.java:940)
at com.ibm.di.script.ScriptEngine.interpret(ScriptEngine.java:925)
at com.ibm.di.server.AttributeMapping$SingleAttributeMap.eval(AttributeMapping.java:729)
at com.ibm.di.server.AttributeMapping.eval(AttributeMapping.java:240)
at com.ibm.di.server.AssemblyLineComponent.triggerImpl(AssemblyLineComponent.java:2775)
at com.ibm.di.server.AssemblyLineComponent.trigger(AssemblyLineComponent.java:2706)
at com.ibm.di.server.AssemblyLine.msGetNextIteratorEntry(AssemblyLine.java:3717)
at com.ibm.di.server.AssemblyLine.executeMainStep(AssemblyLine.java:3414)
at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:3026)
at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:3009)
at com.ibm.di.server.AssemblyLine.executeAL(AssemblyLine.java:2975)
at com.ibm.di.server.AssemblyLine.run(AssemblyLine.java:1338)

Can anyone guide me on this.

Thanks,
Pretty Jacob
Jason Williams
2019-01-22 17:49:24 UTC
Permalink
Post by Pretty Jacob
Hi Team,
I am getting below error while trigerring emails from AL in ISDI.
CTGDIS810E handleException - cannot handle exception , get
java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger
at javax.mail.Session.initLogger(Session.java:227)
at javax.mail.Session.<init>(Session.java:212)
at javax.mail.Session.getInstance(Session.java:248)
at com.ibm.di.fc.SendEMailFC.perform(SendEMailFC.java:444)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at com.ibm.jscript.types.JavaAccessObject.call(JavaAccessObject.java:321)
at com.ibm.jscript.types.FBSObject.call(FBSObject.java:161)
at com.ibm.jscript.ASTTree.ASTCall.interpret(ASTCall.java:175)
at com.ibm.jscript.ASTTree.ASTDebug.interpret(Unknown Source)
at com.ibm.jscript.ASTTree.ASTProgram.interpret(ASTProgram.java:119)
at com.ibm.jscript.ASTTree.ASTProgram.interpretEx(ASTProgram.java:139)
at com.ibm.jscript.JSExpression._interpretExpression(JSExpression.java:435)
at com.ibm.jscript.JSExpression.interpretExpression(JSExpression.java:421)
at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:251)
at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:238)
at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:241)
at com.ibm.jscript.JSInterpreter.interpret(JSInterpreter.java:57)
at com.ibm.di.script.ScriptEngine.interpret(ScriptEngine.java:940)
at com.ibm.di.script.ScriptEngine.interpret(ScriptEngine.java:925)
at com.ibm.di.server.AttributeMapping$SingleAttributeMap.eval(AttributeMapping.java:729)
at com.ibm.di.server.AttributeMapping.eval(AttributeMapping.java:240)
at com.ibm.di.server.AssemblyLineComponent.triggerImpl(AssemblyLineComponent.java:2775)
at com.ibm.di.server.AssemblyLineComponent.trigger(AssemblyLineComponent.java:2706)
at com.ibm.di.server.AssemblyLine.msGetNextIteratorEntry(AssemblyLine.java:3717)
at com.ibm.di.server.AssemblyLine.executeMainStep(AssemblyLine.java:3414)
at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:3026)
at com.ibm.di.server.AssemblyLine.executeMainLoop(AssemblyLine.java:3009)
at com.ibm.di.server.AssemblyLine.executeAL(AssemblyLine.java:2975)
at com.ibm.di.server.AssemblyLine.run(AssemblyLine.java:1338)
Can anyone guide me on this.
Thanks,
Pretty Jacob
Haven't seen this particular message before.

com.sun.mail.util.MailLogger is part of JavaMail API. It is included in EE environment but it is not included in SE environment. SDI has included a copy of the mail.jar (found in ./jars/3rdparty/others/mail.jar). On a review of the jar I do not see that particular class. Though when I downloaded the latest JavaMail jar(https://javaee.github.io/javamail/) that class can be found.

If the issue is recreatable for you, I might suggest opening a Case with IBM Support to have this looked into further.
Pretty Jacob
2019-01-24 07:32:15 UTC
Permalink
Hi Jason,

Thanks for the reply.I downloaded the latest JavaMail jar(https://javaee.github.io/javamail/) and replaced it with the existing one and restarted service.Again i am facing the same issue.So that means we need to Open a case with IBM team on this?

Thanks,
Pretty Jacob
Pretty Jacob
2019-01-25 14:23:20 UTC
Permalink
Hey All,

The issue I was facing is resolved now.

We had a javax.mail-api-1.4.6.jar present in patches folder(C:\Program Files\IBM\TDI\V7.2\jars\patches) which was overriding the mail.jar(latest JavaMail jar).

we have renamed jar file present in patches folder and restarted the service and it worked.

Thank You Eddie and Jason for helping me debugging and resolving the issue.

Regards,
Pretty Jacob

Loading...