axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sathya Raghunathan" <>
Subject Segmentation fault while sending a message to server
Date Wed, 19 Sep 2007 13:56:31 GMT

I generated code with WSDL2C in axis2java2-1.3.

Once the C code is generated, i compiled the code and made a shared library.
After this i copied the shared library adn the service.xml to services
folder in the repository and started the axis2_http_server. When i gave
http://localhost:9090/soap from browser, i am able to see my service
"Deployed Services*parseMessage **Available Operations*

   - parseMessage"

But when i send a message from client I am getting segmentation fault. I
copied hello.c sample client code, and changed at appropriate places.
  greet_om_ele = axiom_element_create(env, NULL, "parseMessage", NULL,
  axiom_element_set_text(greet_om_ele, env, "I am sending a parse Message!",

And it gave a segmentation fault. Please let me know whether i am sending it
correctly or not. I am attaching the files generated for input message as
well as the stack trace. Please help.


[Switching to Thread -1222382672 (LWP 6863)]
0xb7553a97 in axis2_msg_recv_make_new_svc_obj (msg_recv=0x8094ef0,
env=0x809d298, msg_ctx=0x0) at msg_recv.c:157
157         AXIS2_SVC_SKELETON_INIT((axis2_svc_skeleton_t *)impl_class,
(gdb) where
#0  0xb7553a97 in axis2_msg_recv_make_new_svc_obj (msg_recv=0x8094ef0,
env=0x809d298, msg_ctx=0x0) at msg_recv.c:157
#1  0xb7553b2b in axis2_msg_recv_get_impl_obj (msg_recv=0x8094ef0,
env=0x809d298, msg_ctx=0x809dcb8) at msg_recv.c:184
#2  0xb75540a9 in axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync
(msg_recv=0x8094ef0, env=0x809d298,
    msg_ctx=0x809dcb8, new_msg_ctx=0x809f580) at
#3  0xb7553f32 in axis2_msg_recv_invoke_business_logic (msg_recv=0x8093f78,
env=0x809d298, in_msg_ctx=0x809dcb8,
    out_msg_ctx=0x809f580) at msg_recv.c:372
#4  0xb7553db7 in axis2_msg_recv_receive_impl (msg_recv=0x8094ef0,
env=0x809d298, msg_ctx=0x809dcb8,
    callback_recv_param=0x0) at msg_recv.c:304
#5  0xb7553f7e in axis2_msg_recv_receive (msg_recv=0x8093f78, env=0x809d298,
msg_ctx=0x809dcb8, callback_recv_param=0x0)
    at msg_recv.c:407
#6  0xb754ca7a in axis2_engine_receive (engine=0x809ed48, env=0x809d298,
msg_ctx=0x809dcb8) at engine.c:288
#7  0xb75dc387 in axis2_http_transport_utils_process_http_post_request
(env=0x809d298, msg_ctx=0x809dcb8,
    in_stream=0x809d2c0, out_stream=0x809d2f0, content_type=0x809c010
    content_length=134868296, soap_action_header=0x0,
    request_uri=0x809dec8 "")
at http_transport_utils.c:485
#8  0xb75db7f4 in axis2_http_worker_process_request (http_worker=0x809cb00,
env=0x809d298, svr_conn=0x809d2b0,
    simple_request=0x809d350) at http_worker.c:299
#9  0xb750df94 in axis2_svr_thread_worker_func (thd=0x809d230,
data=0x809cb20) at http_svr_thread.c:256
#10 0xb759a094 in dummy_worker (opaque=0x8093f78) at thread_unix.c:85
#11 0xb73b4dac in start_thread () from /lib/tls/
#12 0xb73419ea in clone () from /lib/tls/

View raw message