Support Article
Invalid reference to non-public interface exception in logs
Summary
Administrators observe the exception Invalid reference to non-public interface in the PegaRULES log files.
Error Messages
2016-01-07 12:49:57,802 [ WebContainer : 13] [TABTHREAD1] [ ] [ x:01.01.01] (il.classloader.PRClassLoaderDB) WARN |Invalid reference to non-public interface from class "com.pegarules.generated.activity.ra_action_invoke_a8683c05b95252b595b7e838a5f6da36" to "com.pega.pegarules.storage.fs.resadaptor.OutputStreamWrapper"
Steps to Reproduce
Upon restarting the server, you notice the warnings, which appear on the first restart only:
- Log in to the system.
- Click the Pega product version control at the bottom right corner to display the About PRPC window.
- Click System Information.
You see the warnings in the log file.
Root Cause
This is expected behavior.
The error message originates from a loadClass method in PRClassLoaderDB class. When the package name does not match the public API packages, the error is shown in the log. However, the class loads correctly and there is no functional impact on the application behavior.
Resolution
Perform the following local-change to avoid the error and to resolve the issue temporarily:
Choose to add one of the following settings to the prconfig.xml file and restart the server:
<env name="classloader/publicinterfacepackages" value="com.pega.pegarules.storage" />
<env name="classloader/allowpublicinterfaceonly" value="false" />
Published November 30, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.