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

John Hawkins updated AXISCPP-548:
---------------------------------

    Component: XML parser abstraction layer

> 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
>     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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to