I am updating an JDBC connector and I keep getting
" BeanShell script error: bsh.ParseException: Parse error at line 35, column 12. Encountered: instance BSF info: iSeries JDBC Provisioning at line: 0 column: columnNo"
The rule passes the JSON validator and updates correctly. This is a connector rule.
Hi @krigney,
Would you mind sharing the code wherein the error arises (line 35)?
Create and Modify New iseries.txt (6.4 KB)
@ksbagade, I have uploaded the file. Thank-you
Hi @krigney,
I might have found the issue.
On line 35, I believe instanceof should be a single word, not separated by spaces.
Please let me know if the issue is resolved after trying this fix.
That was the issue thank-you very much
I too got same error
public List getAttributeRequestValue(AccountRequest acctReq, String attribute) {
List values = new ArrayList<>();
if ( acctReq != null ) {
AttributeRequest attrReq = acctReq.getAttributeRequest(attribute);
if ( attrReq != null) {
if(attrReq.getValue() instanceof List){
for(String value:attrReq.getValue()){
values.add(value);
}
}
else if(attrReq.getValue() instanceof String){
values.add(attrReq.getValue());
}
return values;
}
}
return null;
}