Question

2
Replies
120
Views
VishalS4 Member since 2013 5 posts
Virtusa
Posted: 1 year ago
Last activity: 1 year 2 months ago
Closed

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****

Low-Code App Development Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn