Mailing List
Home
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Cocoon - MVC web framework based on XML/XSL
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
Log4J - A log library
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Subject: Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Proposal: Adding jar manifest classpath in jar and war plugins
Servlet File Download dialog problem (IE6,Adobe 6 0)
java security AccessControlException: access denied (java io FilePermission
Unsupported major minor version 48 0 problem while running the an
   telope task
Subject: axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
Classpath problem
jsp data into Excel
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
Subject: InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Subject: AXIS: tomcat timeout ?
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
XDoclet, Struts and Maven: Where to start? SOLUTION
Subject: Running junit tests fails
 
BindException calling RPCServiceClient very frequently

BindException calling RPCServiceClient very frequently

2007-12-03       - By Marc N?dele

 Back

Thanks for your help.

So I think that I have to change the system architecture to reuse the service
client if possible.

Anyway, if someone has an other idea it is still welcome.

Thanks
- Marc

__ ____ ____ ____ ____ ____ ____
> From: par_malmqvist@(protected)
> To: axis-user@(protected)
> Subject: RE: [Axis2] BindException calling RPCServiceClient very frequently
> Date: Fri, 30 Nov 2007 19:10:27 +0100
>
> Yes, I instanciate the client once and use it many times.
> Thats why the client dont need so many resources from the operating system and
> it works.
>
> /P?r
>
>
>> From: marc_1111@(protected)
>> To: axis-user@(protected)
>> Subject: RE: [Axis2] BindException calling RPCServiceClient very frequently
>> Date: Fri, 30 Nov 2007 17:17:42 +0000
>>
>>
>> Setting options.setCallTransportCleanup(true) and options.setProperty
(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE) did not solve my problem. Still
the same Exception.
>>
>> But I think I may have discovered an other thing which may be important:
>>
>> Currently I create a new RPCServiceClient instance in every loop. If I
create the RPCServiceClient only once and then reuse the same instance in every
loop I managed to make 5000 and 10000 calls in a row. Unfortunately the system
architecture which calls the service can not be changed easily to reuse the
RPCServiceClient instance. So the problem still exists.
>>
>> P?r: maybe you can tell me how your scenario - which works for you - is. Do
you create a new Axis2 service instance for every call to the service or do you
create the service once and then call it multiple times?
>>
>> Thanks
>> - Marc
>>
>> __ ____ ____ ____ ____ ____ ____
>>> From: par_malmqvist@(protected)
>>> To: axis-user@(protected)
>>> Subject: RE: [Axis2] BindException calling RPCServiceClient very frequently
>>> Date: Thu, 29 Nov 2007 11:38:22 +0100
>>>
>>> Hi!
>>>
>>> I solved the problem with:
>>>
>>>
>>>
>>> Options options = stub._getServiceClient().getOptions();
>>>
>>> options.setCallTransportCleanup(true);
>>>
>>> options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE);
>>>
>>> /P?r
>>>
>>>
>>>
>>>
>>>
>>>
>>>> Date: Thu, 29 Nov 2007 11:15:42 +0530
>>>> From: deepalk@(protected)
>>>> To: axis-user@(protected)
>>>> Subject: Re: [Axis2] BindException calling RPCServiceClient very frequently
>>>>
>>>> Marc N?dele wrote:
>>>>> Hi all,
>>>>>
>>>>> I am now searching for a solution to this problem for many weeks without
success.
>>>>>
>>>>> I have a very simple RPCServiceClient similar to the one described in the
Axis2 POJO Web Services example [1]. If I call this client very frequently in a
loop (e.g. 5000 times) I eventually get a BindException when calling the
service. Client OS is Windows XP SP2. Axis2 version is 1.3.
>>>>>
>>>>> In the meanwhile I know that the sockets used for the connections are not
closed fast enough and if the maximum user sockets under Windows of 5000 is
reached I get those exceptions.
>>>>>
>>>>>>From the threads in this mailing list ([2] and [3]) I already got a good
understanding about the cause of the problem and what the solution for an
asynchronous web service (as described in the JIRA issue #2593 [4]) can be.
>>>>>
>>>>> But I am not able to transfer this knowledge to my RPCServiceClient. All
attempts I made failed. The proposed solution desribed in [4] using the
AsyncService2Test.java test case as an example seems not to work for a
RPCServiceClient . So is it not possible to get a solution for a
RPCServiceClient?
>>>>>
>>>>> Does anyone have an idea how I can solve this problem for a
RPCServiceClient? Any hints are welcome!
>>>>>
>>>> Did you try client.cleanupTransport() ?
>>>>
>>>> Thanks
>>>> Deepal
>>>>
>>>>
>>>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>>> To unsubscribe, e-mail: axis-user-unsubscribe@(protected)
>>>> For additional commands, e-mail: axis-user-help@(protected)
>>>>
>>>
>>>
>>> __ ____ ____ ____ ____ ____ ____
>>> Connect to the next generation of MSN Messenger Get it now!
>>
>> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
>> Die neue Version vom Windows Live Messenger ist da!
>> http://get.live.com/messenger/overview
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> To unsubscribe, e-mail: axis-user-unsubscribe@(protected)
>> For additional commands, e-mail: axis-user-help@(protected)
>>
>
>
> __ ____ ____ ____ ____ ____ ____
> Connect to the next generation of MSN Messenger  Get it now!

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
Jetzt kostenlos downloaden: 30 Messenger Emoticons!
http://www.messenger-emoticons.de/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: axis-user-unsubscribe@(protected)
For additional commands, e-mail: axis-user-help@(protected)