IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

UPDATE-ERROR: runtime type exception

  • 1.  UPDATE-ERROR: runtime type exception

    Posted Thu November 03, 2005 12:05 PM

    Hi!

    I’m trying to execute a XQuery to insert an element in my database. I get the following error message:
    “Runtime type exception”
    I have no idea, what could be wrong here. Can anybody help me?

    Katharina

    This is my Query:
    *****************

    <ino:response xmlns:ino="http://namespaces.softwareag.com/tamino/response2" xmlns:xql="http://metalab.unc.edu/xql/">
    <xq:query xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result">
    <![CDATA[ 
    update insert 
    <Brandwand ID="1080267500">
    <bezeichnung>BEZ</bezeichnung>
    <innerer_Abschnitt>no</innerer_Abschnitt>
    <funktion>TW</funktion>
    <feuerwiderstandsklasse>F30</feuerwiderstandsklasse>
    <Wand_id_Liste>
    <wand_id>1071</wand_id>
    </Wand_id_Liste>
    </Brandwand>
    into input()/Bs_Bauteil_Liste[@gebaeude_id="1"]/Brandwand_Liste
    
    ]]> 
    </xq:query>
    <ino:message ino:returnvalue="0">
    <ino:messageline>XQuery Update Request processing</ino:messageline> 
    </ino:message>
    <xq:result xmlns:xq="http://namespaces.softwareag.com/tamino/XQuery/result" /> 
    <ino:message ino:returnvalue="6301">
    <ino:messagetext ino:code="INOXQE6301">Runtime type exception</ino:messagetext> 
    </ino:message>
    </ino:response>

    This is my schema:
    ******************

    <?xml version = "1.0" encoding = "UTF-8"?>
    <xs:schema xmlns:tsd = "http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition" xmlns:xs = "http://www.w3.org/2001/XMLSchema">
    <xs:annotation>
    <xs:appinfo>
    <tsd:schemaInfo name = "Bs_Bauteil_Liste">
    <tsd:collection name = "Hessen"></tsd:collection>
    <tsd:doctype name = "Bs_Bauteil_Liste">
    <tsd:logical>
    <tsd:content>closed</tsd:content>
    </tsd:logical>
    </tsd:doctype>
    <tsd:adminInfo>
    <tsd:server>4.1.4.1</tsd:server>
    <tsd:modified>2004-07-29T16:31:05.625+01:00</tsd:modified>
    <tsd:created>2004-07-29T16:31:05.625+01:00</tsd:created>
    <tsd:version>TSD4</tsd:version>
    </tsd:adminInfo>
    </tsd:schemaInfo>
    </xs:appinfo>
    </xs:annotation>
    <xs:element name = "Bs_Bauteil_Liste">
    <xs:complexType>
    <xs:sequence minOccurs = "0">
    <xs:element name = "Brandwand_Liste">
    <xs:complexType>
    <xs:sequence minOccurs = "0">
    <xs:element ref = "Brandwand" minOccurs = "0" maxOccurs = "unbounded"></xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    ...
    </xs:sequence>
    <xs:attribute name = "gebaeude_id" type = "xs:long" use = "required"></xs:attribute>
    </xs:complexType>
    </xs:element>
    <xs:element name = "Brandwand">
    <xs:complexType>
    <xs:sequence>
    <xs:element name = "bezeichnung" type = "xs:string"></xs:element>
    <xs:element name = "innerer_Abschnitt" type = "xs:string">
    <xs:annotation>
    <xs:documentation>Nutzungsart des angrenzenden Raumes (z.B Keller, Flur, Wohnung)</xs:documentation>
    </xs:annotation>
    </xs:element>
    <xs:element name = "funktion" type = "xs:string"></xs:element>
    <xs:element name = "feuerwiderstandsklasse" type = "xs:string"></xs:element>
    <xs:element name = "Wand_id_Liste">
    <xs:complexType>
    <xs:sequence minOccurs = "0">
    <xs:element name = "wand_id" type = "xs:long" minOccurs = "0" maxOccurs = "unbounded"></xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name = "ID" type = "xs:long" use = "required"></xs:attribute>
    </xs:complexType>
    </xs:element>
    ...
    </xs:schema>

    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: UPDATE-ERROR: runtime type exception

    Posted Thu November 03, 2005 12:21 PM

    Hi Katharina,

    one error I found in your query is:
    [@gebaeude_id=“1”]
    This attribute has type long, so it must be
    [@gebaeude_id=1]

    Regards

    Harald


    #webMethods
    #Tamino
    #API-Management