Joerg Hoh created JCR-5237:
------------------------------

             Summary: JsonParser can emit EmptyStackException when parsing 
invalid JSON
                 Key: JCR-5237
                 URL: https://issues.apache.org/jira/browse/JCR-5237
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-jcr-commons
    Affects Versions: 2.20.0
            Reporter: Joerg Hoh


(see SLING-13171)

{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}

The JsonParser should wrap the EmptyStackException into an IOException so it 
can get properly handled.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to