Re: Client data stream null or socket error

2008-03-26 Thread Sérgio Gomes
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] wrote:
   Hi Sérgio,
  
  
Sérgio Gomes [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Client data stream null or socket error

2008-03-20 Thread Sérgio Gomes
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
axisconfig name=Axis2/C
!-- = --
!-- Parameters --
!-- = --
!-- Uncomment following to enable MTOM support globally --
!--parameter name=enableMTOM locked=falsetrue/parameter--

!-- Set the suitable size for optimum memory usage when sending large attachments --
!--parameter name=MTOMChunkBufferSize locked=false10/parameter--
!--parameter name=MTOMMaxChunkBuffers locked=false1000/parameter--

!-- Enable REST --
parameter name=enableREST locked=falsefalse/parameter

!-- Uncomment following to persist op_ctx, useful with RM --
!--parameter name=persistOperationContext locked=falsetrue/parameter--

!--if you want to extract the service archive file and work with that please uncomment this--
!--else , it wont extract archive file or does not take into consideration if someone drop--
!--exploded directory into /service directory--
!--parameter name=extractServiceArchive locked=falsetrue/parameter--


!-- = --
!-- Message Receivers --
!-- = --
!-- This is the Deafult Message Receiver for the Request Response style Operations --
!--messageReceiver mep=INOUT class

Re: Client data stream null or socket error

2008-03-20 Thread Dinesh Premalal
Hi Sérgio,

Sérgio Gomes [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Client data stream null or socket error

2008-03-20 Thread Sérgio Gomes
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 [EMAIL PROTECTED] wrote:
 Hi Sérgio,


  Sérgio Gomes [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Socket error

2007-03-28 Thread Vogel, Charles H
Hi all,
I have a basic question regarding timeouts/keep alive values in
relation to socket read/writes. I have a web service using Apache axis
as the client and sending a request to a service written in C++ using
GSOAP. I am testing the service from different boxes and found that in
one case I get intermittent errors of: 
SOAP FAULT: SOAP-ENV:Client
End of file or no input: 'Connection reset by peer'

And in my log file I see:

error: java.net.SocketException: Broken pipe (errno:32) 

It appears that the client sends the request but does not wait for the
response. Has anyone seen this type of error before? If so how do I fix
it?

Charlie Vogel
Bold Web Development
Work (206) 766-3856 Cell (206) 679-2699 M/S 2J-53
Email mailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]