Question
Error(s) detected while generating java. Compiler reported
Facing runtime error on one node in Prod while executing one of the functions. Also, when I try generating the function/library, it throws the same exception ( as below). Runtime it's failing on only one node while working on others. This was working fine and started happening after the server restart today (without cache clear).
What could be the reason and how to resolve the same? Quick help is appreciated.
Error(s) detected while generating java. Compiler reported: ---------- 1. ERROR in /com/pegarules/generated/NegativeSearch_010701_sUU1234X0M03VMZL_FLpYw.java (at line 104) org.apache.commons.text.similarity.LevenshteinDistance test = org.apache.commons.text.similarity.LevenshteinDistance.getDefaultInstance(); ^^^^^^^^^^^^^^^^^^^^^^^ org.apache.commons.text cannot be resolved to a type ---------- 2. ERROR in /com/pegarules/generated/NegativeSearch_010701_sUU1234X0M03VMZL_FLpYw.java (at line 104) org.apache.commons.text.similarity.LevenshteinDistance test = org.apache.commons.text.similarity.LevenshteinDistance.getDefaultInstance(); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ org.apache.commons.text.similarity.LevenshteinDistance cannot be resolved to a type ---------- ---------- 3. ERROR in /com/pegarules/generated/NegativeSearch_010901_eL7LuNaHGIRczJxnWBka2w.java (at line 104) org.apache.commons.text.similarity.LevenshteinDistance test = org.apache.commons.text.similarity.LevenshteinDistance.getDefaultInstance(); ^^^^^^^^^^^^^^^^^^^^^^^ org.apache.commons.text cannot be resolved to a type ---------- 4. ERROR in /com/pegarules/generated/NegativeSearch_010901_eL7LuNaHGIRczJxnWBka2w.java (at line 104) org.apache.commons.text.similarity.LevenshteinDistance test = org.apache.commons.text.similarity.LevenshteinDistance.getDefaultInstance(); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ org.apache.commons.text.similarity.LevenshteinDistance cannot be resolved to a type ---------- 4 problems (4 errors) Compile failed
***Edited by Moderator Marissa to update platform capability tags****
Greetings.
What is your PRPC version? Could you please attach the compilation log for the /com/pegarules/generated/NegativeSearch_010701_sUU1234X0M03VMZL_FLpYw.java?
It should be present in the same path in PegaTemp where this java file is generated.
Also, provide the output of the below SQL query:
select distinct pzjar from <pegarules schema name>.pr_engineclasses where pzclass like '%org.apache.commons%';
Thanks,
Sibasis