slow response from server when transporting larger files

2007-03-28 Thread frogg
Hi,
I experinece this behaviour: 
I am sending files from client to server (without Rampart, using MTOM). I use 
something like this:

Object responseObject = serviceStub.uploadWithResponse(param4);
UploadWithResponseResponse response = 
(UploadWithResponseResponse)responseObject;
System.out.println(response.getReturn_value());

At the same time I have System.out.println (or via  log4j) on server at the 
beginning and at the end of the called method. The problem is that when I send 
small files the server receives attachment and processes it and informs me 
about the end of the method. Then promptly the client receives the response,... 
But when I send larger files (~30MB) the server do all his part without any 
problem, but the client still waits for response. 

Does anybody know why? Should I change some settings?  Thanks Frogg


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



Re: slow response from server when transporting larger files

2007-03-28 Thread frogg
I managed to find the real source of the problem. When I set enableMTOM on 
server to false (I upload files from client to server and send back just one 
string indicating the result of the upload) the response comes back 
immediately. But when enableMTOM is set to true, the response never returns. 
But there is the problem, I need to have another WS on the same server which 
will resend these received data to another client (client makes request...). So 
I need to have enableMTOM set to true, what can I do? On server I can not use 
serviceStub, can I?

__
 Od: [EMAIL PROTECTED]
 Komu: axis-user@ws.apache.org
 Datum: 28.03.2007 09:45
 Předmět: slow response from server when transporting larger files

Hi,
I experinece this behaviour: 
I am sending files from client to server (without Rampart, using MTOM). I
use something like this:

 Object responseObject = serviceStub.uploadWithResponse(param4);
 UploadWithResponseResponse response =
(UploadWithResponseResponse)responseObject;
 System.out.println(response.getReturn_value());

At the same time I have System.out.println (or via log4j) on server at
the beginning and at the end of the called method. The problem is that
when I send small files the server receives attachment and processes it
and informs me about the end of the method. Then promptly the client
receives the response,... But when I send larger files (~30MB) the server
do all his part without any problem, but the client still waits for
response. 

Does anybody know why? Should I change some settings? Thanks Frogg


-
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]



Re: Axis2 web services on OracleAS OC4J

2007-01-23 Thread frogg
I finally managed to allocate the source of the problem. There is an apache 
http server around the oc4j and this server , when chunked encoding is used, 
returns 503 - service unavailable because of CONTENT LENGTH !! problem. So I 
used HTTP 1.0 and avoided this mess. But there is still one problem when I use 
encrypted (using latest rampart) soap messages. In OC4J I encouter this error:

[AJPRequestHandler-ApplicationServerThread-7] DEBUG 
org.apache.rampart.handler.WSDoAllReceiver  - WSDoAllReceiver: exit invoke()
[AJPRequestHandler-ApplicationServerThread-7] DEBUG 
org.apache.axis2.transport.http.AxisServlet  - org.apache.axis2.AxisFault: 
WSDoAllReceiver: security processing failed; nested exception is: 
org.apache.ws.security.WSSecurityException: Cannot encrypt/decrypt 
data; nested exception is: 
java.lang.IllegalArgumentException: No attributes are implemented
[AJPRequestHandler-ApplicationServerThread-7] DEBUG 
org.apache.axis2.addressing.AddressingHelper  - isReplyRedirected: FaultTo is 
null. Returning isReplyRedirected


It looks like wrong documentBuilder, because at first decrypted xml is printed 
on the screen...


__
 Od: [EMAIL PROTECTED]
 Komu: axis-user axis-user@ws.apache.org
 Datum: 22.01.2007 19:25
 Předmět: Axis2 web services on OracleAS OC4J

Hi, has anyone managed to configure any web service using Axis2 on Oracle
Application Server? I even tryed to deploy axis2.war on Tomcat and
OracleAS on the same machine. Whereas on Tomcat everything works just
fine, on OracleAS when I want to sumarize validation all libraries and
resources are available, but in the part devoted to examination of the
version it says: service is not available. The very same problem I have
when I use my own project based on web services.

thanks in advance for any information, frogg


-
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]



Axis2 web services on OracleAS OC4J

2007-01-22 Thread frogg
Hi, has anyone managed to configure any web service using Axis2 on Oracle 
Application Server? I even tryed to deploy axis2.war on Tomcat and OracleAS on 
the same machine. Whereas on Tomcat everything works just fine, on OracleAS 
when I want to sumarize validation all libraries and resources are available, 
but in the part devoted to examination of the version it says: service is not 
available. The very same problem I have when I use my own project  based on web 
services.

