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.

 View Only

pub.xml:getNextXMLNode throws NullPointer Exception

  • 1.  pub.xml:getNextXMLNode throws NullPointer Exception

    Posted Mon March 12, 2007 10:31 PM

    Hi,
    I have an incoming xml which I am processing node by node using NodeIterator. However the service pub.xml:getNextXMLNode which is invoked to retrieve the next node throws a Null Pointer exception.

    <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02" xmlns:xsi="[B]http://www.w3.org/2001/XMLSchema-instance[/color][/b][COLOR=#0000ff]">

    Here, is the root tag in the xml, and I am trying to parse a field that is child of the tag by passing appropriate value in the criteria parameter of pub.xml:getXMLNodeIterator service.

    The error is thorwn due to the presence of the xmlns declaration.

    By the way, converting the xml directly using pub.xml:xmlNodeToDocument does not throw any error.

    Can anyone throw some light on why this issue happens and how it can be resolved.
    Thanks in Advance,
    Shaya


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services