You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/06/30 15:42:00 UTC

[jira] [Commented] (ARTEMIS-6129) Broker can't deal with empty foreign JMS MapMessage

    [ https://issues.apache.org/jira/browse/ARTEMIS-6129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18092690#comment-18092690 ] 

ASF subversion and git services commented on ARTEMIS-6129:
----------------------------------------------------------

Commit ab3c5421b4b802ce4192e87529c74ac771590c43 in artemis's branch refs/heads/main from David Voit
[ https://gitbox.apache.org/repos/asf?p=artemis.git;h=ab3c5421b4 ]

ARTEMIS-6129 deal with empty foreign MapMessage

If an empty foreign MapMessage is sent, map encoding is skipped.

> Broker can't deal with empty foreign JMS MapMessage
> ---------------------------------------------------
>
>                 Key: ARTEMIS-6129
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-6129
>             Project: Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> {noformat}
> WARN [org.apache.activemq.artemis.protocol.amqp.logger] AMQ111005: Failed to convert message. Sending it to Dead Letter Address.
> org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.ConversionException: readerIndex(0) + length(1) exceeds writerIndex(0): ReadOnlyByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 558, cap: 558)))
>     at org.apache.activemq.artemis.protocol.amqp.converter.CoreAmqpConverter.fromCore(CoreAmqpConverter.java:320)
>     at org.apache.activemq.artemis.protocol.amqp.converter.CoreAmqpConverter.checkAMQP(CoreAmqpConverter.java:79)
>     at org.apache.activemq.artemis.protocol.amqp.proton.AMQPMessageWriter.writeBytes(AMQPMessageWriter.java:61)
>     at org.apache.activemq.artemis.protocol.amqp.proton.MessageWriter.accept(MessageWriter.java:39)
>     at org.apache.activemq.artemis.protocol.amqp.proton.MessageWriter.accept(MessageWriter.java:28)
>     at org.apache.activemq.artemis.core.server.impl.MessageReferenceImpl.run(MessageReferenceImpl.java:138)
>     at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:173)
>     at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:166)
>     at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
>     at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:405)
>     at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998)
>     at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
>     at org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:120)
> Caused by: java.lang.IndexOutOfBoundsException: readerIndex(0) + length(1) exceeds writerIndex(0): ReadOnlyByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: UnpooledSlicedByteBuf(ridx: 0, widx: 0, cap: 0/0, unwrapped: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 558, cap: 558)))
>     at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1442)
>     at io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:730)
>     at io.netty.buffer.WrappedByteBuf.readByte(WrappedByteBuf.java:529)
>     at org.apache.activemq.artemis.utils.collections.TypedProperties.decode(TypedProperties.java:573)
>     at org.apache.activemq.artemis.utils.collections.TypedProperties.decode(TypedProperties.java:659)
>     at org.apache.activemq.artemis.reader.MapMessageUtil.readBodyMap(MapMessageUtil.java:46)
>     at org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreMapMessageWrapper.decode(CoreMapMessageWrapper.java:220)
>     at org.apache.activemq.artemis.protocol.amqp.converter.CoreAmqpConverter.fromCore(CoreAmqpConverter.java:97)
>     ... 12 more{noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org