Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When Im using HTTP connections, I get the message java.io.IOException: exceeded the configured maximum number of connections. Why?

0
Posted

When Im using HTTP connections, I get the message java.io.IOException: exceeded the configured maximum number of connections. Why?

0

The answer involves the java.io.InputStream and java.io.OutputStream objects related to the javax.microedition.io.HttpConnection object in use. If you’re using either input or output streams, it is necessary to close them after you’ve finished with the connection. Otherwise, the underlying implementation is most likely keeping the javax.microedition.io.Connection object open. Simply call close() on all related streams and it should solve the problem.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123