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

Handshake started by non-AppInputStream code path may trigger race condition

XMLWordPrintable

    • 03
    • x86, sparc
    • solaris_10, windows_2000

        Longevity Test when run with SSL throws "Write Packet Failed" Exception with JDK 1.4.1

        Dual CPU Machine with Windows 2000 SP2 and 1 GB RAM

        Longevity Consumer connects to the broker via ssl
        Lonvevity Producer sends messages to the broker via ssl

        The Exception shows up on the Producer ....
        The Full Stack Trace in the attachment...


        ###@###.### 2002-25-11
        -------------------------------------

        While running the Longevity test over SSL on solaris 9 throws "Write Packet Failed" Exception with JDK 1.4.1_01.
        Sometimes it appeared on Producer side.
        Sometimes it appeared on Consumer side.

        javax.jms.JMSException: [C4001]: Write packet failed. - caught javax.net.ssl.SSLException
                at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
                at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
                at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketNoAck(ProtocolHandler.java:211)
                at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketWithAck(ProtocolHandler.java:391)
                at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketWithReply2(ProtocolHandler.java:277)
                at com.sun.messaging.jmq.jmsclient.ProtocolHandler.hello(ProtocolHandler.java:588)
                at com.sun.messaging.jmq.jmsclient.ConnectionImpl.hello(ConnectionImpl.java:238)
                at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1512)
                at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
                at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
                at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
                at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
                at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:72)
                at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:57)
                at Longevity.SyncUp.SyncUpwithSender(SyncUp.java:120)
                at Longevity.LongevityTConsumer.onMessage(LongevityConsumer.java:125)
                at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.deliverAndAcknowledge(MessageConsumerImpl.java:243)
                at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.onMessage(MessageConsumerImpl.java:207)
                at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:57)
                at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:139)
                at java.lang.Thread.run(Thread.java:536)
        javax.net.ssl.SSLException: Unexpected exception
                at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
                at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
                at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69)
                at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127)
                at com.sun.messaging.jmq.io.ReadOnlyPacket.writePacket(ReadOnlyPacket.java:421)
                at com.sun.messaging.jmq.io.ReadWritePacket.writePacket(ReadWritePacket.java:72)
                at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketNoAck(ProtocolHandler.java:203)
                at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketWithAck(ProtocolHandler.java:391)
                at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketWithReply2(ProtocolHandler.java:277)
                at com.sun.messaging.jmq.jmsclient.ProtocolHandler.hello(ProtocolHandler.java:588)
                at com.sun.messaging.jmq.jmsclient.ConnectionImpl.hello(ConnectionImpl.java:238)
                at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1512)
                at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
                at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
                at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
                at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
                at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:72)
                at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:57)
                at Longevity.SyncUp.SyncUpwithSender(SyncUp.java:120)
                at Longevity.LongevityTConsumer.onMessage(LongevityConsumer.java:125)
                at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.deliverAndAcknowledge(MessageConsumerImpl.java:243)
                at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.onMessage(MessageConsumerImpl.java:207)
                at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:57)
                at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:139)
                at java.lang.Thread.run(Thread.java:536)
        Caused by: java.lang.IllegalStateException: Internal error
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.i(DashoA6275)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
                ... 25 more

              wetmore Bradford Wetmore
              mamanoha Mathirajan Manoharan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: