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.  ProcessPersons.java

    Posted 10/14/03 11:28 AM

    I have a trouble with the example from Tamino 4.1.4 Documentation: ProcessPersons.java when I run it I get the output

    ProcessPersons sample programm
    ==============================
    Connecting to Tamino database http://localhost/tamino/mydb, … server is alive
    Here is some systeminformation
    ------------------------------
    The Tamino server hosting http://localhost/tamino/mydb is version 4.1.4.1
    (Server API version: 4.1, Tamino API for Java version: 4.1.4.2)
    Insert and query and delete in default collection “ino:etc”
    -----------------------------------------------------------
    com.softwareag.common.instrumentation.contract.ViolatedPrecondition: Violated Precondition: No InputStream given.
    at com.softwareag.common.instrumentation.contract.Precondition.check(Unknown Source)
    at com.softwareag.tamino.db.API.objectModel.dom.TDOMReader.read(Unknown Source)
    at com.softwareag.tamino.db.API.objectModel.dom.TDOMReader.read(Unknown Source)
    at com.softwareag.tamino.db.API.objectModel.dom.TDOMAdapter.readFrom(Unknown Source)
    at com.softwareag.tamino.db.API.objectModel.dom.TDOMAdapter.readFrom(Unknown Source)Reading documents from file and insert into database
    at com.softwareag.tamino.db.API.examples.person.ProcessPersons.performInsertPersonFromFile(ProcessPersons.java:114)
    at com.softwareag.tamino.db.API.examples.person.ProcessPersons.main(ProcessPersons.java:227)
    Exception in thread “main”
    **
    Please advice on what is it that might be wrong.
    Thanks


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


  • 2.  RE: ProcessPersons.java

    Posted 10/14/03 12:17 PM

    Hi,
    It looks as if your example xml files are missing. There should be five files called person1.xml…person5.xml, and they must exist in the same location as the executed class file. Normally this means in the file system directory: com\softwareag\tamino\db\API\examples\person
    If you changed the package structure of the examples, you need to move the example xml files to the same location as your class.
    The source code and examples can be unpacked from file JavaTaminoAPIExamples.jar in your Tamino/SDK/TaminoAPI4J/examples location.
    Hope this helps.


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