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 "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> on 2005/06/28 10:21:57 UTC

[jira] Assigned: (AXISCPP-548) Better error msgs when failing to load library

     [ http://issues.apache.org/jira/browse/AXISCPP-548?page=all ]

Samisa Abeysinghe reassigned AXISCPP-548:
-----------------------------------------

    Assign To: Samisa Abeysinghe

> Better error msgs when  failing to load library
> -----------------------------------------------
>
>          Key: AXISCPP-548
>          URL: http://issues.apache.org/jira/browse/AXISCPP-548
>      Project: Axis-C++
>         Type: Bug
>   Components: XML parser abstraction layer
>     Reporter: John Hawkins
>     Assignee: Samisa Abeysinghe
>     Priority: Minor

>
> When failing to load libs we do not put out the last error msg e.g.
> int XMLParserFactory::loadLib()
> {
>     m_LibHandler = PLATFORM_LOADLIB(m_pcLibraryPath);
>     if (!m_LibHandler)
>     {
>         AXISTRACE1("SERVER_ENGINE_LOADING_PARSER_FAILED" , CRITICAL);
>         throw AxisEngineException(SERVER_ENGINE_LOADING_PARSER_FAILED, PLATFORM_LOADLIB_ERROR);
>     }
>     return AXIS_SUCCESS;
> }
> There are already methods in Platform specifics to get the last error msg and these were used in Axis Transport2. I think they are also used in other lib load failure situations. We must change all lib load fails to give as much info as possible.
> /**
>  * Get the last error code from the system.
>  * Please ensure that this is a thread safe implementation
>  * and that it returns a long
>  * @return long the lsat error message for this thread
>  */
> #define GETLASTERROR GetLastError();
> /**
>  * From the last error number get a sensible std::string representing it
>  * @param errorNumber the error Number you are trying to get a message for
>  * @return the error message. NOTE: The caller is responsible for deleting the returned string
>  */
> #define PLATFORM_GET_ERROR_MESSAGE(errorNumber) getPlatformErrorMessage(errorNumber);

-- 
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