IBM Support

ConstraintViolationException while saving large Personalization rule.

Technote (troubleshooting)


Problem

While saving large Personalization rule , it shows following error on Personalization portlet.

EJPVP99999E: An error occurred when saving the rule 'Rule name'.

In SystemErr.log following exceptions are thrown.

[8/26/09 18:19:35:500 IST] 00000037 SystemErr R javax.jcr.nodetype.ConstraintViolationException: The value for the binary property ibmpersonalization:contents on node /New Business Roles and Categories exceeds its max length. The max length is 32000 while the value is of length 32074
[8/26/09 18:19:35:500 IST] 00000037 SystemErr R at com.ibm.icm.jcr.ConstraintChecker.validateMaxLength(ConstraintChecker.java:713)
[8/26/09 18:19:35:500 IST] 00000037 SystemErr R at com.ibm.icm.jcr.ConstraintChecker.checkConstraints(ConstraintChecker.java:593)


Cause

This is known issue where Personalization could save rules larger than 32K in a compressed format. This feature is added by PK65714 for IBM WebSphere Portal 6.1.0.0, where large rules can be build and save to repository. However , from version 6.1.0.1 onwards , this feature is turned off by default.


Resolving the problem

In order to enable feature to save large rules in Personalization for IBM WebSphere Portal 6.1.0.1 and higher versions , do as below.

(1) Change property rulesRepository.enableLargeRules to true in PersonalizationService.properties file located at <wp_profile>\PortalServer\config\config\services.

(2) Restart portal server.

Related information

PK65714: CONSTRAINTVIOLATIONEXCEPTION WHEN SAVING PERSO

Document information

More support for: IBM Web Content Manager
Personalization

Software version: 6.1.0.1, 6.1.0.2

Operating system(s): AIX, HP-UX, IBM i, Linux, Solaris, Windows

Software edition: Java edition

Reference #: 1398966

Modified date: 31 August 2009


Translate this page: