3 Replies Latest reply on Dec 31, 2014 2:14 AM by JeromeFr

    error while using "Send Jython HTML Email" procedure

    2782749

      I used "Send Jython HTML Email" procedure to send mail in ODI 11g.

      Options :

      The inputs I used are

       

       

      Host: SMTP server address

      Port <Default>:25

      SMTP Auth <Default>:Yes

      User: *******

      Password *****

      To ****@***.com

      From ***@***.com

      Subject test

      LoadfromFile No

      FilePath D:\

      MessageText Test_Message

      Is HTML <Default>:Yes

      Attachments D:\


      Following error i got in the "create full message" step:

       

      "

      org.apache.bsf.BSFException: exception from Jython:

      Traceback (most recent call last):

        File "<string>", line 25, in <module>

      IOError: (21, 'Is a directory', '')

       

       

        at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)

        at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)

        at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)

        at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)

        at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)

        at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.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:577)

        at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)

        at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)

        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:376)

        at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:309)

        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:301)

        at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:865)

        at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:137)

        at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)

        at java.lang.Thread.run(Thread.java:662)

      Caused by: Traceback (most recent call last):

        File "<string>", line 25, in <module>

      IOError: (21, 'Is a directory', '')

       

       

        at org.python.core.PyException.fillInStackTrace(PyException.java:70)

        at java.lang.Throwable.<init>(Throwable.java:181)

        at java.lang.Exception.<init>(Exception.java:29)

        at java.lang.RuntimeException.<init>(RuntimeException.java:32)

        at org.python.core.PyException.<init>(PyException.java:46)

        at org.python.core.PyException.<init>(PyException.java:43)

        at org.python.core.Py.IOError(Py.java:175)

        at org.python.core.io.FileIO.<init>(FileIO.java:77)

        at org.python.core.PyFile.file___init__(PyFile.java:157)

        at org.python.core.PyFile$exposed___new__.createOfType(Unknown Source)

        at org.python.core.PyOverridableNew.new_impl(PyOverridableNew.java:12)

        at org.python.core.PyType.invoke_new_(PyType.java:432)

        at org.python.core.PyType.type___call__(PyType.java:1397)

        at org.python.core.PyType.__call__(PyType.java:1388)

        at org.python.core.OpenFunction.__call__(__builtin__.java:1576)

        at org.python.core.PyObject.__call__(PyObject.java:414)

        at org.python.core.PyObject.__call__(PyObject.java:418)

        at org.python.pycode._pyx1609.f$0(<string>:30)

        at org.python.pycode._pyx1609.call_function(<string>)

        at org.python.core.PyTableCode.call(PyTableCode.java:165)

        at org.python.core.PyCode.call(PyCode.java:18)

        at org.python.core.Py.runCode(Py.java:1204)

        at org.python.core.Py.exec(Py.java:1248)

        at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)

        at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)

        ... 19 more

      "