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.  500 on PUT with TWS 4.1.1

    Posted Fri March 07, 2003 04:20 AM

    Hi

    I received the following:

    WARN [07 Mar 2003 02:55:04,265 log4j.Log4jLogger:log@152]: Service com.softwareag.xtools.xdav.store.XContentStore@158015a access error : com.softwareag.tamino.db.API.accessor.TInsertException: NestedException:Retry after session mode update failed.
    NestedException:Transaction mode cannot be updated. Problems parsing input stream.
    NestedException:Failure updating the session state: SessionId: ->71, SessionKey: ->2581929
    Cause: NestedException:Retry after session mode update failed.
    NestedException:Transaction mode cannot be updated. Problems parsing input stream.
    NestedException:Failure updating the session state: SessionId: ->71, SessionKey: ->2581929

    I’ve attached parts of xdav.log and nt_service.

    Any clues as to what this means and what to do about it?

    thanks

    Jason
    xdav.log (68.8 KB)


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: 500 on PUT with TWS 4.1.1

    Posted Fri March 07, 2003 04:23 AM


  • 3.  RE: 500 on PUT with TWS 4.1.1

    Posted Fri March 07, 2003 07:24 AM

    Hi Jason,

    couldn’t read your nt_service_jvm_stdout.log. Did the exception rise after the server was long time up, during a heavy load situation or was this a single put soon after the server started?

    Regards,
    Martin


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: 500 on PUT with TWS 4.1.1

    Posted Fri March 07, 2003 10:52 AM

    Hi,

    got the nt_service_jvm_stdout.log. Its hard to give a definitive answer.
    Tamino somehow decided to stop the session, the next access to Tamino with that session id fails.

    The concrete Tamino error (timeout, …) cannot be seen in the exception. So if this problem persists, you may adjust the Tamino server settings (timeouts, XML work threads, …).

    Please refer to Tamino WebDAV Server documentation, Tips&Tricks, The WebDAV environment receives heavy loads and the system reacts with errors [invalid session id, cannot connect, port in use, … ].

    Hope this helps,
    Martin


    #API-Management
    #Tamino
    #webMethods


  • 5.  RE: 500 on PUT with TWS 4.1.1

    Posted Fri March 07, 2003 11:03 AM

    Hello Jason,

    are you able to reproduce the problem? Is the DB still running? Which version of Tamino are you running.

    Best regards

    Juergen


    #Tamino
    #API-Management
    #webMethods


  • 6.  RE: 500 on PUT with TWS 4.1.1

    Posted Mon March 10, 2003 05:18 AM

    Hi Juergen and Martin

    I’m running Tamino 4.1.1.1 (I think it patched to 4.1.1.2, but SMH still says 4.1.1.1)

    Yes, I can reproduce the problem. After much experimentation, the problem is simple to re-create. Use the Tamino WebDAV basic client to:

    PUT /taminowebdavserver/yourCollection/testE.xyz HTTP/1.1
    Content-length: 72
    Authorization: Basic QWRtaW5pc3RyYXRvcjpjaGFuZ2VtZQ==
    Host: 192.168.1.52:4000

    with content:

    <?xml version="1.0" encoding="UTF-8"?>
    humpty dumpty

    then PUT this again (just hit the exclamation mark).

    The response is:

    HTTP/1.1 500 Internal Server Error: Service com.softwareag.xtools.xdav.store.XContentStore@cade31 access error : com.softwareag.tamino.db.API.accessor.TInsertException: NestedException:Retry after session mode update failed.
    NestedException:Transaction mode cannot be updated. Problems parsing input stream.
    NestedException:Failure updating the session state: SessionId: ->82, SessionKey: ->528575724
    Cause: NestedException:Retry after session mode update failed.
    NestedException:Transaction mode cannot be updated. Problems parsing input stream.
    NestedException:Failure updating the session state: SessionId: ->82, SessionKey: ->528575724

    In order to reproduce the problem, PUT xml content twice to a URL with an extension other than “.xml”. The problem occurs on the second PUT.

    The problem will occur if the content is different on each PUT, as soon as two consecutive PUTs have the same root element.

    The problem occurs with or without a DOCTYPE declaration.

    The problem does not occur with Tamino 3.1.2/ TWS 3.1.4. I have not tested Tamino 3.1.2 with TWS 4.1.1 though.

    Fwiw, i’ve just now looked at administration/etc/globals/deltav.xml

    It contains:


    /history/${store}
    /workspace/${store}
    /workingresource/${store}
    checkout-checkin
    false
    /administration
    forbidden
    forbidden
    org.apache.slide.webdav.util.resourcekind.AbstractResourceKind
    org.apache.slide.webdav.util.DeltavUriRedirector


    Hmmm, this is not what I put there. It is different to Domain.xml, which contains what i expected to see in deltav.xml:

    forbidden
    /history/${store}
    true
    /workspace/${store}
    forbidden
    /workingresource/${store}
    checkout-unlocked-checkin

    cheers,

    Jason


    #API-Management
    #webMethods
    #Tamino


  • 7.  RE: 500 on PUT with TWS 4.1.1

    Posted Mon March 10, 2003 05:28 AM

    A work around is to set the Content-Type header on PUT to text/xml


    #webMethods
    #Tamino
    #API-Management