You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Kevan Jahanshahi (Jira)" <ji...@apache.org> on 2021/07/23 10:17:00 UTC

[jira] [Updated] (UNOMI-492) Handle NullPointerException with corrupted rules

     [ https://issues.apache.org/jira/browse/UNOMI-492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevan Jahanshahi updated UNOMI-492:
-----------------------------------
    Fix Version/s:     (was: 1.6.0)
                   1.5.7

> Handle NullPointerException with corrupted rules
> ------------------------------------------------
>
>                 Key: UNOMI-492
>                 URL: https://issues.apache.org/jira/browse/UNOMI-492
>             Project: Apache Unomi
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.5.6
>            Reporter: Serge Huber
>            Priority: Major
>             Fix For: 1.5.7
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> We've had some reports of NPEs when rules get corrupted and instead of having a list of actions actually have a NULL reference. 
> This causes the following error in the logs:
> {code}
> 2021-06-10T09:17:47,406 | ERROR | pool-15-thread-1 | RulesServiceImpl                 | 178 - org.apache.unomi.services - 1.5.6 |  Error loading rules from persistence back-end 
> java.lang.NullPointerException: null
>         at org.apache.unomi.services.impl.ParserHelper.resolveActionTypes(ParserHelper.java:101) ~[!/:?]
>         at org.apache.unomi.services.impl.rules.RulesServiceImpl.getAllRules(RulesServiceImpl.java:252) ~[!/:?]
>         at org.apache.unomi.services.impl.rules.RulesServiceImpl.access$100(RulesServiceImpl.java:45) ~[!/:?]
>         at org.apache.unomi.services.impl.rules.RulesServiceImpl$1.run(RulesServiceImpl.java:398) [!/:?]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_292]
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_292]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)