3 Replies Latest reply on Nov 29, 2005 6:08 AM by 450961

    oracle.jms.AQjmsException: JMS-157: IO Exception

      I have written my own JMS adapter that writes messages to a SYS.AQ$_JMS_BYTES_MESSAGE queue.

      I often functions fine, but I sometimes get the following error, on the call to writeUTF on the BytesMessage:

      oracle.jms.AQjmsException: JMS-157: IO Exception
           at oracle.jms.AQjmsError.throwEx(AQjmsError.java:269)
           at oracle.jms.AQjmsBytesMessage.writeUTF(AQjmsBytesMessage.java:917)
           at my.own.adapter.JMSMessageWriter.messageReceived(JMSMessageWriter.java:208)
           at oracle.oai.agent.client.SmartQueueDispatcher.run(SmartQueueDispatcher.java:457)
           at java.lang.Thread.run(Unknown Source)

      I suspect it may have something to do with the size of the message as it only happens on the larger of the messages, but I haven't determined that for sure.

      I am having trouble figuring out what is wrong????

      I tried this '-Doracle.jms.traceLevel=5' in the adapter start file, but no extra info is logged.

      Code extract

      jms_session = ((AQjmsConnection) lConn).createQueueSession(true, 0);
      queue = ((AQjmsSession) jms_session).getQueue(user, topic);
      sender = ((AQjmsSession) jms_session).createSender(queue);
      pMo.setStartTime(); // pMO = MessageObject

      BytesMessage lBytesMsg = jms_session.createBytesMessage();
      String messageXML = mXMLFromAOConverter.toXML(pMo);

      Any help would be greatly appreciated

      Kind regards