Asynchronous, non-blocking I/O, event based PHP library for writing custom TCP/IP client and server implementations. From it's previous versions, library inherits a full blown stable support for XMPP protocol stack. In v3.0, support for HTTP protocol stack was also added.
i am using jaxl library in my project on mac os and set up all configuration but when i am running that project at that time its continue loading and not connecting to the server so how can i solve my problem?
In my error_log file it's write like this :
27-May-2016 06:34:37 UTC] [32mjaxl:238 - 2016-05-27 06:34:37 - strict mode enabled, adding exception handlers. Set 'strict'=>TRUE inside JAXL config to disable this[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: priv_dir, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 168[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: bosh_url, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 207[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: stream_context, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 214[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: resource, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 223[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: force_tls, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 224[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: bosh_url, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 373[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'setup' for incoming event 'connect'[0m
[27-May-2016 06:34:38 UTC] [32mjaxl_socket_client:95 - 2016-05-27 06:34:38 - trying tcp://192.168.1.13:5222[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:104 - 2016-05-27 06:34:38 - connected to tcp://192.168.1.13:5222[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:82 - 2016-05-27 06:34:38 - active read fds: 1, write fds: 0[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'connected'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'connected' for incoming event 'start_stream'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:82 - 2016-05-27 06:34:38 - active read fds: 1, write fds: 1[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'wait_for_stream_start'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: --with-debug-shell, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 408[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: --with-unix-sock, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 409[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:201 - 2016-05-27 06:34:38 - sent 177/177 of data[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:202 - 2016-05-27 06:34:38 - [0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:104 - 2016-05-27 06:34:38 - active read fds: 1, write fds: 0[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:188 - 2016-05-27 06:34:38 - read 257/257 of data[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:189 - 2016-05-27 06:34:38 - <?xml version='1.0'?>stream:error/stream:error/stream:stream[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'wait_for_stream_start' for incoming event 'start_cb'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'wait_for_stream_features'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'wait_for_stream_features' for incoming event 'stanza_cb'[0m
[27-May-2016 06:34:38 UTC] [37mxmpp_stream:468 - 2016-05-27 06:34:38 - no catch[0m
[27-May-2016 06:34:38 UTC] [31mxmpp_stream:112 - 2016-05-27 06:34:38 - got invalid return value from state handler 'wait_for_stream_features', sending end stream...[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:82 - 2016-05-27 06:34:38 - active read fds: 1, write fds: 1[0m
[27-May-2016 06:34:38 UTC] [33mxmpp_stream:115 - 2016-05-27 06:34:38 - state handler 'logged_out' returned N;, kindly report this to developers[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'logged_out'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'logged_out' for incoming event 'end_cb'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:104 - 2016-05-27 06:34:38 - active read fds: 0, write fds: 0[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'disconnected'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:115 - 2016-05-27 06:34:38 - no more active fd's to select[0m
[27-May-2016 06:34:38 UTC] [37msendmessage:28 - 2016-05-27 06:34:38 - got on_disconnect cb[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:83 - 2016-05-27 06:34:38 - got shutdown handler[0m
[27-May-2016 06:34:38 UTC] [32mjaxl:230 - 2016-05-27 06:34:38 - cleaning up pid and unix sock files[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 2, unlink(/Applications/MAMP/htdocs/cslink/JAXL/.jaxl/run/jaxl_693.pid): No such file or directory, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 231[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 2, unlink(/Applications/MAMP/htdocs/cslink/JAXL/.jaxl/sock/jaxl_693.sock): No such file or directory, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 232[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:104 - 2016-05-27 06:34:38 - active read fds: 0, write fds: 0[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 2, fclose() expects parameter 1 to be resource, null given, /Applications/MAMP/htdocs/cslink/JAXL/core/jaxl_socket_client.php, 126[0m
[27-May-2016 06:34:38 UTC] [32mjaxl_clock:55 - 2016-05-27 06:34:38 - shutting down clock server...[0m
i am using jaxl library in my project on mac os and set up all configuration but when i am running that project at that time its continue loading and not connecting to the server so how can i solve my problem? In my error_log file it's write like this :
27-May-2016 06:34:37 UTC] [32mjaxl:238 - 2016-05-27 06:34:37 - strict mode enabled, adding exception handlers. Set 'strict'=>TRUE inside JAXL config to disable this[0m [27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: priv_dir, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 168[0m [27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: bosh_url, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 207[0m [27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: stream_context, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 214[0m [27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: resource, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 223[0m [27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: force_tls, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 224[0m [27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: bosh_url, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 373[0m [27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'setup' for incoming event 'connect'[0m [27-May-2016 06:34:38 UTC] [32mjaxl_socket_client:95 - 2016-05-27 06:34:38 - trying tcp://192.168.1.13:5222[0m [27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:104 - 2016-05-27 06:34:38 - connected to tcp://192.168.1.13:5222[0m [27-May-2016 06:34:38 UTC] [37mjaxl_loop:82 - 2016-05-27 06:34:38 - active read fds: 1, write fds: 0[0m [27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'connected'[0m [27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'connected' for incoming event 'start_stream'[0m [27-May-2016 06:34:38 UTC] [37mjaxl_loop:82 - 2016-05-27 06:34:38 - active read fds: 1, write fds: 1[0m [27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'wait_for_stream_start'[0m [27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: --with-debug-shell, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 408[0m [27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 8, Undefined index: --with-unix-sock, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 409[0m [27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:201 - 2016-05-27 06:34:38 - sent 177/177 of data[0m [27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:202 - 2016-05-27 06:34:38 -[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:104 - 2016-05-27 06:34:38 - active read fds: 1, write fds: 0[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:188 - 2016-05-27 06:34:38 - read 257/257 of data[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_socket_client:189 - 2016-05-27 06:34:38 - <?xml version='1.0'?>stream:error /stream:error/stream:stream[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'wait_for_stream_start' for incoming event 'start_cb'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'wait_for_stream_features'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'wait_for_stream_features' for incoming event 'stanza_cb'[0m
[27-May-2016 06:34:38 UTC] [37mxmpp_stream:468 - 2016-05-27 06:34:38 - no catch[0m
[27-May-2016 06:34:38 UTC] [31mxmpp_stream:112 - 2016-05-27 06:34:38 - got invalid return value from state handler 'wait_for_stream_features', sending end stream...[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:82 - 2016-05-27 06:34:38 - active read fds: 1, write fds: 1[0m
[27-May-2016 06:34:38 UTC] [33mxmpp_stream:115 - 2016-05-27 06:34:38 - state handler 'logged_out' returned N;, kindly report this to developers[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'logged_out'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:61 - 2016-05-27 06:34:38 - calling state handler 'logged_out' for incoming event 'end_cb'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:104 - 2016-05-27 06:34:38 - active read fds: 0, write fds: 0[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_fsm:71 - 2016-05-27 06:34:38 - current state 'disconnected'[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:115 - 2016-05-27 06:34:38 - no more active fd's to select[0m
[27-May-2016 06:34:38 UTC] [37msendmessage:28 - 2016-05-27 06:34:38 - got on_disconnect cb[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:83 - 2016-05-27 06:34:38 - got shutdown handler[0m
[27-May-2016 06:34:38 UTC] [32mjaxl:230 - 2016-05-27 06:34:38 - cleaning up pid and unix sock files[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 2, unlink(/Applications/MAMP/htdocs/cslink/JAXL/.jaxl/run/jaxl_693.pid): No such file or directory, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 231[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 2, unlink(/Applications/MAMP/htdocs/cslink/JAXL/.jaxl/sock/jaxl_693.sock): No such file or directory, /Applications/MAMP/htdocs/cslink/JAXL/jaxl.php, 232[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_loop:104 - 2016-05-27 06:34:38 - active read fds: 0, write fds: 0[0m
[27-May-2016 06:34:38 UTC] [37mjaxl_exception:66 - 2016-05-27 06:34:38 - error handler called with 2, fclose() expects parameter 1 to be resource, null given, /Applications/MAMP/htdocs/cslink/JAXL/core/jaxl_socket_client.php, 126[0m
[27-May-2016 06:34:38 UTC] [32mjaxl_clock:55 - 2016-05-27 06:34:38 - shutting down clock server...[0m