activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Nogueira de Souza (JIRA)" <>
Subject [jira] Created: (AMQ-2549) ArrayIndexOutOfBoundsException on MarshallingSupport.writeUTF8 running on OS/390
Date Tue, 22 Dec 2009 19:21:40 GMT
ArrayIndexOutOfBoundsException on MarshallingSupport.writeUTF8 running on OS/390

                 Key: AMQ-2549
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.3.0
         Environment: Operating System: OS/390 v 1.9

Java(TM) SE Runtime Environment (build pmz3160sr5-20090604_01(SR5))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 z/OS s390-31 jvmmz3160sr5-20090519_35743 (JIT
enabled, AOT enabled)
J9VM - 20090519_035743_bHdSMr
JIT  - r9_20090518_2017
GC   - 20090417_AA)
JCL  - 20090529_01
            Reporter: Bruno Nogueira de Souza

I'm facing one ArrayIndexOutOfBoundsException when sending one TextMessage from one producer
running on OS/390.

I'm starting ActiveMQ and the producer on separate JVM in OS/390.

The stack trace is:

        at org.apache.activemq.util.MarshallingSupport.writeUTF8(
        at org.apache.activemq.command.ActiveMQTextMessage.beforeMarshall(
        at org.apache.activemq.openwire.v5.MessageMarshaller.tightMarshal1(
        at org.apache.activemq.openwire.v5.ActiveMQMessageMarshaller.tightMarshal1(
        at org.apache.activemq.openwire.v5.ActiveMQTextMessageMarshaller.tightMarshal1(
        at org.apache.activemq.openwire.OpenWireFormat.marshal(
        at org.apache.activemq.transport.tcp.TcpTransport.oneway(
        at org.apache.activemq.transport.InactivityMonitor.oneway(
        at org.apache.activemq.transport.TransportFilter.oneway(
        at org.apache.activemq.transport.WireFormatNegotiator.oneway(
        at org.apache.activemq.transport.MutexTransport.oneway(
        at org.apache.activemq.transport.ResponseCorrelator.oneway(
        at org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(
        at org.apache.activemq.ActiveMQConnection.asyncSendPacket(
        at org.apache.activemq.ActiveMQSession.send(
        at org.apache.activemq.ActiveMQMessageProducer.send(
        at org.apache.activemq.ActiveMQMessageProducerSupport.send(
        at a.b.c.mmtp.gateway.activemq.ActiveMQCacheConsumer.enviarLote(

Looking at the source of the writeUTF8 method, I saw that it refers to Sun code (in the comments)
and that there are some differences between they.

Looking on the internet I found some info about the size limit of the encoded message (64Kb),
and saw that aren't any checks on the code about that. But I don't think that this is the
problem, because the message that I'm sending has only [140-500] bytes. I think it may be
some issue of converting the EBCDIC encoding.

I really don't know much about UTF, so I think that anyone with knowledge about UTF can do
a better job looking at this code.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message