【发布时间】:2014-05-23 03:00:12
【问题描述】:
我正在为一项任务开发一个小型 J2ME 应用程序,每当我尝试连接到任何网站时,我都会收到 IOError in socket::open = 11004。
示例代码:
/* I am using a local XML server, but the error I get is similar to when
connecting to the url below. */
conn = (HttpConnection)Connector.open("http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/example/solr/collection1/conf/solrconfig.xml");
if(conn.getResponseCode() == HttpConnection.HTTP_OK) { // The error is here
// Some code
}
编辑:我为此使用 Oracle 模拟器。
【问题讨论】: