axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramesh Gopal <>
Subject Some quick Axis2C help required ---- very very urgent
Date Tue, 18 Nov 2008 11:38:42 GMT

The last time I ran into some issue with my Axis code, I came across lot of suggestions.

Sample xml :

<in0> 111 </in0>
<in0> 222 </in0>

Now I have modified my code as follows :

first_element = axiom_node_get_data_element(node, env);
if ((ci = axiom_element_get_child_elements(first_element, env, node)) != NULL)
        while(AXIS2_TRUE == axiom_child_element_iterator_has_next(ci, env))
            cn = axiom_child_element_iterator_next(ci, env);
            ce = axiom_node_get_data_element(cn, env);
            result = axiom_element_get_text(ce, env, cn);
            textArr[i] = result;

But after these changes, I am getting an error of a different kind (though again a segmentation

#0  0x0053c7a2 in _dl_sysinfo_int80 () from /lib/
#1  0x0017c7f5 in raise () from /lib/tls/
#2  0x0017e199 in abort () from /lib/tls/
#3  0x001b04ea in __libc_message () from /lib/tls/
#4  0x001b6c6f in _int_free () from /lib/tls/
#5  0x001b6fea in free () from /lib/tls/
#6  0x00b16d0b in axutil_allocator_free_impl (allocator=0x9671008, 
    ptr=0x96e16c0) at allocator.c:95
#7  0x00c937e2 in axiom_element_free (om_element=0x96deb90, env=0x96e16c0)
    at om_element.c:741
#8  0x00f39797 in axis2_skel_ws_test_demo_test_demo ()
   from ..//services/ws_test_demo/
#9  0x00f39a0f in axis2_svc_skel_ws_test_demo_invoke ()
   from ..//services/ws_test_demo/
#10 0x009df25d in axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync (
    msg_recv=0x96cdac8, env=0x96d8f78, msg_ctx=0x96d9a88, 
    new_msg_ctx=0x96def08) at raw_xml_in_out_msg_recv.c:209
#11 0x009dedb2 in axis2_msg_recv_invoke_business_logic (msg_recv=0x0, 
    env=0x96d8f78, in_msg_ctx=0x96d9a88, out_msg_ctx=0x96def08)
    at msg_recv.c:397
#12 0x009dee93 in axis2_msg_recv_receive_impl (msg_recv=0x96cdac8, 
    env=0x96d8f78, msg_ctx=0x96d9a88, callback_recv_param=0x0)
    at msg_recv.c:319

As this error says something about freeing ... is it reqd that we free some elements ... Are
I missing something in the code

Or Is it something to do with glibc error. 

Pls suggest ... Any kind of help at the earliest is appreciated.


      Add more friends to your messenger and enjoy! Go to

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message