Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Agent not being updated



Due to a Declarative page containing a java object which triggers an error with the master agent. Agents are behaving erratically.

Error Messages

2017-07-21 00:00:32,616 [PRPCWorkManager : 14] [ STANDARD] [ PegaRULES:07.10] ( internal.clipboard.XMLStream) ERROR - IOException caught during serialization of Java Object value of property D_RetailImageCache.Content of class java.util.HashMap. Message:
at java.util.HashMap.writeObject(
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.pega.pegarules.exec.internal.declare.infengine.pages.DeclarativePageInstanceImpl.size(
at com.pega.pegarules.session.internal.mgmt.base.AbstractDataPageHandler.estimateDataSize(
at com.pega.pegarules.session.internal.mgmt.PRNodeImpl.getDeclarativePageSize(

Steps to Reproduce

  1. Create a Declare page with a java object which is storing a clipboard page.
  2. Wait for the master agent to run (every 10 minutes) to display some information in PRPC logs such as Declare page size.

Root Cause

The root cause is the use of unseralizable java object via the following scenario:

1. Create a property A of type java object with class: java.util.HashMap 

2. Create a declare page which gets populated by an activity which will populate this property A. The hashmap is populated by code as follows: 

java.util.HashMap map = new java.util.HashMap(); 


3.  Run an activity which will trigger the declare page. After 10 minutes maximum, see the error in the logs: 

ERROR - IOException caught during serialization of Java Object value of property D_RetailImageCache.Content of class java.util.HashMap. Message:

The error is raised as the hashmap contains ClipboardPageImpl objects which are not serializable.

The goal there was to use an hashmap instead of a clipboard page for performance reason in order to iterate fast.

But the hashmap can't contain a clipboard property object as otherwise PRPC will raise serializable error.

The solution consists in extracting value needed from the clipboard page and copy it in the hashmap as String (or other serizaliable object) but not as clipboard object.


Use the following code to populate the java object is an example which will avoid the serializable error:

java.util.HashMap map = new java.util.HashMap();

ClipboardPage p = tools.findPage("pxRequestor");
java.util.Map container = new java.util.HashMap();

Iterator it = p.keySet().iterator();
while (it.hasNext()) {

  String name= (String);
  //oLog.infoForced("this is the name"+name);
   String type=String.valueOf(p.getType(name));
  //oLog.infoForced("this is the type"+type);
  String mode=String.valueOf(p.getMode(name));
  //oLog.infoForced("this is the mode"+mode);
  //Text and single property only saved
    //put back into the cache 
   oLog.infoForced("This is the name of the property we save in the map:"+name);
                        ((java.util.HashMap)map).put( name, p.getProperty(name).getStringValue());



Published July 23, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us