You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Joerg Hoh (Jira)" <ji...@apache.org> on 2026/05/20 13:33:00 UTC
[jira] [Commented] (SLING-13171) Improve resilience of loading dictionaries
[ https://issues.apache.org/jira/browse/SLING-13171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18082330#comment-18082330 ]
Joerg Hoh commented on SLING-13171:
-----------------------------------
With the PR [https://github.com/apache/sling-org-apache-sling-i18n/pull/22] we switched to Apache Johnzon to parse the JSON instead of the implementation in Jackrabbit Commons.
> Improve resilience of loading dictionaries
> ------------------------------------------
>
> Key: SLING-13171
> URL: https://issues.apache.org/jira/browse/SLING-13171
> Project: Sling
> Issue Type: Improvement
> Components: i18n
> Affects Versions: i18n 2.6.2
> Reporter: Joerg Hoh
> Assignee: Joerg Hoh
> Priority: Major
> Fix For: i18n 3.0.2
>
>
> if a ResourceBundle provided as JSON has an incorrect structure, the entire process of loading ResourceBundles will fail.
> {noformat}
> 15.04.2026 11:26:18.692 *ERROR* [sling-default-4-ResourceBundleProvider: reload all resource bundles] org.apache.sling.commons.scheduler.impl.QuartzScheduler Exception during job execution of job 'org.apache.sling.i18n.impl.JcrResourceBundleProvider$1@2e21ddaa' with name 'ResourceBundleProvider: reload all resource bundles' : null
> java.util.EmptyStackException: null
> at java.base/java.util.Stack.peek(Stack.java:103)
> at java.base/java.util.Stack.pop(Stack.java:85)
> at org.apache.jackrabbit.commons.json.JsonParser.parse(JsonParser.java:165)
> at org.apache.jackrabbit.commons.json.JsonParser.parse(JsonParser.java:73)
> at org.apache.sling.i18n.impl.JcrResourceBundle.loadJsonDictionary(JcrResourceBundle.java:295) [org.apache.sling.i18n:2.6.6]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)