• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads


  • Subject: Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 17 Feb 2006 13:23:18 -0800

Hi Helen,

On Feb 17, 2006, at 1:04 PM, Helen He wrote:
On Feb 17, 2006, at 1:55 PM, Chuck Hill wrote:
On Feb 17, 2006, at 8:28 AM, Helen He wrote:

In our WO application, we need to call a XML RPC service to get course data. Since each call will get data only for one course and we need to update all the courses in our database, so we made a loop.
What classes are you using to access the course data? Are you waiting for a reply before sending the next request?
Here is my coding:

ISSOXMLClient server = new ISSOXMLClient( url, userid, password);// when this constructor is called, a object of XmlRpcClientLite is instantiated.


It looks as if ISSOXMLClient is unique to PSU. Perhaps you can ask the people who wrote it to assist you.


int c = courses.count();
System.out.println("There are total " + c + " courses.");
for(int i = 0; i<c; i++)
{
Course aCourse = (Course)courses.objectAtIndex(i);
String semester = "";
String isisAbbrev = aCourse.isisAbbrev().lookupCode();
String isisNum = aCourse.isisCourseNum();

System.out.println("Call " + i);
result = server.selectISSOCourseMaster(semester, isisAbbrev, isisNum);
//Then result is stored in a array.
}




But when the service was called continuously about 30 times, an exception org.apache.xmlrpc.XmlRpcException: out of threads was thrown. We have tried many ways to solve the problem but still no good. We need help. Any ideas or suggestions are welcome!

Can you reuse the threads from the previous requests? It sounds like it perhaps has a pool of threads that need to be reused or the pool size needs to be increased.

How to reuse the pool of threads and to increase the size of pool?

That likely depends on ISSOXMLClient. org.apache.xmlrpc.XmlRpcClient has methods that handle a set of threads and (apparently) a pool of workers. org.apache.xmlrpc.XmlRpcServer does as well. The solution to your problem probably lies in there and their interaction with ISSOXMLClient.


Chuck


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads
      • From: Helen He <email@hidden>
References: 
 >Help with: org.apache.xmlrpc.XmlRpcException: out of threads (From: Helen He <email@hidden>)
 >Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads (From: Chuck Hill <email@hidden>)
 >Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads (From: Helen He <email@hidden>)

  • Prev by Date: Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads
  • Next by Date: Efficient qualifier for to-many relationships?
  • Previous by thread: Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads
  • Next by thread: Re: Help with: org.apache.xmlrpc.XmlRpcException: out of threads
  • Index(es):
    • Date
    • Thread