0 Replies Latest reply: Jul 17, 2012 5:09 AM by 949968 RSS

    ORA-24550: signal received: [si_signo=11] error while using OAQ receive

    949968
      Hi All,

      I am trying to read a message from Oracle queue using OCCI.
      I am getting this run time error:

      ORA-24550: signal received: [si_signo=11] [si_errno=0] [si_code=2] [si_int=-389971137] [si_ptr=0x34e8c1833f] [si_addr=0x615db0]
      Killed.


      I have checked for the line that is throwing error and found below line causing it:
      *messageFromQueue = cons.receive(Message::RAW);


      It seems like RECEIVE function is throwing this error:


      Here is my code:

      void Cdatabase::connect(string user, string passwd, string db)
      throw (SQLException)
      {
      env = Environment::createEnvironment(Environment::OBJECT);
      conn = env->createConnection (user, passwd, db);
      messageFromQueue = new Message(env);
      }

      unsigned char * Cdatabase::readQueueMessage(int &mlen) throw(SQLException)
      {
      Consumer cons(conn);

      cons.setConsumerName("CUSTQ");
      cons.setPositionOfMessage(Consumer::DEQ_FIRST_MSG);
      cons.setDequeueMode(Consumer::DEQ_REMOVE);
      cons.setWaitTime(Consumer::DEQ_NO_WAIT);

      //Dequeue the message
      cons.setQueueName("CUSTORACLEQUEUE");

      *messageFromQueue = cons.receive(Message::RAW);
      Bytes out3 = messageFromQueue->getBytes();
      .......... }

      Please help me with this.