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
  • 1.  Run time NPE with xquery

    Posted Tue January 23, 2007 05:40 PM

    Hi,
    I’m using Tamino 4.4 tools with the query below :

    let $no-hrjc-ids := input()/employeeHRRecord/employee[not(jobCategory) or jobCategory = '']/LDAPUid
    for $u in input()/user[jobcategory][not(jobcategory = '')]/uid[. = $no-hrjc-ids]
    return $u

    When I run an explain or query it fails with the following the following exception

    
    java.lang.NullPointerException @
    com.softwareag.xtools.basic.dm.ResponseImpl.getResponseXElement(Unknown Source)

    Any ideas?

    Thanks

    Ryan


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Run time NPE with xquery

    Posted Tue January 23, 2007 08:33 PM

    That looks like a problem with the Java code you’ve used to submit the query, not with the query itself. To be sure, try executing the query from the Tamino Interactive Interface — if that works, you know the problem is in your use of the API, not in the XQuery.


    #Tamino
    #API-Management
    #webMethods


  • 3.  RE: Run time NPE with xquery

    Posted Sat February 17, 2007 02:08 PM

    As I said in my previous post I’m using Tamino Tool 4.4, so I guess its more Tamino’s use of the API, because the query works in my implementation of the API and in the II :smiley:


    #API-Management
    #Tamino
    #webMethods