You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2006/02/07 07:12:19 UTC
svn commit: r375507 - /webservices/axis2/trunk/c/modules/util/class_loader.c
Author: damitha
Date: Mon Feb 6 22:12:17 2006
New Revision: 375507
URL: http://svn.apache.org/viewcvs?rev=375507&view=rev
Log:
added error printing code when dl handler creation failed
Modified:
webservices/axis2/trunk/c/modules/util/class_loader.c
Modified: webservices/axis2/trunk/c/modules/util/class_loader.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/class_loader.c?rev=375507&r1=375506&r2=375507&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/class_loader.c (original)
+++ webservices/axis2/trunk/c/modules/util/class_loader.c Mon Feb 6 22:12:17 2006
@@ -232,7 +232,10 @@
dl_handler = AXIS2_PLATFORM_LOADLIB(dll_name);
if(NULL == dl_handler)
{
- printf("dll_name:%s\n", dll_name);
+ axis2_char_t *errormsg = NULL;
+ /* Diagnose the encountered error. */
+ errormsg = dlerrordup (errormsg);
+ printf("errormsg:%s\n", errormsg);
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_DLL_LOADING_FAILED,
AXIS2_FAILURE);
return AXIS2_FAILURE;