thanks in advance for any information,  frogg


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



Re: Axis2 web services on OracleAS OC4J

2007-01-22 Thread frogg
The latest one axis2-1.1.1.
__
 Od: [EMAIL PROTECTED]
 Komu: axis-user@ws.apache.org
 Datum: 22.01.2007 19:30
 Předmět: Re: Axis2 web services on OracleAS OC4J

Hi,
I guess there were some problems reported regarding OC4J deployment
previously. AFAIR these were basically related to the (wrongful)
assumption that the war will be expanded in all cases. This was solved
in the latest release.
It would be helpful to know the version of Axis2 you are using.

Ajith

On 1/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi, has anyone managed to configure any web service using Axis2 on
Oracle Application Server? I even tryed to deploy axis2.war on Tomcat and
OracleAS on the same machine. Whereas on Tomcat everything works just
fine, on OracleAS when I want to sumarize validation all libraries and
resources are available, but in the part devoted to examination of the
version it says: service is not available. The very same problem I have
when I use my own project  based on web services.

 thanks in advance for any information,  frogg


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




-- Ajith Ranabahu

-
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]



Re: Axis2 web services on OracleAS OC4J

2007-01-22 Thread frogg
Maybe just, if anybody has some experience with configuration of OracleAS in 
the case that axis2 is used? I also tryed stand alone OC4J integrated into 
JDeveloper and it worked (but  this type of server differes in configuration) 
except I could not manage to receive encrypted soap messages from my client 
app. (only unencrypted with signature and time stamp, but responses from server 
to client were encrypted, signed and time stamped). My guess is that the 
problem is in OracleAS itself or its configuration...I am affraid that I missed 
something out.
__
 Od: [EMAIL PROTECTED]
 Komu: axis-user@ws.apache.org
 Datum: 22.01.2007 20:07
 Předmět: Re: Axis2 web services on OracleAS OC4J

Hmm...
this seems to be an issue that should go to Jira

Ajith

On 1/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 The latest one axis2-1.1.1.
 __
  Od: [EMAIL PROTECTED]
  Komu: axis-user@ws.apache.org
  Datum: 22.01.2007 19:30
  Předmět: Re: Axis2 web services on OracleAS OC4J
 
 Hi,
 I guess there were some problems reported regarding OC4J deployment
 previously. AFAIR these were basically related to the (wrongful)
 assumption that the war will be expanded in all cases. This was solved
 in the latest release.
 It would be helpful to know the version of Axis2 you are using.
 
 Ajith
 
 On 1/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi, has anyone managed to configure any web service using Axis2 on
 Oracle Application Server? I even tryed to deploy axis2.war on Tomcat
and
 OracleAS on the same machine. Whereas on Tomcat everything works just
 fine, on OracleAS when I want to sumarize validation all libraries
and
 resources are available, but in the part devoted to examination of the
 version it says: service is not available. The very same problem I have
 when I use my own project  based on web services.
 
  thanks in advance for any information,  frogg
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- Ajith Ranabahu
 
 -
 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]




-- Ajith Ranabahu



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



axis2 and oc4j

2007-01-16 Thread frogg
Hi, I ran into the new problem. I developed client/server web service 
application using Tomcat v5.5. Using Tomcat everything works pretty good. But 
then I made war from server application and deployed it into OC4J10g. When I 
ask for wsdl of my web service (using browser), wsdl file is shown. According 
to server. log web service was deployed. But when I ask for web service using 
client application, then I get this exception:

org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service 
Unavailable'; nested exception is: 
org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service 
Unavailable'; nested exception is: 
org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service 
Unavailable'; nested exception is: 
org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service 
Unavailable'
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
at 
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:95)
at 
cz.cca.test.ws.client.ClientWithResponse.main(ClientWithResponse.java:179)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service 
Unavailable'; nested exception is: 
org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service 
Unavailable'
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:340)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:205)
... 7 more
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service 
Unavailable'
at 
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:334)
... 8 more
Exception in thread main 

It looks like server is not working properly, but why? I used almost the same 
settings which I used with tomcat (using  the same machine, so I expect no 
problems with firewall).
Any clue, anybody? thanks in advance


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



Re: axis2 and oc4j

2007-01-16 Thread frogg
To be more specific: when I use Tomcat, these lines are logged:

2007-01-16 15:48:42,707 [main] DEBUG org.apache.commons.httpclient.HttpParser  
- enter HttpParser.readLine(InputStream, String)
2007-01-16 15:48:42,707 [main] DEBUG org.apache.commons.httpclient.HttpParser  
- enter HttpParser.readRawLine()
2007-01-16 15:49:04,800 [main] DEBUG httpclient.wire.header  -  HTTP/1.1 200 
OK[\r][\n]


but while using OC4j:

2007-01-16 15:45:54,880 [main] DEBUG org.apache.commons.httpclient.HttpParser  
- enter HttpParser.readLine(InputStream, String)
2007-01-16 15:45:54,880 [main] DEBUG org.apache.commons.httpclient.HttpParser  
- enter HttpParser.readRawLine()
2007-01-16 15:45:54,880 [main] DEBUG httpclient.wire.header  -  HTTP/1.1 503 
Service Unavailable[\r][\n]

All lines before are almost the same (except necessary differencies like port 
ect. ).

I am  starting to be desperate. See ya.

__
 Od: [EMAIL PROTECTED]
 Komu: axis-user axis-user@ws.apache.org
 Datum: 16.01.2007 15:05
 Předmět: axis2 and oc4j

Hi, I ran into the new problem. I developed client/server web service
application using Tomcat v5.5. Using Tomcat everything works pretty good.
But then I made war from server application and deployed it into OC4J10g.
When I ask for wsdl of my web service (using browser), wsdl file is shown.
According to server. log web service was deployed. But when I ask for web
service using client application, then I get this exception:

org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service
Unavailable'; nested exception is: 
 org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service
Unavailable'; nested exception is: 
 org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service
Unavailable'; nested exception is: 
 org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service
Unavailable'
 at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
 at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
 at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
 at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
 at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
 at
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:95)
 at
cz.cca.test.ws.client.ClientWithResponse.main(ClientWithResponse.java:179)
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '503' -
'Service Unavailable'; nested exception is: 
 org.apache.axis2.AxisFault: HTTP Transport error : '503' - 'Service
Unavailable'
 at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:340)
 at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:205)
 ... 7 more
Caused by: org.apache.axis2.AxisFault: HTTP Transport error : '503' -
'Service Unavailable'
 at
org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:144)
 at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:334)
 ... 8 more
Exception in thread main 

It looks like server is not working properly, but why? I used almost the
same settings which I used with tomcat (using the same machine, so I
expect no problems with firewall).
Any clue, anybody? thanks in advance


-
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]



Re: SocketTimeOutException

2007-01-16 Thread frogg
What kind of web service method invocation do you use? Void or with some 
returning type? I experienced this problem only with void (so client was 
waiting for some background confirmation and timeout expired), in that case I 
guess there is no really working solution. Try adding parameter SO_TIMEOUT into 
the axis2.xml (but it won´t help). You can take a look at my (I guess two days 
old) post called Any real solution to Socket Timeout or something like this. 
You can also try to use calling with returning object (I used String which 
indicates success...) than you can just throw this object away.. I hope it 
helps. But I am sure that uninstallation of internet security tools is NOT a 
good solution :)

__
 Od: [EMAIL PROTECTED]
 Komu: axis-user@ws.apache.org, Jernigan, TieSha [EMAIL PROTECTED]
 CC: axis-user@ws.apache.org
 Datum: 16.01.2007 20:24
 Předmět: Re: SocketTimeOutException 

I had the same problem :
you can try to update timeout value in axis.xml.
But for me the problem was fixed to uninstall my security internet tools
(stopping firewall was not enough ...)



Quoting Jernigan, TieSha [EMAIL PROTECTED]:

 When running my Axis2 Client, after about 20-30 seconds I get the
 following exception. My system does not recover from this exception. I
 am assuming that when the exception occurs the socket gets closed, so I
 never get a response back from my server. Is there a way that I can
 increase the timeout? Or are there any other suggestions on how to fix
 the problem?



 ERROR espace.services.galelite.client.BaseWebServiceClient  - Server
 responded with the Exception[Read timed out; nested exception is:

 java.net.SocketTimeoutException: Read timed out; nested
 exception is:

 org.apache.axis2.AxisFault: Read timed out; nested
exception
 is:

 java.net.SocketTimeoutException: Read timed out]

 [2007.01.16 at 13:35:01 EST] Server responded with the Exception[Read
 timed out; nested exception is:

 java.net.SocketTimeoutException: Read timed out; nested
 exception is:

 org.apache.axis2.AxisFault: Read timed out; nested
exception
 is:

 java.net.SocketTimeoutException: Read timed out]





