How to avoid 'java.lang.IllegalArgumentException: Argument must be a String or NativeString instance'

dipanjansaha
Kilo Contributor

java.lang.IllegalArgumentException: Argument must be a String or NativeString instance
 Caused by error in Script Include: 'test_si'at line 50

 47: for(var j=0; j<arrCI[classname].length; j+= Size) 
 48: { 
 49: CI = arrCI[classname].slice(j, j+kSize);
==> 50: this._buildRule(gr, CI, true); 
 51: } 
 52: } 
 53: }

This is causing huge log generation.

Kindly let me know the remedy of this.

2 REPLIES 2

Chuck Tomasi
Tera Patron

It's hard to tell without a better view of the context. What is _buildRule() expecting?

What is arrCI? Is it an array of an array? An array of objects?

What Size?

What is it expected to do?

dipanjansaha
Kilo Contributor

Hope the below given info will help me to explain the scenario in a easy way.

java.lang.IllegalArgumentException: Argument must be a String or NativeString instance
Caused by error in Script Include: 'test_si' at line 39

36: {
37: if (gr.u_active == true)
38: {
==> 39: gr.setValue('u_active',false);
30: //gr.u_active = false;//this line also generate the same error
31: gr.update();
32: }