Question
Agent does not start with error java.lang.NoClassDefFoundError
Hi,
While starting QueueBulkcaseupload agent following error is shown on "Agent Management" landing page:
java.lang.String cannot be cast to org.json.simple.JSONObject
In logs following error has occurred during this start-up:
Exception during engine invocation: com.pega.pegarules.management.internal.system.operations.jobs.AgentManagementJob.invokeOperation java.lang.NoClassDefFoundError: com/pega/pegarules/session/internal/async/AgentQueue$AgentNotification
Found this related support article about this error: https://community.pega.com/support/support-articles/stop-agent-and-it-cant-be-started
This article mentions that root cause is node's cache was not in sync with the database.
Can someone help how to prevent this node cache sync issue? Our Pega cluster is hosted in AWS as EC2 instances. Cluster has 4 nodes (2 are categorized as background nodes and 2 are categorized as web user nodes). We have auto scaling process as part of which nodes will be brought down to 2 during 8 PM and again nodes will be brought back to 4 nodes at 8 AM.
Would this constant node updates can cause this sync issue? How this can be prevented?
Thanks in advance .
Regards
Murali
Hi,
We are facing this issue bit frequently.
Any clues on this please?
Thanks,
Murali