java.lang.incombatible class change error [message #335540] |
Tue, 22 July 2008 08:51 |
jebesh_s
Messages: 34 Registered: August 2007 Location: Chennai
|
Member |
|
|
Dear Gurus,
I have a problem while sending a mail by database procedure.i have given the code below.please find the attached screen short
declare
ErrorMessage VARCHAR2(4000);
ErrorStatus NUMBER;
-- enable SQL*PLUS output;
--SET SERVEROUTPUT ON
-- redirect java output into SQL*PLUS buffer;
--exec dbms_java.set_output(5000);
BEGIN
ErrorStatus := SendMailJPkg.SendMail(
SMTPServerName => '192.168.4.2',
Sender => 'jagan@hafele.co.th',
Recipient => 'jebesh_s@yahoo.co.in',
CcRecipient => '',
BccRecipient => '',
Subject => 'hth106: Test JavaMail',
Body => 'This is the body: Hello, this is a test that spans 2 lines',
AuthReqdYNNum => 1,
UserID => 'jagan',
Password => 'songbirds',
ErrorMessage => ErrorMessage,
Attachments => SendMailJPkg.ATTACHMENTS_LIST('C:\oramail\MHTHSO121.html')
);
dbms_output.put_line('Error'|| ErrorMessage);
dbms_output.put_line('ErrorStatus'||ErrorStatus);
END;
/
it shows java.lang.incompatible class change error
i dont know what is the reason for "JAVA.LANG.INCOPATIBLE CLASS CHANGE ERROR" please advise me to resolve this issue
Thanks in advance
Thanks,
Jebesh
|
|
|
|
|
|
|