1 Reply Latest reply on Jan 24, 2005 2:21 PM by 436968

    Primitive attribute TestInteger is of unsupported type 2

    434422

      I am getting this error subscribing a message from Interconnect using an FTP adapter. The attribute 'TestInteger', which is the problem,

      is set to be of type 'Integer' both in the common view and in the application view on both the publishing and the subscribing side.

      Did anybody experience this error?? And what could I do to avoid it?

      Furthermore it seems like this error crashes the FTP adapter. The message is lost and the FTP adapter hangs....:-(
      I have to use 'kill -9' to shut it down, and when I restart it, it has forgotten all about this message. I would expect it to try to

      resend the message getting back up. I cache data in the persistence.

      Regards,

      Peter


      -----------Testdata---------------
      <?xml version="1.0" encoding="UTF-8"?>
      <TestV1>
           <TestString>String</TestString>
           <TestInteger>1</TestInteger>
           <TestDate>2004-11-02T10:02:43.103</TestDate>
           <TestBoolean>1</TestBoolean>
      </TestV1>


      -----------DTD---------------
      <?xml version="1.0" encoding="UTF-8"?>
      <!ELEMENT TestV1 (TestString, TestInteger, TestDate, TestBoolean)>
      <!ELEMENT TestBoolean (#PCDATA)>
      <!ELEMENT TestDate (#PCDATA)>
      <!ELEMENT TestInteger (#PCDATA)>
      <!ELEMENT TestString (#PCDATA)>


      -----------From log---------------
      Received a message from hub queue oai_hub_queue.
      <?xml version = '1.0' encoding = 'UTF-8'?>
      <!DOCTYPE MSG>
      <MSG>
      <H>
      <BO>monitoring</BO>
      <EN>NewTest</EN>
      <EV>OAI/V1</EV>
      <MV>OAI/V1</MV>
      <T>0</T>
      <SN>FTP_MONITORING1</SN>
      <SA>FTP_MONITORING1</SA>
      <SAID>21</SAID>
      <CI>FTP_MONITORING11102612972406</CI>
      <EC>UTF-8</EC>
      </H>
      <B>
      <AO N = "NewTest_CO">
      <A N = "TestString">String</A>
      <A N = "TestInteger">1</A>
      <A N = "TestDate">2004-11-02T10:02:43.103</A>
      <A N = "TestBoolean">1</A>
      </AO>
      </B>
      </MSG>.
      Inbound Transform Engine: beginning to transform message.

      Inbound Transform Engine: performing transform.
      Transform: CopyFields
      Source Fields: [NewTest_CO:OAI/V1.TestString]
      Destination Fields: [monitoring_NewTest_OAI_V1_S:OAI/V1.TestV1.TestString]
      Source values: [String]
      Params: [[]
      Inbound Transform Engine: done performing transform CopyFields.
      Results: [String]

      Inbound Transform Engine: performing transform.
      Transform: CopyFields
      Source Fields: [NewTest_CO:OAI/V1.TestInteger]
      Destination Fields: [monitoring_NewTest_OAI_V1_S:OAI/V1.TestV1.TestInteger]
      Source values: [1]
      Params: [[]
      Inbound Transform Engine: done performing transform CopyFields.
      Results: [1]

      Inbound Transform Engine: performing transform.
      Transform: CopyFields
      Source Fields: [NewTest_CO:OAI/V1.TestDate]
      Destination Fields: [monitoring_NewTest_OAI_V1_S:OAI/V1.TestV1.TestDate]
      Source values: [2004-11-02T10:02:43.103]
      Params: [[]
      Inbound Transform Engine: done performing transform CopyFields.
      Results: [2004-11-02T10:02:43.103]

      Inbound Transform Engine: performing transform.
      Transform: CopyFields
      Source Fields: [NewTest_CO:OAI/V1.TestBoolean]
      Destination Fields: [monitoring_NewTest_OAI_V1_S:OAI/V1.TestV1.TestBoolean]
      Source values: [1]
      Params: [[]
      Inbound Transform Engine: done performing transform CopyFields.
      Results: [1]

      Inbound Transform Engine: done transforming message. Message will now be given to the Bridge.
      monitoring.NewTest:OAI/V1,OAI/V1,false,0
      TestV1
      TestString: String
      TestInteger: 1
      TestDate: 2004-11-02T10:02:43.103
      TestBoolean: 1

      Agent: ** Error ** Bridge had an error processing the received message.
      monitoring.NewTest:OAI/V1,OAI/V1,false,0
      TestV1
      TestString: String
      TestInteger: 1
      TestDate: 2004-11-02T10:02:43.103
      TestBoolean: 1

      oracle.oai.agent.common.AgentRuntimeException: Primitive attribute TestInteger is of unsupported type 2.
           at oracle.oai.agent.client.XMLFromAOConverter.addObjectAttribute(XMLFromAOConverter.java:289)
           at oracle.oai.agent.client.XMLFromAOConverter.addObjectAttribute(XMLFromAOConverter.java:192)
           at oracle.oai.agent.client.XMLFromAOConverter.toXML(XMLFromAOConverter.java:91)
           at oracle.oai.agent.client.XMLFromAOConverter.getXMLData(XMLFromAOConverter.java:72)
           at oracle.oai.agent.client.AgentImpl.convertMessageObjectToXML(AgentImpl.java:218)
           at oracle.oai.agent.adapter.technology.TechBridge.messageReceived(TechBridge.java:835)
           at oracle.oai.agent.client.SmartQueueDispatcher.run(SmartQueueDispatcher.java:463)
           at java.lang.Thread.run(Thread.java:536)