[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rampart-c-dev
Subject:    [jira] [Updated] (AXIS2C-1641) axis2_amqp_server doesn't run when transportReceiver is enabled
From:       "Ella Mampusti (JIRA)" <jira () apache ! org>
Date:       2013-06-17 5:59:20
Message-ID: JIRA.12653123.1371448692819.123982.1371448760188 () arcas
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/AXIS2C-1641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Ella Mampusti updated AXIS2C-1641:
----------------------------------

    Description: 
We are testing the amqp support in Axis2/C. We successfully configured built Axis2/C \
1.7.0 source codes from the SVN Trunk with amqp enable

./configure --with-apache2=/usr/local/apache2/include/ \
--with-apr=/usr/local/apr/include/apr-1/ --enable-openssl=yes --enable-tcp=yes \
--with-qpid=/usr/local


and successfully generated axis2_amqp_server in $AXIS2C_HOME. However, when we add \
these lines in axis2.xml (according to the manual \
http://axis.apache.org/axis2/c/core/docs/axis2c_manual.html#amqptrans)

<transportReceiver name="amqp" class="axis2_amqp_receiver">
 <parameter name="qpid_broker_ip" locked="false">127.0.0.1</parameter>
 <parameter name="qpid_broker_port" locked="false">5672</parameter>
 </transportReceiver>


 <transportSender name="amqp" class="axis2_amqp_sender"/>

the server didn't start. We also ran it through gdb. axis2.log and gdb trace are \
below.

GDB TRACE:
[root@sg8tb09249 bin]# gdb ./axis2_amqp_server
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/axis2c/bin/axis2_amqp_server...done.
(gdb) run -r /usr/local/axis2c -i 192.168.10.249 -p 5672
Starting program: /usr/local/axis2c/bin/axis2_amqp_server -r /usr/local/axis2c -i \
192.168.10.249 -p 5672 [Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
Missing separate debuginfos, use: debuginfo-install \
boost-program-options-1.41.0-17.el6_4.x86_64 glibc-2.12-1.107.el6.x86_64 \
libgcc-4.4.7-3.el6.x86_64 libstdc++-4.4.7-3.el6.x86_64 \
libuuid-2.17.2-12.9.el6_4.3.x86_64 zlib-1.2.3-25.el6.x86_64 (gdb) backtrace
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff7765ee6 in axis2_conf_builder_process_transport_recvs \
(conf_builder=0x60e9b0, env=0x60c790, trs_recvs=0x624ce0) at conf_builder.c:1162 #2  \
0x00007ffff7766a4b in axis2_conf_builder_populate_conf (conf_builder=0x60e9b0, \
env=0x60c790) at conf_builder.c:259 #3  0x00007ffff776033d in axis2_dep_engine_load \
(dep_engine=0x60c8c0, env=0x60c790) at dep_engine.c:754 #4  0x00007ffff7768243 in \
axis2_build_conf_ctx_with_dep_engine (env=0x60c790, dep_engine=0x60c8c0, \
is_server_side=0x7ffff77837de "true")  at conf_init.c:56
#5  0x00007ffff7768552 in axis2_build_conf_ctx (env=0x60c790, \
repo_name=0x7fffffffe836 "/usr/local/axis2c") at conf_init.c:105 #6  \
0x00007ffff6ed20b4 in axis2_amqp_receiver_create (env=0x60c790, repo=0x7fffffffe836 \
"/usr/local/axis2c",  qpid_broker_ip=0x7fffffffe84b "192.168.10.249", \
qpid_broker_port=5672) at axis2_amqp_receiver.c:75 #7  0x0000000000401593 in main \
(argc=7, argv=0x7fffffffe588) at axis2_amqp_server.c:214

AXIS2.LOG:
[Thu Jun 13 18:11:47 2013] [info]  Starting Axis2 AMQP Server ...
[Thu Jun 13 18:11:47 2013] [info]  Repo Location : /usr/local/axis2c
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *request_uri_based_dispatcher added to the index 0 of the phase \
                Transport
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *addressing_based_dispatcher added to the index 1 of the phase \
                Transport
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t *rest_dispatcher \
                added to the index 0 of the phase Dispatch
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *soap_message_body_based_dispatcher added to the index 1 of the phase \
                Dispatch
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *soap_action_based_dispatcher added to the index 2 of the phase \
                Dispatch
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *dispatch_post_conditions_evaluator added to the index 0 of the phase \
                PostDispatch
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t *context_handler \
                added to the index 1 of the phase PostDispatch
[Thu Jun 13 18:11:47 2013] [debug] conf_builder.c(227) No custom dispatching order \
                found. Continue with the default dispatching order
[Thu Jun 13 18:11:47 2013] [debug] conf_builder.c(351) Module addressing found in \
                axis2.xml
[Thu Jun 13 18:11:47 2013] [debug] conf_builder.c(351) Module logging found in \
                axis2.xml
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_http_sender.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_tcp_sender.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_amqp_sender.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_http_receiver.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_tcp_receiver.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
/usr/local/axis2c/lib/libaxis2_amqp_receiver.so shared lib loaded successfully

  was:
We are testing the amqp support in Axis2/C. We successfully configured built Axis2/C \
1.7.0 source codes from the SVN Trunk with amqp enable

./configure --with-apache2=/usr/local/apache2/include/ \
--with-apr=/usr/local/apr/include/apr-1/ --enable-openssl=yes --enable-tcp=yes \
--with-qpid=/usr/local


and successfully generated axis2_amqp_server in $AXIS2C_HOME. However, when we add \
these lines in axis2.xml (aacording to the manual \
http://axis.apache.org/axis2/c/core/docs/axis2c_manual.html#amqptrans)

<transportReceiver name="amqp" class="axis2_amqp_receiver">
 <parameter name="qpid_broker_ip" locked="false">127.0.0.1</parameter>
 <parameter name="qpid_broker_port" locked="false">5672</parameter>
 </transportReceiver>


 <transportSender name="amqp" class="axis2_amqp_sender"/>

the server didn't start. We also ran it through gdb. axis2.log and gdb trace are \
below.

GDB TRACE:
[root@sg8tb09249 bin]# gdb ./axis2_amqp_server
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/axis2c/bin/axis2_amqp_server...done.
(gdb) run -r /usr/local/axis2c -i 192.168.10.249 -p 5672
Starting program: /usr/local/axis2c/bin/axis2_amqp_server -r /usr/local/axis2c -i \
192.168.10.249 -p 5672 [Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
Missing separate debuginfos, use: debuginfo-install \
boost-program-options-1.41.0-17.el6_4.x86_64 glibc-2.12-1.107.el6.x86_64 \
libgcc-4.4.7-3.el6.x86_64 libstdc++-4.4.7-3.el6.x86_64 \
libuuid-2.17.2-12.9.el6_4.3.x86_64 zlib-1.2.3-25.el6.x86_64 (gdb) backtrace
#0  0x0000000000000000 in ?? ()
#1  0x00007ffff7765ee6 in axis2_conf_builder_process_transport_recvs \
(conf_builder=0x60e9b0, env=0x60c790, trs_recvs=0x624ce0) at conf_builder.c:1162 #2  \
0x00007ffff7766a4b in axis2_conf_builder_populate_conf (conf_builder=0x60e9b0, \
env=0x60c790) at conf_builder.c:259 #3  0x00007ffff776033d in axis2_dep_engine_load \
(dep_engine=0x60c8c0, env=0x60c790) at dep_engine.c:754 #4  0x00007ffff7768243 in \
axis2_build_conf_ctx_with_dep_engine (env=0x60c790, dep_engine=0x60c8c0, \
is_server_side=0x7ffff77837de "true")  at conf_init.c:56
#5  0x00007ffff7768552 in axis2_build_conf_ctx (env=0x60c790, \
repo_name=0x7fffffffe836 "/usr/local/axis2c") at conf_init.c:105 #6  \
0x00007ffff6ed20b4 in axis2_amqp_receiver_create (env=0x60c790, repo=0x7fffffffe836 \
"/usr/local/axis2c",  qpid_broker_ip=0x7fffffffe84b "192.168.10.249", \
qpid_broker_port=5672) at axis2_amqp_receiver.c:75 #7  0x0000000000401593 in main \
(argc=7, argv=0x7fffffffe588) at axis2_amqp_server.c:214

AXIS2.LOG:
[Thu Jun 13 18:11:47 2013] [info]  Starting Axis2 AMQP Server ...
[Thu Jun 13 18:11:47 2013] [info]  Repo Location : /usr/local/axis2c
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *request_uri_based_dispatcher added to the index 0 of the phase \
                Transport
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *addressing_based_dispatcher added to the index 1 of the phase \
                Transport
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t *rest_dispatcher \
                added to the index 0 of the phase Dispatch
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *soap_message_body_based_dispatcher added to the index 1 of the phase \
                Dispatch
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *soap_action_based_dispatcher added to the index 2 of the phase \
                Dispatch
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
                *dispatch_post_conditions_evaluator added to the index 0 of the phase \
                PostDispatch
[Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t *context_handler \
                added to the index 1 of the phase PostDispatch
[Thu Jun 13 18:11:47 2013] [debug] conf_builder.c(227) No custom dispatching order \
                found. Continue with the default dispatching order
[Thu Jun 13 18:11:47 2013] [debug] conf_builder.c(351) Module addressing found in \
                axis2.xml
[Thu Jun 13 18:11:47 2013] [debug] conf_builder.c(351) Module logging found in \
                axis2.xml
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_http_sender.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_tcp_sender.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_amqp_sender.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_http_receiver.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
                /usr/local/axis2c/lib/libaxis2_tcp_receiver.so shared lib loaded \
                successfully
[Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
/usr/local/axis2c/lib/libaxis2_amqp_receiver.so shared lib loaded successfully

    
> axis2_amqp_server doesn't run when transportReceiver is enabled
> ---------------------------------------------------------------
> 
> Key: AXIS2C-1641
> URL: https://issues.apache.org/jira/browse/AXIS2C-1641
> Project: Axis2-C
> Issue Type: Bug
> Components: build system (Unix/Linux), tests
> Affects Versions: 1.7.0
> Environment: CentOS, 64-bit
> Reporter: Ella Mampusti
> Priority: Critical
> Labels: amqp, axis2c, qpid
> Fix For: 1.7.0
> 
> Original Estimate: 48h
> Remaining Estimate: 48h
> 
> We are testing the amqp support in Axis2/C. We successfully configured built \
>                 Axis2/C 1.7.0 source codes from the SVN Trunk with amqp enable
> ./configure --with-apache2=/usr/local/apache2/include/ \
> --with-apr=/usr/local/apr/include/apr-1/ --enable-openssl=yes --enable-tcp=yes \
> --with-qpid=/usr/local and successfully generated axis2_amqp_server in \
> $AXIS2C_HOME. However, when we add these lines in axis2.xml (according to the \
> manual http://axis.apache.org/axis2/c/core/docs/axis2c_manual.html#amqptrans) \
> <transportReceiver name="amqp" class="axis2_amqp_receiver"> <parameter \
> name="qpid_broker_ip" locked="false">127.0.0.1</parameter> <parameter \
> name="qpid_broker_port" locked="false">5672</parameter> </transportReceiver>
> <transportSender name="amqp" class="axis2_amqp_sender"/>
> the server didn't start. We also ran it through gdb. axis2.log and gdb trace are \
> below. GDB TRACE:
> [root@sg8tb09249 bin]# gdb ./axis2_amqp_server
> GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
> Copyright (C) 2010 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/local/axis2c/bin/axis2_amqp_server...done.
> (gdb) run -r /usr/local/axis2c -i 192.168.10.249 -p 5672
> Starting program: /usr/local/axis2c/bin/axis2_amqp_server -r /usr/local/axis2c -i \
> 192.168.10.249 -p 5672 [Thread debugging using libthread_db enabled]
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000000000 in ?? ()
> Missing separate debuginfos, use: debuginfo-install \
> boost-program-options-1.41.0-17.el6_4.x86_64 glibc-2.12-1.107.el6.x86_64 \
> libgcc-4.4.7-3.el6.x86_64 libstdc++-4.4.7-3.el6.x86_64 \
> libuuid-2.17.2-12.9.el6_4.3.x86_64 zlib-1.2.3-25.el6.x86_64 (gdb) backtrace
> #0  0x0000000000000000 in ?? ()
> #1  0x00007ffff7765ee6 in axis2_conf_builder_process_transport_recvs \
> (conf_builder=0x60e9b0, env=0x60c790, trs_recvs=0x624ce0) at conf_builder.c:1162 #2 \
> 0x00007ffff7766a4b in axis2_conf_builder_populate_conf (conf_builder=0x60e9b0, \
> env=0x60c790) at conf_builder.c:259 #3  0x00007ffff776033d in axis2_dep_engine_load \
> (dep_engine=0x60c8c0, env=0x60c790) at dep_engine.c:754 #4  0x00007ffff7768243 in \
> axis2_build_conf_ctx_with_dep_engine (env=0x60c790, dep_engine=0x60c8c0, \
> is_server_side=0x7ffff77837de "true") at conf_init.c:56
> #5  0x00007ffff7768552 in axis2_build_conf_ctx (env=0x60c790, \
> repo_name=0x7fffffffe836 "/usr/local/axis2c") at conf_init.c:105 #6  \
> 0x00007ffff6ed20b4 in axis2_amqp_receiver_create (env=0x60c790, repo=0x7fffffffe836 \
> "/usr/local/axis2c", qpid_broker_ip=0x7fffffffe84b "192.168.10.249", \
> qpid_broker_port=5672) at axis2_amqp_receiver.c:75 #7  0x0000000000401593 in main \
> (argc=7, argv=0x7fffffffe588) at axis2_amqp_server.c:214 AXIS2.LOG:
> [Thu Jun 13 18:11:47 2013] [info]  Starting Axis2 AMQP Server ...
> [Thu Jun 13 18:11:47 2013] [info]  Repo Location : /usr/local/axis2c
> [Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
>                 *request_uri_based_dispatcher added to the index 0 of the phase \
>                 Transport
> [Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
>                 *addressing_based_dispatcher added to the index 1 of the phase \
>                 Transport
> [Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t *rest_dispatcher \
>                 added to the index 0 of the phase Dispatch
> [Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
>                 *soap_message_body_based_dispatcher added to the index 1 of the \
>                 phase Dispatch
> [Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
>                 *soap_action_based_dispatcher added to the index 2 of the phase \
>                 Dispatch
> [Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t \
>                 *dispatch_post_conditions_evaluator added to the index 0 of the \
>                 phase PostDispatch
> [Thu Jun 13 18:11:47 2013] [debug] phase.c(121) axis2_handler_t *context_handler \
>                 added to the index 1 of the phase PostDispatch
> [Thu Jun 13 18:11:47 2013] [debug] conf_builder.c(227) No custom dispatching order \
>                 found. Continue with the default dispatching order
> [Thu Jun 13 18:11:47 2013] [debug] conf_builder.c(351) Module addressing found in \
>                 axis2.xml
> [Thu Jun 13 18:11:47 2013] [debug] conf_builder.c(351) Module logging found in \
>                 axis2.xml
> [Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
>                 /usr/local/axis2c/lib/libaxis2_http_sender.so shared lib loaded \
>                 successfully
> [Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
>                 /usr/local/axis2c/lib/libaxis2_tcp_sender.so shared lib loaded \
>                 successfully
> [Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
>                 /usr/local/axis2c/lib/libaxis2_amqp_sender.so shared lib loaded \
>                 successfully
> [Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
>                 /usr/local/axis2c/lib/libaxis2_http_receiver.so shared lib loaded \
>                 successfully
> [Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
>                 /usr/local/axis2c/lib/libaxis2_tcp_receiver.so shared lib loaded \
>                 successfully
> [Thu Jun 13 18:11:47 2013] [debug] class_loader.c(131) \
> /usr/local/axis2c/lib/libaxis2_amqp_receiver.so shared lib loaded successfully

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic