You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Unai Uribarri (JIRA)" <ax...@ws.apache.org> on 2004/12/30 11:59:03 UTC

[jira] Created: (AXISCPP-345) Server thread locks when fails to load the service shared library

Server thread locks when fails to load the service shared library
-----------------------------------------------------------------

         Key: AXISCPP-345
         URL: http://nagoya.apache.org/jira/browse/AXISCPP-345
     Project: Axis-C++
        Type: Bug
 Environment: RedHat 9
    Reporter: Unai Uribarri


When HandlerLoader can't load a library, it raises an exception and several locks are left in held state.
Following request hangups forever.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (AXISCPP-345) Server thread locks when fails to load the service shared library

Posted by "Fred Preston (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-345?page=all ]
     
Fred Preston closed AXISCPP-345:
--------------------------------


> Server thread locks when fails to load the service shared library
> -----------------------------------------------------------------
>
>          Key: AXISCPP-345
>          URL: http://issues.apache.org/jira/browse/AXISCPP-345
>      Project: Axis-C++
>         Type: Bug

>   Components: Server - Engine
>  Environment: RedHat 9
>     Reporter: Unai Uribarri
>     Assignee: Chinthana Danapala
>      Fix For: current (nightly)
>  Attachments: SharedObjectLocking.diff
>
> When HandlerLoader can't load a library, it raises an exception and several locks are left in held state.
> Following request hangups forever.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXISCPP-345) Server thread locks when fails to load the service shared library

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-345?page=history ]

Samisa Abeysinghe updated AXISCPP-345:
--------------------------------------

    Component: Server - Engine

> Server thread locks when fails to load the service shared library
> -----------------------------------------------------------------
>
>          Key: AXISCPP-345
>          URL: http://issues.apache.org/jira/browse/AXISCPP-345
>      Project: Axis-C++
>         Type: Bug
>   Components: Server - Engine
>  Environment: RedHat 9
>     Reporter: Unai Uribarri
>  Attachments: SharedObjectLocking.diff
>
> When HandlerLoader can't load a library, it raises an exception and several locks are left in held state.
> Following request hangups forever.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (AXISCPP-345) Server thread locks when fails to load the service shared library

Posted by "Chinthana Danapala (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-345?page=all ]

Chinthana Danapala reassigned AXISCPP-345:
------------------------------------------

    Assign To: Chinthana Danapala

> Server thread locks when fails to load the service shared library
> -----------------------------------------------------------------
>
>          Key: AXISCPP-345
>          URL: http://issues.apache.org/jira/browse/AXISCPP-345
>      Project: Axis-C++
>         Type: Bug
>   Components: Server - Engine
>  Environment: RedHat 9
>     Reporter: Unai Uribarri
>     Assignee: Chinthana Danapala
>  Attachments: SharedObjectLocking.diff
>
> When HandlerLoader can't load a library, it raises an exception and several locks are left in held state.
> Following request hangups forever.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXISCPP-345) Server thread locks when fails to load the service shared library

Posted by "Unai Uribarri (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXISCPP-345?page=history ]

Unai Uribarri updated AXISCPP-345:
----------------------------------

    Attachment: SharedObjectLocking.diff

Instead of just solve this particular locking bug, I've reworked the SharedObject framework to use the Scoped Locking pattern.
To lock an object, just creates a <Lock> object passing a pointer to the object to lock. The lock is released automatically at lock destruction or manually calling the unlock method.
This way, the code is more simple and the locks are always unlocked when a exception is raised (don't forget that any allocation, such as the push_back method of the containers, can raise an exception).

What do you think of this change?


> Server thread locks when fails to load the service shared library
> -----------------------------------------------------------------
>
>          Key: AXISCPP-345
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-345
>      Project: Axis-C++
>         Type: Bug
>  Environment: RedHat 9
>     Reporter: Unai Uribarri
>  Attachments: SharedObjectLocking.diff
>
> When HandlerLoader can't load a library, it raises an exception and several locks are left in held state.
> Following request hangups forever.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXISCPP-345) Server thread locks when fails to load the service shared library

Posted by "Chinthana Danapala (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-345?page=all ]
     
Chinthana Danapala resolved AXISCPP-345:
----------------------------------------

    Fix Version: current (nightly)
     Resolution: Fixed

Applied the patch given in issue
Reworked the SharedObject framework to use the Scoped Locking pattern 
It's working fine and tested with the test frame work.


> Server thread locks when fails to load the service shared library
> -----------------------------------------------------------------
>
>          Key: AXISCPP-345
>          URL: http://issues.apache.org/jira/browse/AXISCPP-345
>      Project: Axis-C++
>         Type: Bug
>   Components: Server - Engine
>  Environment: RedHat 9
>     Reporter: Unai Uribarri
>     Assignee: Chinthana Danapala
>      Fix For: current (nightly)
>  Attachments: SharedObjectLocking.diff
>
> When HandlerLoader can't load a library, it raises an exception and several locks are left in held state.
> Following request hangups forever.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira