0 Replies Latest reply on Mar 16, 2005 3:09 PM by 436968

    HTTP adapter bug in XMLFromAOConverter

    436968
      Hello,

      I got ClassCastException while my HTTP adapter sending message to an external application.

      I tried it with versions 10.1.2 and 9.0.4. Both of them produced the exactly same exception (only the line numbers were different in stack trace).

      The adapter was correctly subscribed in iStudio using DTD file and CopyFields transformation.

      The message was received from HUB and successfully converted from MSG doctype. BUT when it is converted into output XML format, the following error has occured (details from logfile):

      ---- start details (as in 10.1.2 HTTP adapter logfile)

      "date": Received a message from hub queue oai_hub_queue.
      <?xml version = '1.0' encoding = 'UTF-8'?>
      <!DOCTYPE MSG>
      <MSG>
      [...]
      "date": Inbound Transform Engine: done transforming messag
      e. Message will now be given to the Bridge.
      Main_Events.EVEMT_NAME:OAI/V1,OAI/V1,false,0
      hub-test
      HEADER
      MESSAGE_ID: 13
      SERIAL: 13
      COMMAND: COMMAND
      BODY
      ID: 1
      PASSWORD: PASSWORD
      PHONE: 2040780

      "date": Agent: ** Error ** Bridge had an error processing the received message.
      Main_Events.EVENT_NAME:OAI/V1,OAI/V1,false,0
      [...]
      java.lang.ClassCastException
      at oracle.oai.agent.client.XMLFromAOConverter.addObjectAttribute(XMLFromAOConverter.java:347)
      at oracle.oai.agent.client.XMLFromAOConverter.addObjectAttribute(XMLFromAOConverter.java:400)
      at oracle.oai.agent.client.XMLFromAOConverter.addObjectAttribute(XMLFromAOConverter.java:343)
      at oracle.oai.agent.client.XMLFromAOConverter.addObjectAttribute(XMLFromAOConverter.java:255)
      at oracle.oai.agent.client.XMLFromAOConverter.toXML(XMLFromAOConverter.java:146)
      at oracle.oai.agent.client.XMLFromAOConverter.getXMLData(XMLFromAOConverter.java:92)
      at oracle.oai.agent.client.AgentImpl.convertMessageObjectToXML(AgentImpl.java:257)
      at oracle.oai.agent.adapter.technology.TechBridge.messageReceived(TechBridge.java:929)
      at oracle.oai.agent.client.SmartQueueDispatcher.run(SmartQueueDispatcher.java:489)

      ---- end details ----

      When I tried DTDs which "depth" is only 1, eg.:
      hub-test
      field1: abc
      field2: efg
      the adapter works fine.

      Has somebody any idea to solve this critical problem?
      Thanks in advance, Jana