Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4877288

ArrayIndexOutOfBounds exception in LinkedList.toArray(Object []).

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 3.0.1sp1
    • core-libs

      This bug was originally filed against JMQ category (Sun ONE Message Queue
      JMS server). After analyzing the MQ broker code it appears that the root
      cause is an ArrayIndexOutOfBounds exception in java.util.LinkedList. Please
      see the evaluation notes added by app server and MQ engineers for more
      details...

      To summarize -

      JDK : 1.4.2-rc
      Platform : Solaris 10 for x86 running on an LX-50 machine.
      Test : App server MDB stress test.
      Sequence of events :

      1. ArrayIndexOutOfBoundsException in a java.util.LinkedList
         object used by the MQ broker causes JMS message routing
         failure. The stack trace can be found in the evaluation
         section of this bug.

      2. The message routing failure causes a JMSException in the
         JMS client (i.e. the app server) and the test fails...

      ###@###.### 2003-06-22

      -----------------------------------------------------------------------------

      Original Description :

      Sol 10 x86 build 35:
      After running EJB/MDB stress test 10 hours, we saw following exception happened:
      [09/Jun/2003:00:57:20] WARNING ( 3303): StatefulSessionContainer.passivateEJB(), passivation failed, hence react
      ivating the bean
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: javax.jms.JMSException: [C4036]: A server error occurr
      ed.
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.sun.messaging.jmq.jmsclient.ProtocolHandl
      er.writeJMSMessage(ProtocolHandler.java:1229)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.sun.messaging.jmq.jmsclient.WriteChannel.
      sendWithFlowControl(WriteChannel.java:120)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.sun.messaging.jmq.jmsclient.WriteChannel.
      writeJMSMessage(WriteChannel.java:73)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.sun.messaging.jmq.jmsclient.SessionImpl.w
      riteJMSMessage(SessionImpl.java:511)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.sun.messaging.jmq.jmsclient.MessageProduc
      erImpl.writeJMSMessage(MessageProducerImpl.java:101)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.sun.messaging.jmq.jmsclient.MessageProduc
      erImpl.send(MessageProducerImpl.java:425)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.sun.messaging.jmq.jmsclient.TopicPublishe
      rImpl.publish(TopicPublisherImpl.java:73)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.s1as.e2e.richAccess.servlet.messageGenera
      teServ.generateMsg(Unknown Source)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.s1as.e2e.richAccess.servlet.messageGenera
      teServ.processRequest(Unknown Source)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.s1as.e2e.richAccess.servlet.messageGenera
      teServ.doGet(Unknown Source)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpSe
      rvlet.java:740)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpSe
      rvlet.java:853)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
      .invokeServletService(StandardWrapperValve.java:720)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
      .access$000(StandardWrapperValve.java:118)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
      $1.run(StandardWrapperValve.java:278)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at java.security.AccessController.doPrivileged(N
      ative Method)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve
      .invoke(StandardWrapperValve.java:274)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:505)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at org.apache.catalina.core.StandardContextValve
      .invoke(StandardContextValve.java:212)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:505)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.in
      voke(StandardHostValve.java:203)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.inv
      oke(StandardPipeline.java:505)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProc
      essor.process(NSAPIProcessor.java:157)
      [09/Jun/2003:02:51:44] WARNING ( 3303): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebC
      ontainer.java:598)

      Our machine is iasperflx2.red.iplanet.com. you may get the log in /var/appserver/domains/domain1/server1/logs.
      ###@###.### 2003-06-11
      ###@###.### 2003-06-11
      ###@###.### 2003-06-22

            jjb Josh Bloch
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: