Targeting Content Rule Error

26 March 2009
by Gavin Colborne

A Problem

I came across the error below yesterday when editing a content page and spent some time working out what was wrong.
Rule Error

We also found that our Content Deployments to the live website started failing with the errors I mention at the bottom of this page.

Our Solution
You probably have a corrupt Targeting Rule that needs to be removed or fixed.
Check if you have added a new rule to a page in the TeamSite system before you had this error.
Once you find the rule that is most likely causing the issue you need to do the following:
1. Delete or repair the rule concerned
2. If you delete the rule make sure you remove it from all the pages it was implemented it
3. Submit the default.sitemap file – this will promote the changes from step 1
4. Now submit the pages that were failing and you should be successful
It is worth noting that in our case the “broken” rule was one whose definition was “if the user is null”.
The content rule that was at fault was the one below, notice the “User is null”:
Edit Content Rule

If you have this error in your Interwoven Targeting system then I hope this article is of help to you.
If you would like to about Content Targeting in your business please call us on 0207 193 2014 or email [email protected]

Errors seen in logs
The following are the various errors seen in logs at the time:
The JavaScript error seen in the LiveSite page:
“An error occured while saving the page. Contact your system administrator for details.”
In the workflow task screen:
Error during task execution: Production Deployment, message: failed to process segment rule apps *** START STACK TRACE *** com.interwoven.livesite.rules.ilog.RuleAppUtils.getContentRuleAppArchives
(RuleAppUtils.java:239) com.interwoven.livesite.rules.ilog.RuleAppUtils.getContentRuleApps(RuleAppUtils.java:196) com.interwoven.livesite.opendeploy.impl.OpenDeploymentServiceAdapter.buildDeployment(OpenDeploymentServiceAdapter.java:154) com.interwoven.livesite.opendeploy.impl.OpenDeploymentServiceAdapter.buildDeployments(OpenDeploymentServiceAdapter.java:222) com.interwoven.livesite.opendeploy.impl.OpenDeploymentServiceAdapter.buildDeployments(OpenDeploymentServiceAdapter.java:55) com.interwoven.livesite.deployment.impl.BaseDeploymentService.buildDeploymentList(BaseDeploymentService.java:213) com.interwoven.livesite.deployment.impl.BaseDeploymentService.deployFiles(BaseDeploymentService.java:85) com.interwoven.livesite.workflow.task.DeploymentTask.deployFiles(DeploymentTask.java:82)
com.interwoven.livesite.workflow.task.DeploymentTask.handleExecution(DeploymentTask.java:51) com.interwoven.livesite.workflow.task.AbstractUrlExternalTask.execute(AbstractUrlExternalTask.java:83)
*** END STACK TRACE *** [a389045: 3/23/09 12:11:44 PM ]
In the server side /usr/iw-home/ilog/jboss/server/default/log/server.log:
2009-03-20 14:13:02,772 WARN  [org.apache.commons.digester.Digester] [ConverterRule]{faces-config/converter}
Merge(null,java.math.BigDecimal)
2009-03-20 14:13:02,783 WARN  [org.apache.commons.digester.Digester] [ConverterRule]{faces-config/converter}
Merge(null,java.math.BigInteger)
2009-03-20 14:13:02,993 WARN  [org.apache.commons.digester.Digester] [NavigationRuleRule]{faces-config/navigation-rule} Merge(*)
2009-03-20 14:13:51,634 INFO  [STDOUT] Mar 20, 2009 2:13:51 PM ilog.rules.teamserver.model.IlrMessages getString
WARNING: no localized String for this key : RA_description_default_package_key
2009-03-20 14:13:51,711 INFO  [STDOUT] [Fatal Error] :-1:-1: Premature end of file.
2009-03-20 14:13:51,712 INFO  [STDOUT] Mar 20, 2009 2:13:51 PM ilog.rules.shared.util.IlrXmlUtil parseXmlFile
WARNING: Premature end of file.
2009-03-20 14:13:52,622 INFO  [STDOUT] Mar 20, 2009 2:13:52 PM ilog.rules.teamserver.ejb.ruleset.IlrRulesetArchiveGenerator
generateRulesetArchive
INFO: ——————————-
2009-03-20 14:13:52,623 INFO  [STDOUT] Mar 20, 2009 2:13:52 PM ilog.rules.teamserver.ejb.ruleset.IlrRulesetArchiveGenerator
generateRulesetArchive
INFO: ====> Overall time: 32007ms
From the server side servletd_out.log:
select = 0
NULL TASK
2009-03-20 14:22:44,056 ERROR com.interwoven.livesite.workflow.task.DeploymentTask – execute: error during task execution:
Production Deployment, message: failed to process segment rule apps
java.lang.RuntimeException: failed to process segment rule apps
at com.interwoven.livesite.rules.ilog.RuleAppUtils.getContentRuleAppArchives(RuleAppUtils.java:239)
etc etc etc…
Caused by: com.interwoven.livesite.rules.RuleException: java.lang.ClassCastException: ilog.rules.teamserver.brm.ra.IlrRAElementError
at com.interwoven.livesite.rules.ilog.TeamServerDal.getRuleSet(TeamServerDal.java:743)
at com.interwoven.livesite.rules.ilog.TeamServerDal.getRuleAppArchive(TeamServerDal.java:674)
at com.interwoven.livesite.rules.ilog.RuleAppUtils.buildContentRuleAppArchive(RuleAppUtils.java:281)
at com.interwoven.livesite.rules.ilog.RuleAppUtils.getContentRuleAppArchives(RuleAppUtils.java:227)
… 51 more
Caused by: java.lang.ClassCastException: ilog.rules.teamserver.brm.ra.IlrRAElementError
at com.interwoven.livesite.rules.ilog.TeamServerDal.getRuleSet(TeamServerDal.java:725)
… 54 more
If you would like to about Content Targeting in your business please call us on 0207 193 2014 or email [email protected].

Our Latest News