Skip to main content

problem consumming large number of Web services

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
mikephoenix
Offline
Joined: 2006-10-12

We have this one Wb service module that consumes SOAP Web services from anotuher applicaiton server. In the process of loading it uses an unnamed block to access the WS operations thousands of times to process client companies. It has been working OK on Glasfisch 2.1, but when I tried deploying it to GF 3.1 it processes a few thousand of these client companies and then dies with the error stack below.

Recently I have also seen this problem when trying to deploy a module that has to access a large number of client companies on my local version of 2.1. It still works OK on other test servers with more RAM. At any rate I would aprcaite ti if anybody could give suggestions on how to handle this problem.

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Error trying to get the Client Companies for cache: java.net.BindException: Address already in use: connect
at com.lingosys.attask.ws.LingoAtTask.(LingoAtTask.java:128)
... 46 more
Caused by: java.lang.RuntimeException: Error trying to get the Client Companies for cache: java.net.BindException: Address already in use: connect
at com.lingosys.attask.ws.Company.getClientCompanies(Company.java:559)
at com.lingosys.attask.ws.LingoAtTask.(LingoAtTask.java:94)
... 46 more
Caused by: java.lang.RuntimeException: java.net.BindException: Address already in use: connect
at com.lingosys.attask.ws.Company.(Company.java:83)
at com.lingosys.attask.ws.Company.createList(Company.java:461)
at com.lingosys.attask.ws.Company.getClientCompanies(Company.java:552)
... 47 more
Caused by: java.net.BindException: Address already in use: connect
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.attask.www.api.APISEIBindingStub.getCompaniesFromSearch(APISEIBindingStub.java:33837)
at com.lingosys.attask.Utils.getBeanExtendedParameter(Utils.java:299)
at com.lingosys.attask.ws.Company.getPaymentTerms(Company.java:251)
at com.lingosys.attask.ws.Company.(Company.java:72)
... 49 more
Caused by: java.net.BindException: Address already in use: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at sun.reflect.GeneratedMethodAccessor1211.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
... 62 more