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
Expand all | Collapse all

Threads die due to problems catching exceptions

  • 1.  Threads die due to problems catching exceptions

    Posted Fri January 28, 2005 02:40 PM

    Hi,

    I am executing some queries using “Tamino API for Java” from a Websphere Portlet. Those queries are executed in separate threads.

    Because of an implementation error, a thread could execute one query using a closed connection so it generated an error.
    The problem is that I catch all posible exceptions (using Exception class in catch clause) but the thread dies due to the closed connection situation.

    This is the server log…

    [1/27/05 9:15:24:856 CET] 410f788a SystemErr R com.softwareag.common.instrumentation.contract.ViolatedPrecondition: Violated Precondition: Connection with Tamino is closed. Commands cannot be invoked on Tamino anymore!

    [1/27/05 9:15:24:926 CET] 410f788a SystemErr R at com.softwareag.common.instrumentation.contract.Precondition.check(Unknown Source)(Compiled Code)

    [1/27/05 9:15:24:926 CET] 410f788a SystemErr R at com.softwareag.tamino.db.API.invocation.http.THTTPInvocation.doInvoke(Unknown Source)

    [1/27/05 9:15:24:926 CET] 410f788a SystemErr R at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.doTemplateInvoke(Unknown Source)

    [1/27/05 9:15:24:946 CET] 410f788a SystemErr R at com.softwareag.tamino.db.API.invocation.TAbstractInvocation.invoke(Unknown Source)

    [1/27/05 9:15:24:946 CET] 410f788a SystemErr R at com.softwareag.tamino.db.API.accessor.TAbstractAccessor.invoke(Unknown Source)

    [1/27/05 9:15:24:946 CET] 410f788a SystemErr R at com.softwareag.tamino.db.API.accessor.TStreamAccessorImpl.query(Unknown Source)

    [1/27/05 9:15:24:946 CET] 410f788a SystemErr R at com.softwareag.tamino.db.API.accessor.TXMLObjectAccessorImpl.query(Unknown Source)

    [1/27/05 9:15:25:046 CET] 410f788a SystemErr R at es.ahold.business.qac.common.bl.entity.TaminoBaseEntity.executeQuery

    why the error is not caught? has that precondition an special processing?

    thanks.

    Cesar


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


  • 2.  RE: Threads die due to problems catching exceptions

    Posted Fri March 11, 2005 09:36 AM

    Hi

    ViolatedPrecondition is an error and not exception. Meaning com.softwareag.common.instrumentation.contract.ViolatedPrecondition class extends java.lang.Error class and not java.lang.Exception. And thats why you are not able to catch it.

    Regards,

    Vikram Shinde


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