You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2022/12/19 15:32:00 UTC

[jira] [Resolved] (ARTEMIS-4115) ArrayIndexOutOfBoundsException when duplicate cache size is 0

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

Justin Bertram resolved ARTEMIS-4115.
-------------------------------------
    Fix Version/s: 2.28.0
       Resolution: Fixed

> ArrayIndexOutOfBoundsException when duplicate cache size is 0
> -------------------------------------------------------------
>
>                 Key: ARTEMIS-4115
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4115
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>             Fix For: 2.28.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When the duplicate ID cache size is set to {{0}} (e.g. via broker properties) this exception occurs when sending a message with a {{_AMQ_DUPL_ID}} header:
> {noformat}
> java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
> 	at org.apache.activemq.artemis.core.postoffice.impl.IntegerCache.lambda$boxedInts$0(IntegerCache.java:52)
> 	at org.apache.activemq.artemis.core.postoffice.impl.PersistentDuplicateIDCache.addToCacheInMemory(PersistentDuplicateIDCache.java:271)
> 	at org.apache.activemq.artemis.core.postoffice.impl.PersistentDuplicateIDCache.addToCache(PersistentDuplicateIDCache.java:235)
> 	at org.apache.activemq.artemis.core.postoffice.impl.PersistentDuplicateIDCache.addToCache(PersistentDuplicateIDCache.java:225)
> 	at org.apache.activemq.artemis.core.postoffice.impl.PersistentDuplicateIDCache.addToCache(PersistentDuplicateIDCache.java:202){noformat}



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