axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r549006 - in /webservices/axis2/trunk/c: axiom/test/om/test_om.c build.sh guththila/src/guththila_xml_pull_parser.c src/core/transport/http/receiver/http_svr_thread.c util/src/thread_pool.c
Date Wed, 20 Jun 2007 09:04:23 GMT
Author: dinesh
Date: Wed Jun 20 02:04:22 2007
New Revision: 549006

URL: http://svn.apache.org/viewvc?view=rev&rev=549006
Log:
fixed guththila memory reader bug

Modified:
    webservices/axis2/trunk/c/axiom/test/om/test_om.c
    webservices/axis2/trunk/c/build.sh
    webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c
    webservices/axis2/trunk/c/src/core/transport/http/receiver/http_svr_thread.c
    webservices/axis2/trunk/c/util/src/thread_pool.c

Modified: webservices/axis2/trunk/c/axiom/test/om/test_om.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/test/om/test_om.c?view=diff&rev=549006&r1=549005&r2=549006
==============================================================================
--- webservices/axis2/trunk/c/axiom/test/om/test_om.c (original)
+++ webservices/axis2/trunk/c/axiom/test/om/test_om.c Wed Jun 20 02:04:22 2007
@@ -74,13 +74,16 @@
     
     printf("\nstart test_om_build\n");
         
-    f = fopen(filename, "r");
+    /*f = fopen(filename, "r");
     if (!f)
         return -1;
-
+    */
     /** create pull parser */
-    reader = axiom_xml_reader_create_for_io(environment, read_input, NULL , NULL, NULL);
+    /*reader = axiom_xml_reader_create_for_io(environment, read_input, NULL , NULL, NULL);*/
+    buffer = "<ns1:EchoRequest xmlns:ns1 = 'http://example.com/ws/2004/09/policy' xmlns:wsu
= 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' wsu:Id
= 'SigID-b3a30a12-1ef4-1dc1'><text>Hello</text></ns1:EchoRequest>" ;
 
+    reader = axiom_xml_reader_create_for_memory(environment,
+                 (void*)buffer, axutil_strlen(buffer), "utf-8", AXIS2_XML_PARSER_TYPE_BUFFER);
     if (!reader)
     {
         printf("ERROR CREATING PULLPARSER");
@@ -190,7 +193,8 @@
 /*     if (buffer) */
 /*         AXIS2_FREE(environment->allocator, buffer); */
     printf("\nend test_om_build\n");
-    fclose(f);
+    if (f)
+        fclose(f);
     return 0;
 }
 

Modified: webservices/axis2/trunk/c/build.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/build.sh?view=diff&rev=549006&r1=549005&r2=549006
==============================================================================
--- webservices/axis2/trunk/c/build.sh (original)
+++ webservices/axis2/trunk/c/build.sh Wed Jun 20 02:04:22 2007
@@ -7,7 +7,7 @@
 
 echo "AXIS2C_HOME = ${AXIS2C_HOME}"
 
-sh configure --prefix=${AXIS2C_HOME}
+sh configure --prefix=${AXIS2C_HOME} --enable-guththila
 make 
 make install
 

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c?view=diff&rev=549006&r1=549005&r2=549006
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c Wed Jun 20 02:04:22
2007
@@ -21,7 +21,7 @@
 guththila_create(axutil_env_t * environment,
 				 guththila_reader_t * r)
 {
-    int size = 0;
+    int size = -1;
     guththila_t *parser =
         (guththila_t *) AXIS2_MALLOC(
             environment->allocator, sizeof(guththila_t));

Modified: webservices/axis2/trunk/c/src/core/transport/http/receiver/http_svr_thread.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/receiver/http_svr_thread.c?view=diff&rev=549006&r1=549005&r2=549006
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/receiver/http_svr_thread.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/receiver/http_svr_thread.c Wed Jun 20
02:04:22 2007
@@ -303,3 +303,4 @@
 
     return NULL;
 }
+

Modified: webservices/axis2/trunk/c/util/src/thread_pool.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/thread_pool.c?view=diff&rev=549006&r1=549005&r2=549006
==============================================================================
--- webservices/axis2/trunk/c/util/src/thread_pool.c (original)
+++ webservices/axis2/trunk/c/util/src/thread_pool.c Wed Jun 20 02:04:22 2007
@@ -84,6 +84,7 @@
     return axutil_thread_join(thd);
 }
 
+
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axutil_thread_pool_exit_thread(axutil_thread_pool_t *pool,
     axutil_thread_t *thd)



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message