popeye
13th May 2002, 21:41
Hi,
Is there a limitation on the size of a string field that can be passed thru a BOI?
I have a string (length = 250) that's being passed thru the BOI.
The field is a part of the structure thatÂ’s being passed.
It gives me a fatal error whenever the length is on the higher side.
Works fine if the field has just 20-30 chars.

The BOI works fine (even if the length = 250 chars) when it's being called from the Program script.
But it throws a fatal error whenever I try to receive a "big" string thru the Java Client.
Check the attachment for the error mesg.
So I am assuming that there is a problem with the Java Client.

I am confused (as usual).
Cheers,
Popeye!

popeye
14th May 2002, 00:56
hi,
i was just playing with the script.
here is what i found ...
the java client starts throwing fatal errors whenever the # of chars in the field exceed 127 (Binary = 1111 111).
so does java have this restriction? so ..... is there something like
bigstring or something ?
cheers,
p!

popeye
14th May 2002, 19:25
looks like the limitation is in the IDL.
how do i declare a string of length > 127 in the IDL?
cheers
p!

Jeyaseelan
15th May 2002, 14:51
Yes, there is a limitation on the size of the string field to be passed to the BOI's which are built using BOIBuilder session. When u build a BOI using BOIBuilder it sets the maximum size of the string field to be passed. But if u are good in 4GL u can always make changes in the 4GL DLL which is located in the application directory of the bshell.
Normally this problem wont occur if u are using BOI's based on the OpenWorld Adapter.

popeye
16th May 2002, 03:26
Hi Jeeyasilan,
I did NOT use BOI Builder to create this BOI. I created it on my own. This BOI is different from the "Standard" BOI methods. In the BOI I have the String as 240 characters. It works fine when I called it thru a 3 GL. But messes up when I call thru a java Client.

I think the IDL can't handle strings > 127 characters. Is this true?
If yes, how do I go about doing it?

For the time being I am splitting the 240 string into 2 strings (120 x 2).

I don't like it though.

Thanks for the reply.
Cheers,
P!