When Im using HTTP connections, I get the message java.io.IOException: exceeded the configured maximum number of connections. Why?
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.