Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-30625: method dispatch on NULL SELF argument is disallowed

user11289444Dec 1 2009 — edited Dec 3 2009
Hi,


I have the following script when i=5 it returns the value it is not always but , depends on the " i" value dynamically based on my .xml
if i use the below syntax i am getting ORA-30625: method dispatch on NULL SELF argument is disallowed, i tried by uncommenting the commented lines below but the i dont get any compilation error but it returns always null though in this case it has to return when my i = 5, any suggestion how to resolve the ORA error.




declare

l_xmltype XMLTYPE;
p_file_name constant varchar2(50) :='xx.xml';
v_temp varchar2(100);
begin
l_xmltype := XMLTYPE(bfilename('XMLDIR',p_file_name),
nls_charset_id('AL32UTF8'));
for i in 1..8 loop
dbms_output.put_line('i'||i);
--if l_xmltype.extract('/html/div/table/tbody/tr/td/b/text()') is null then
--v_temp :=null;
--dbms_output.put_line('v_temp:'||v_temp);
--else
v_temp :=l_xmltype.extract('/html/div/table/tbody/tr/td[i]/b/text()').getStringVal();
dbms_output.put_line('v_tmp:'||v_temp);
--end if;
end loop;
end;
/
This post has been answered by Jason_(A_Non) on Dec 3 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2009
Added on Dec 1 2009
9 comments
13,827 views