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/15 15:31:00 UTC

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

Justin Bertram created ARTEMIS-4115:
---------------------------------------

             Summary: 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


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)