Support Article

File Listener is throwing errors in the log

SA-37009

Summary



Very recently user updated to Pega 7.2.2.

Post this they are occasionally getting errors in log files.

It seems to happen about once per 200-500 files.

The behavior of the file listeners is fine and files are being processed successfully. It is just that user getting these errors in the logs which in turn means that they get error count on the file listeners.


Error Messages




com.pega.pegarules.pub.clipboard.InvalidParameterException: InvalidParameter Class not defined in dictionary: Rule-Service-nullaClassName .createPage

Caught throwable processing some_file_name.xml com.pega.pegarules.pub.PRException: PRException

Caused by: com.pega.pegarules.pub.services.ServiceException: Authorization failed, please contact system administrator.
at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.handleAuthentication(ServiceAPI.java:1629)
at com.pega.pegarules.integration.engine.internal.services.ServiceAPI.setRequestorPrivileges(ServiceAPI.java:3397)


Steps to Reproduce



1) Create a File Listener.
2) Runtime, test the listener with 200-500 files.


Root Cause



A defect in Pegasystems’ code or rules.

If authentication is enabled for file listener. It will call ServiceAPI.setRequestorPrivileges() method where service type is not set.

so the class formed is RULE-Service-null, which is causing the issue.

Hence the defect exist in below files:
  • com/pega/pegarules/integration/engine/internal/services/ServiceAPI.java
  • com/pega/pegarules/integration/engine/internal/services/file/RuleServiceFile.java
  • com/pega/pegarules/integration/engine/internal/services/file/FileActionImpl.java

Resolution



Apply HFix-33841.

Published April 25, 2017 - Updated May 10, 2017


100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.