java.lang.NullPointerException when sending email
hi to all,
i did what explains in note:184339.1 to send email, creating a form and putting the code:
Declare
ErrorStatus number;
arr ORA_JAVA.JARRAY;
raisedException ora_java.jobject;
excp ORA_JAVA.JEXCEPTION;
begin
ErrorStatus := SendMail.Send( 'smtp.gmail.com' ,
'nagpalma@gmail.com' ,
:INTERFACE_MAIL.sendto ,
'' ,
'' ,
:INTERFACE_MAIL.subject ,
:INTERFACE_MAIL.message ,
arr , --Error Message
:INTERFACE_MAIL.attachment);
-- Notice that, For multiple attachements, files are separated by "///"
-- The ErrorStatus returns 0 if the main was sent successfully
If ErrorStatus = 0 then
Message ('success');
else
Message(ErrorStatus);
End if;
Exception
-- Handler para ORA-105100
when ORA_JAVA.JAVA_ERROR then
i did what explains in note:184339.1 to send email, creating a form and putting the code:
Declare
ErrorStatus number;
arr ORA_JAVA.JARRAY;
raisedException ora_java.jobject;
excp ORA_JAVA.JEXCEPTION;
begin
ErrorStatus := SendMail.Send( 'smtp.gmail.com' ,
'nagpalma@gmail.com' ,
:INTERFACE_MAIL.sendto ,
'' ,
'' ,
:INTERFACE_MAIL.subject ,
:INTERFACE_MAIL.message ,
arr , --Error Message
:INTERFACE_MAIL.attachment);
-- Notice that, For multiple attachements, files are separated by "///"
-- The ErrorStatus returns 0 if the main was sent successfully
If ErrorStatus = 0 then
Message ('success');
else
Message(ErrorStatus);
End if;
Exception
-- Handler para ORA-105100
when ORA_JAVA.JAVA_ERROR then
0