How to avoid 'java.lang.IllegalArgumentException: Argument must be a String or NativeString instance'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2018 06:03 AM
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.
- Labels:
-
Enterprise Asset Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2018 06:31 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2018 01:58 AM
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: }