Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1618

Error by reading SSL-stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • transport/http
    • Client, Windows, libxml2-Parser, SSL

    Description

      First I used the Guththila-parser. By using this parser a probem occurred while parsing long (more than 1 Mb) messages. The parser stops reading the message out of the SSL-Stream like in AXIS2C-1356. Everything worked fine, if I switched to http and run without security.

      After I used the libxml-Parser there was en error, too. But This Time at all Messages (also small ones).
      The parser logs the error message: "libxml2_reader_wrapper.c(443) error occurred in reading xml"
      The received node is empty.

      When I debug the application i see, that de whole Message is retrieved from SSL_read. But at the end of the Message there is a zero returned. The funktion axis2_ssl_stream_read then get the error from openssl. In case of SSL_ERROR_ZERO_RETURN the length of readed Data is set of "-1".
      I think there is the Bug. The Return of a zero isn't a error, it means that there is nothing more to read in the stream (http://www.openssl.org/docs/ssl/SSL_read.html)

      Log:
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\transport\http\sender\http_sender.c(1610) Entry:axis2_http_sender_process_response
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\transport\http\util\http_transport_utils.c(3766) Entry:axis2_http_transport_utils_store_cookie
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\transport\http\util\http_transport_utils.c(3777) No session map found and no cookie set. So return
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\transport\http\sender\http_sender.c(1636) Exit:axis2_http_sender_process_response
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\transport\http\sender\http_transport_sender.c(794) OP name axutil_qname_get_localpart = http://www.w3.org/2004/08/wsdl/out-in
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\axiom\src\soap\soap_builder.c(894) identified soap version is soap12
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\transport\http\sender\http_transport_sender.c(569) Exit:axis2_http_transport_sender_invoke
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\engine.c(182) axis2_engine_send end successfully
      [Wed Dec 12 16:18:47 2012] [error] K:\Trunk\Extern\axis2c\axiom\src\parser\libxml2\libxml2_reader_wrapper.c(443) error occurred in reading xml stream
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\axiom\src\om\om_stax_builder.c(651) -1 returned from the xml reader when reading xml
      [Wed Dec 12 16:18:47 2012] [error] K:\Trunk\Extern\axis2c\axiom\src\soap\soap_builder.c(329) Error occurred when building node
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\engine.c(200) Start:axis2_engine_receive
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\engine.c(648) Start:axis2_engine_invoke_phases
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(161) Entry:axis2_phase_invoke
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(202) Invoke the handler request_uri_based_dispatcher within the phase Transport
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(202) Invoke the handler addressing_based_dispatcher within the phase Transport
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(260) Exit:axis2_phase_invoke
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(161) Entry:axis2_phase_invoke
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(260) Exit:axis2_phase_invoke
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(161) Entry:axis2_phase_invoke
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(202) Invoke the handler rest_dispatcher within the phase Dispatch
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(202) Invoke the handler soap_message_body_based_dispatcher within the phase Dispatch
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\axiom\src\om\om_stax_builder.c(640) OM is fully built. Nothing more to build
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(202) Invoke the handler soap_action_based_dispatcher within the phase Dispatch
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\engine\soap_action_disp.c(84) Checking for service using SOAPAction is not implemented
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(260) Exit:axis2_phase_invoke
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(161) Entry:axis2_phase_invoke
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(202) Invoke the handler dispatch_post_conditions_evaluator within the phase PostDispatch
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(202) Invoke the handler context_handler within the phase PostDispatch
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\ctx_handler.c(101) Entry:axis2_ctx_handler_invoke
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\phase.c(260) Exit:axis2_phase_invoke
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\engine.c(667) End:axis2_engine_invoke_phases
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\engine.c(648) Start:axis2_engine_invoke_phases
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\engine.c(667) End:axis2_engine_invoke_phases
      [Wed Dec 12 16:18:47 2012] [...TRACE...] K:\Trunk\Extern\axis2c\src\core\engine\engine.c(304) Exit:axis2_engine_receive
      [Wed Dec 12 16:18:47 2012] [error] K:\Trunk\Extern\axis2c\axiom\src\soap\soap_builder.c(319) Invalid soap builder
      [Wed Dec 12 16:18:47 2012] [debug] K:\Trunk\Extern\axis2c\axiom\src\om\om_stax_builder.c(640) OM is fully built. Nothing more to build

      Attachments

        1. AXIS2C-1618.patch
          2 kB
          Florian Zirker

        Activity

          People

            Unassigned Unassigned
            wuddigel Florian Zirker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: