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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  bug in TXMLObjectAccessorImpl

    Posted 11/23/02 04:53 PM

    I think I have discovered a bug in method query(TQuery,int) in the class com.softwareag.tamino.db.API.accessor.TXMLObjectAccessorImpl

    The problematic lines from my code:
    TLocalTransaction myTransaction = connection.useLocalTransactionMode();
    TResponse response = accessor.query(query,2);

    The result looks like this:
    java.lang.NumberFormatException:
    at java.lang.Integer.parseInt(Integer.java:435)
    at java.lang.Integer.parseInt(Integer.java:463)
    at com.softwareag.tamino.db.API.response.TXMLObjectFetchingIterator.(Unknown Source)
    at com.softwareag.tamino.db.API.response.TResponseBuilderImpl.newXMLObjectFetchingIterator(Unknown Source)
    at com.softwareag.tamino.db.API.response.TResponseBuilderImpl.doBuild(Unknown Source)
    at com.softwareag.tamino.db.API.response.TResponseBuilderImpl.buildForXML(Unknown Source)
    at com.softwareag.tamino.db.API.accessor.TXMLObjectAccessorImpl.query(Unknown Source)

    The query without the limit works fine.
    I am using the newest (yesterday) version of TaminoAPI4J.

    Jesper


    #API-Management
    #webMethods-Tamino-XML-Server-APIs
    #webMethods


  • 2.  RE: bug in TXMLObjectAccessorImpl

    Posted 11/25/02 10:45 AM

    Could you please provide us with some more information?
    Please state the exact version number of the API (TSystemAccessor.getAPIVersion()) and the versionnumber of the Tamino XML Server you are running against (TSystemAccesor.getServerVersion()). Please give us also some more lines of your code, beginning from where you aquire the TConnection up to where the exception is thrown.
    Thanks!


    #webMethods
    #webMethods-Tamino-XML-Server-APIs
    #API-Management


  • 3.  RE: bug in TXMLObjectAccessorImpl

    Posted 11/25/02 07:02 PM



    TConnection connection = TConnectionFactory.getInstance().newConnection(DATABASE_URI);
    TXMLObjectAccessor accessor = connection.newXMLObjectAccessor( TAccessLocation.newInstance(“userdb”), TJDOMObjectModel.getInstance());
    TQuery query =TQuery.newInstance(xpathString);
    TLocalTransaction myTransaction = connection.useLocalTransactionMode();
    TResponse response = accessor.query(query,2);


    #webMethods
    #API-Management
    #webMethods-Tamino-XML-Server-APIs


  • 4.  RE: bug in TXMLObjectAccessorImpl

    Posted 11/26/02 01:00 PM

    The exception does not occur in the query() method, but while processing the response from Tamino. The reason that it works without the pagesize is that the Tamino response is interpreted differently in that case.
    Hovever, for pinpointing exactly what happens, we would need the query. Could you please provide us with the query string? Thanks!


    #webMethods-Tamino-XML-Server-APIs
    #webMethods
    #API-Management