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
  • 1.  Insert problem / TXMLObject adapter

    Posted Wed January 22, 2003 10:36 AM

    Hi,

    I have a peculiar problem:

    I insert documents into Tamino through the
    TStreamAccessor insert method.
    The code resides in a Tomcat web application.
    After inserting some 200 documents and restarting
    Tomacat, the following error message appears:
    >>>
    com.softwareag.common.instrumentation.contract.ViolatedPrecondition: Violated Precondition:
    TXMLObject adapter class does not provide appropiate constructor
    <<<

    HELP!


    Cheers,

    Hokan

    This applies to
    Tamino: 3.1.1.4
    TaminoAPI4J: 3.1.2.4
    System: WIndows NT


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


  • 2.  RE: Insert problem / TXMLObject adapter

    Posted Wed January 22, 2003 04:19 PM

    Hi again,

    I have one more information:

    If the Exception is caught and the request is
    repeated, the operation is completed successfully.

    I will use this solution in the application and hope for the best…

    Cheers,

    Hokan


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


  • 3.  RE: Insert problem / TXMLObject adapter

    Posted Fri January 24, 2003 09:58 AM

    Hi Hokan,

    This PreconditionViolation can only arise when you try to instantiate a TXMLObject from an Object (Java class) that is not supported by the API with:
    TXMLObject.newInstance( Object object )

    Could you please send the relevant code fragment of you application?

    Stefan

    [This message was edited by Stefan Liebig on 24 Jan 2003 at 09:39.]


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


  • 4.  RE: Insert problem / TXMLObject adapter

    Posted Fri January 24, 2003 04:51 PM

    Hi Stefan,

    The error always occur on the same spot within a loop:
    TResponse resp = null;
    try {
    resp = oAccessor.query(TQuery.newInstance(docType+“/@LastMod”));


    It have the impression that it only occurs for one docType. The one with the most instances
    (1000).

    Cheers,

    Hokan


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


  • 5.  RE: Insert problem / TXMLObject adapter

    Posted Fri May 23, 2003 03:22 PM

    Hi,

    I just found the exaplanation to the notorious
    com.softwareag.common.instrumentation.contract.ViolatedPrecondition problem:

    It happens when the jvm runs out of memory.
    Strange, isn’t it?

    Cheers,

    Hokan


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