JaninoEventEvaluator is no longer available.

 
[Occurrence condition and issue that occurs]

When intra-mart Accel Platform is updated to 2025 Autumn or later version, and if JaninoEventEvaluator is used in the log settings file, the following error will be output when the application is started.

* Pattern 1: If the class attribute of the EvaluatorFilter property "evaluator" is specified in the log settings file as JaninoEventEvaluator.

[ERROR] j.c.i.c.p.l.u.LogbackUtil - [] [ERROR] ch.qos.logback.core.model.processor.ImplicitModelHandler - Could not create component [filter] of type [ch.qos.logback.classic.boolex.JaninoEventEvaluator]

* Pattern 2: If the class attribute of the EvaluatorFilter property "evaluator" is not specified in the log settings file (if JaninoEventEvaluator, which is implemented by default, is used)

[ERROR] j.c.i.c.p.l.u.LogbackUtil - [] [ERROR] ch.qos.logback.core.filter.EvaluatorFilter@7b8d84de - No evaluator set for filter null


If this error is output, you will need to replace the JaninoEventEvaluator with your own EventEvaluator implementation class.
*If you do not take the appropriate measure, the log settings file may not be loaded properly, which may cause problems with log output.


[Cause]

Logback has been upgraded to version 1.3.15 on intra-mart Accel Platform 2025 Autumn.
As of this update, JaninoEventEvaluator has been removed from Logback. Therefore, if you use this function in your log settings file, you need to replace JaninoEventEvaluator with your own EventEvaluator implementation class.


[Handling method]

If you are using JaninoEventEvaluator in the log settings file, please follow the steps below.

1. Create your own EventEvaluator implementation class
Create your own EventEvaluator implementation class by referring to the JaninoEventEvaluator page in the official Logback document.
For details, please refer to the intra-mart Accel Platform Log Specifications - EventEvaluator.

2. Create a user module and add it to the WAR file
Add the EventEvaluator implementation class you created to the WAR file as a user module.

3. Modify the log settings file
Modify the parts that used JaninoEventEvaluator to reference the custom implementation class you created.

   [Before]
   <evaluator class="ch.qos.logback.classic.boolex.JaninoEventEvaluator">
       <expression>message.contains("xxxx")</expression>
   </evaluator>

   [After]
   <evaluator class="xxxx.xxxx.xxxx.xxxx" /><!-- Specify your own EventEvaluator implementation class -->

【Note】

In the intra-mart Accel Platform 2025 Spring or earlier versions, JaninoEventEvaluator was used as the default implementation when the class attribute of the EvaluatorFilter property "evaluator" was not specified.
Therefore, even if you do not explicitly specify JaninoEventEvaluator in your log settings file, it is necessary to take the measure when there is an evaluator element shown below.

   <evaluator /> <!-- If the default implementation is used without specifying the class attribute -->

Check your log settings file and if the evaluator element exists, take appropriate action.


4. Deploy the modified log settinges file

 The log settings file can be placed in the following cases:

  - If you have modified the log settings file of the product standard
   Place the modified log settings file under conf/log/ in the Juggling project, output the WAR file, and deploy it.

  - If you are using a log settings file created by yourself
   Create a user module by placing a settings file under conf/log/ in e Builder and add it to your Juggling project, or place it under conf/log/ in the Juggling project to output and deploy a WAR file.

For details, please refer to intra-mart Accel Platform Log Specifications -Editing the log configuration file.

[FYR]

* intra-mart Accel Platform log specifications - EventEvaluator
https://document.intra-mart.jp/library/iap/public/im_core/im_log_specification/texts/log_class/filter/index.html#eventevaluator

* intra-mart Accel Platform Log Specifications - Editing the log configuration file
https://document.intra-mart.jp/library/iap/public/im_core/im_log_specification/texts/overview/index.html#%E3%83%AD%E3%82%B0%E8%A8%AD%E5%AE%9A%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E7%B7%A8%E9%9B%86

* intra-mart Accel Platform Setup Guide - Maintenance work required for IM-Juggling at the time of update -Updated from 2025 Spring (Kamille) - [If the contents of various log setting file have been changed]
https://document.intra-mart.jp/library/iap/public/setup/iap_setup_guide/texts/create_war/update_module/editing_configuration_file.html#id31

* Logback official document - JaninoEventEvaluator
https://logback.qos.ch/manual/filters.html#JaninoEventEvaluator

--Target-------------------------------------------------------------------------
iAP/Accel Platform/2025 Autumn or later
--------------------------------------------------------------------------------

FAQID:1435
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk