You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Sérgio Gomes <se...@gmail.com> on 2008/03/20 13:54:31 UTC

Client data stream null or socket error

After fixing my Axis/C installation (by symlinking lib and modules in
AXIS2C_HOME), I now get a different error, apparently related to SSL:

[Thu Mar 20 12:49:38 2008] [debug] phase.c(121) axis2_handler_t
*request_uri_based_dispatcher added to the index 0 of the phase
Transport
[Thu Mar 20 12:49:38 2008] [debug] phase.c(121) axis2_handler_t
*addressing_based_dispatcher added to the index 1 of the phase
Transport
[Thu Mar 20 12:49:38 2008] [debug] phase.c(121) axis2_handler_t
*rest_dispatcher added to the index 0 of the phase Dispatch
[Thu Mar 20 12:49:38 2008] [debug] phase.c(121) axis2_handler_t
*soap_message_body_based_dispatcher added to the index 1 of the phase
Dispatch
[Thu Mar 20 12:49:38 2008] [debug] phase.c(121) axis2_handler_t
*soap_action_based_dispatcher added to the index 2 of the phase
Dispatch
[Thu Mar 20 12:49:38 2008] [debug] phase.c(121) axis2_handler_t
*dispatch_post_conditions_evaluator added to the index 0 of the phase
PostDispatch
[Thu Mar 20 12:49:38 2008] [debug] phase.c(121) axis2_handler_t
*context_handler added to the index 1 of the phase PostDispatch
[Thu Mar 20 12:49:38 2008] [debug] conf_builder.c(233) no custom
dispatching order found continue with default dispatching order
[Thu Mar 20 12:49:38 2008] [debug] class_loader.c(140) Object loaded
successfully
[Thu Mar 20 12:49:38 2008] [debug] class_loader.c(140) Object loaded
successfully
[Thu Mar 20 12:49:38 2008] [error] dir_handler.c(220) No files in the
path /home/sgomes/src/axis2c-src-1.3.0/services.
[Thu Mar 20 12:49:38 2008] [debug] dep_engine.c(1259)
axis2_dep_engine_load_module_dll: DLL path is :
/home/sgomes/src/axis2c-src-1.3.0/modules/addressing/libaxis2_mod_addr.so
[Thu Mar 20 12:49:38 2008] [debug] class_loader.c(140) Object loaded
successfully
[Thu Mar 20 12:49:38 2008] [debug] dep_engine.c(1259)
axis2_dep_engine_load_module_dll: DLL path is :
/home/sgomes/src/axis2c-src-1.3.0/modules/logging/libaxis2_mod_log.so
[Thu Mar 20 12:49:38 2008] [debug] class_loader.c(140) Object loaded
successfully
[Thu Mar 20 12:49:38 2008] [debug] phase_resolver.c(117) Service name
is : __ANONYMOUS_SERVICE__
[Thu Mar 20 12:49:38 2008] [debug] op_client.c(881)
Start:axis2_op_client_infer_transport
[Thu Mar 20 12:49:38 2008] [debug] op_client.c(936)
End:axis2_op_client_infer_transport
[Thu Mar 20 12:49:38 2008] [debug] engine.c(648)
Start:axis2_engine_invoke_phases
[Thu Mar 20 12:49:38 2008] [debug] engine.c(660) Invoking phase MessageOut
[Thu Mar 20 12:49:38 2008] [debug] engine.c(670) End:axis2_engine_invoke_phases
[Thu Mar 20 12:49:38 2008] [debug] http_transport_sender.c(248)
ctx_epr:https://adwords.google.com/api/adwords/v11/CampaignService
[Thu Mar 20 12:49:38 2008] [debug] http_sender.c(393)
msg_ctx_id:19db0c94-f67c-1dc1-352d-001aa0127f18
[Thu Mar 20 12:49:38 2008] [info]  [ssl client] CA certificate not specified
[Thu Mar 20 12:49:38 2008] [debug] http_client.c(421) [axis2c] client
data stream  null or socket error
[Thu Mar 20 12:49:38 2008] [error] http_sender.c(1121) status_code < 0

It's complaining that the data stream is null or there is a socket
error, so I guess it's having problems connecting to the endpoint, or
am I wrong?

I'm including my axis2.xml. I created a certificate file as explained
in http://ws.apache.org/axis2/c/docs/axis2c_manual.html#ssl_client
with the server's certificate instead of the CA certificate, by
running the provided script. I don't need client authentication, so I
didn't set KEY_FILE or SSL_PASSPHRASE.

Sorry about bothering you guys yet again, but I've looked everywhere
in the manual and online and I can't find any useful information on
this. :-/

Thanks,
Sérgio

Re: Client data stream null or socket error

Posted by Sérgio Gomes <se...@gmail.com>.
Hey everyone,

Just an update: I managed to fix it by tracing the problem in the
library source code. Looks like the parameter has to be defined in the
root level (axisconfig node) rather than in the transportReceiver /
transportSender.

Hope this helps anyone with the same issue.

Cheers,
Sérgio

---
On Thu, Mar 20, 2008 at 2:12 PM, Sérgio Gomes <se...@gmail.com> wrote:
> Hi Dinesh,
>
>  I think SERVER_CERT is set correctly, I added it to both the
>  transportSender and transportReceiver (you can check the axis2.xml
>  file I sent). Is there anywhere else where I should set these?
>
>  Cheers,
>  Sérgio
>
>  ---
>
>
> On Thu, Mar 20, 2008 at 1:24 PM, Dinesh Premalal <xy...@gmail.com> wrote:
>  > Hi Sérgio,
>  >
>  >
>  >  "Sérgio Gomes" <se...@gmail.com> writes:
>  >  > [Thu Mar 20 12:49:38 2008] [info]  [ssl client] CA certificate not
>  >  > specified
>  >
>  >  I think this is the problem. Axis2/C engine didn't pick up your
>  >  certificate file.
>  >
>  >
>  >  > It's complaining that the data stream is null or there is a socket
>  >  > error, so I guess it's having problems connecting to the endpoint, or
>  >  > am I wrong?
>  >
>  >  Could you please check whether you have set SERVER_CERT correctly?
>  >
>  >  thanks,
>  >  Dinesh
>  >  --
>  >  http://nethu.org
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  >  For additional commands, e-mail: axis-c-user-help@ws.apache.org
>  >
>  >
>

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


Re: Client data stream null or socket error

Posted by Sérgio Gomes <se...@gmail.com>.
Hi Dinesh,

I think SERVER_CERT is set correctly, I added it to both the
transportSender and transportReceiver (you can check the axis2.xml
file I sent). Is there anywhere else where I should set these?

Cheers,
Sérgio

---
On Thu, Mar 20, 2008 at 1:24 PM, Dinesh Premalal <xy...@gmail.com> wrote:
> Hi Sérgio,
>
>
>  "Sérgio Gomes" <se...@gmail.com> writes:
>  > [Thu Mar 20 12:49:38 2008] [info]  [ssl client] CA certificate not
>  > specified
>
>  I think this is the problem. Axis2/C engine didn't pick up your
>  certificate file.
>
>
>  > It's complaining that the data stream is null or there is a socket
>  > error, so I guess it's having problems connecting to the endpoint, or
>  > am I wrong?
>
>  Could you please check whether you have set SERVER_CERT correctly?
>
>  thanks,
>  Dinesh
>  --
>  http://nethu.org
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>  For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

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


Re: Client data stream null or socket error

Posted by Dinesh Premalal <xy...@gmail.com>.
Hi Sérgio,

"Sérgio Gomes" <se...@gmail.com> writes:
> [Thu Mar 20 12:49:38 2008] [info]  [ssl client] CA certificate not
> specified

I think this is the problem. Axis2/C engine didn't pick up your
certificate file.

> It's complaining that the data stream is null or there is a socket
> error, so I guess it's having problems connecting to the endpoint, or
> am I wrong?

Could you please check whether you have set SERVER_CERT correctly?

thanks,
Dinesh
-- 
http://nethu.org

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