Article View: comp.object.corba
Article #36Re: An Error occured in Sending string array. Help me!!
From: Jake Fear
Date: Fri, 18 Dec 1998 00:00
Date: Fri, 18 Dec 1998 00:00
57 lines
2966 bytes
2966 bytes
The problem is that one of your strings is null. This is a quirk of the
java mapping for strings. A null is acceptable for an object reference,
but a string is not considered and object. You can correct this by
checking for nulls in the array and setting them to array[x] = ""; and
this will be acceptable. It seems like there might be another situation
where this is the case but I can think of it right now. If you want to
send uninitialized arrays as parameters and get them filled you need to
use the holder object that is associated with your typedef. I hope this
is helpful.
Lexus wrote:
>
> Hello All.
> i got a problem....i don't know why....
> i can't send string array(one dimension).
>
> my interface is..below.
> --------------------------------
> typedef sequence<string> temp1;
> typedef sequence<string> temp2;
> typedef sequence<string> temp3;
> typedef sequence<string> temp4;
> interface MyObject
> {
> string Work(in string word, in temp1 param1,
> in temp2 param2, in temp3 param3,
> in temp4 param4);
> };
> };
> ---------------------------------------
> in my Other program...main()
>
> ...
> ...
> MyObject myobj=MyObjectHelper.bind(orb,"lexus MyObj");
>
> .....
> String param1=new String[3][10];
> String param2=new String[3][10];.
> String param3=new String[3][10];.
> String param4=new String[3][10];.
> ....
> ...
> //After Setting param*'s values....
> ...
> String result[]=new String[3];
> for(int i=0;i<3;i++)
> {
> result[i]=new String(Myobj.Work(word,param1[i], <----Exception
> Occured!!!
> param2[i],param[3],param[4]));
> }
> -----------------
> System Exception :org.omg.CORBA.BAD_PARAM[completed=MAYBE]
> Occured....and Process Exit.(process that execute above code)
>
> Implemetation Process is pending...not exit.
Technical Details
Message-ID:
<36792463.A9233E61@home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3656ED9E.5B501444@kideys.com> <367900BE.657C934D@chollian.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108bbb,c4522ab450245c62 X-Google-Attributes: gid108bbb,public X-Google-Thread: f753e,c4522ab450245c62 X-Google-Attributes: gidf753e,public X-Google-Thread: ffda2,c4522ab450245c62 X-Google-Attributes: gidffda2,public X-Google-Thread: 10b07f,c4522ab450245c62 X-Google-Attributes: gid10b07f,public From: Jake Fear <fear1@home.com> Subject: Re: An Error occured in Sending string array. Help me!! Date: 1998/12/18 Message-ID: <36792463.A9233E61@home.com> X-Deja-AN: 423487882 Content-Transfer-Encoding: 7bit References: <3656ED9E.5B501444@kideys.com> <367900BE.657C934D@chollian.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@home.net X-Trace: news.rdc1.sdca.home.com 913952204 24.0.166.123 (Thu, 17 Dec 1998 19:36:44 PDT) Organization: @Home Network MIME-Version: 1.0 NNTP-Posting-Date: Thu, 17 Dec 1998 19:36:44 PDT Newsgroups: comp.object.corba,comp.dcom.servers,comp.lang.java.corba,borland.public.jbuilder.corba-rmi