-
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]



Re: axis2 samples socket timeout

2007-01-12 Thread frogg
Hi, lots of users have this problem (unfortunatelly I am one of them). Some 
people advise to change TimeOut values (we both already tried) . Somebody 
advised me change another parameter (I am going try to test it today).

Try to look at my post called: Any real solution to Client side SocketTimeout 
problem?

__
 Od: [EMAIL PROTECTED]
 Komu: axis-user@ws.apache.org
 Datum: 12.01.2007 11:17
 Předmět: axis2 samples socket timeout

Hi,

i am a new user of Axis2, to start quickly i try to run some samples code
but
i have always the same exception (simple server or with tomcat)

run.client:
 [java] org.apache.axis2.AxisFault: Read timed out; nested exception
is:
 [java] java.net.SocketTimeoutException: Read timed out; nested
exception is:
 [java] org.apache.axis2.AxisFault: Read timed out; nested
exception is:
 [java] java.net.SocketTimeoutException: Read timed out


I have update ConfigContextTimeoutInterval and requestTimeout from
axis.xml
but the same exception happens.

Perhaps someone had that problem ...

Thanks for your help

Regards,
Pierre

-
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]



Any real solution to Client side SocketTimeout problem?

2007-01-11 Thread frogg
Hi,
I have just spent last two days searching over internet fo some solution to 
SocketTimeou exception. I have simple WS (based on Axis2/Tomcat 5.5). Client 
application uploads files to Server (so InOnly). When I send larger files (like 
5MB and more) I get  an exception:

org.apache.axis2.AxisFault: Read timed out; nested exception is:
java.net.SocketTimeoutException: Read timed out; nested exception is:
org.apache.axis2.AxisFault: Read timed out; nested exception is:
java.net.SocketTimeoutException: Read timed out
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670)
at 
org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationClient.send(RobustOutOnlyAxisOperation.java:72)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:453)
at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)
at 
org.apache.axis2.rpc.client.RPCServiceClient.invokeRobust(RPCServiceClient.java:131)
at cz.cca.test.ws.client.Client.main(Client.java:175)
Caused by: org.apache.axis2.AxisFault: Read timed out; nested exception is:
java.net.SocketTimeoutException: Read timed out
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:340)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:205)
... 7 more

Problem is, that data were successfully sent to server, where they are stored 
into database, but the client doesn´t receive any response in time. I tried to 
set

   parameter name=ConfigContextTimeoutInterval locked=false300/parameter
   parameter name=SO_TIMEOUT locked=false100/parameter
   parameter name=CONNECTION_TIMEOUT locked=false100/parameter
   parameter name=requestTimeout
locked=false100/parameter  
   parameter name=requestTcpNoDelay locked=falsetrue/parameter  


In both xml files (one for the client and second one for the server). I even 
tried to change all possible timeouts in server.xml ( for Tomcat). But even if 
I lower or raise  the values, it takes no effect.

There is main part of my Client:

ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(., 
System.getProperty(user.dir) + File.separator + axis2_my.xml);
   RPCServiceClient serviceClient = new RPCServiceClient(configContext, 
null);
   
   Options options = serviceClient.getOptions();

//options.setProperty(HTTPConstants.SO_TIMEOUT,new Integer(15));
   
   EndpointReference targetEPR = new 
EndpointReference(http://localhost:8080/myProject/MyWSService;);
   options.setTo(targetEPR);
 

   QName opGetStock = new QName(http://MyService.ws.epo.ccc.cz;, upload);
   
   . some code 

  // logger.debug(SO_TIMEOUT +options.getProperty(SO_TIMEOUT));
   
 
   
   Osoba podatel = createPodatel( params);
   InfoObject infoObject = createInfoObject(params);
   
   Object[] opSetStockArgs = new Object[] { souborText,  podatel, 
infoObject };
   System.out.println(Sending...);
   serviceClient.invokeRobust(opGetStock, opSetStockArgs);
   System.out.println(End);
   
   }

Can anybody help?

thanks, frogg


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