public void myFunct()
{
StreamConnection conn = null;
InputStream is = null;
try{
conn = (StreamConnection)Connector.open(url);
is = conn.openInputStream();
}catch(Exception e){}
}
在nokia 6120 上运行有时会报java.io.IOException SymbianOS error = -11的错误,搜了google,原因如下:
error = -11:
An object already exists.
An object of some name/type is to be created, but an object of that name/type already exists.
That means your previously opened connection is still open and you are again trying to open the same connection.
Better you make a method which disconnect the connection and make a call to this method just before you gonna create/open the new connection. Kindly try to implement this and have a look over if the underlined issues get resolved.
分享到:
相关推荐
Eclipse 进行 ANT 时错误 Javadoc failed java.io.IOException Cannot run program javadoc
解决删除目录提示:System.IO.IOException: 目录不是空的
windows下eclipse跑junit报错:CreateProcess error=206后面跟着乱码。 把这个jar替换掉就好了,放在:eclipse/plugins/下面。 参考:https://bugs.eclipse.org/bugs/show_bug.cgi?id=327193
把 java 代码直接改成 jsp,上传时产生 如下异常: 2012-12-31 8:59:21 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet jsp threw exception java.io.IOException: ...
本人的一片博客,http://blog.csdn.net/jackieriver/article/details/78882194,所需要的一些插件
Java.io.IOException: The same input jar [E:\Android\myProgram\angel\libs\alipaySdk-20160825.jar] is specified twice. 首先 看一下我项目中关于此jar的配置,我在libs中导入了alipaySdk-20160825.jar,
针对java.io.IOException: entity content is too long [180278508] for the configured buffer limit [157286400]异常,将 DEFAULT_BUFFER_LIMIT修改为150M
it.sauronsoftware.jave.EncoderException: java.io.IOException: Cannot run program "C:\Users\moxiao\AppData\Local\Temp\jave-1\ffmpeg.exe": CreateProcess error=740, 请求的操作需要提升。 在最新的liunx ...
报错:java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.-附件资源
import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.OutputStream; import java....
import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.StringReader; import java.util.ArrayList; import java.util.Collection; import java.util....
java.io.OutputStream os = new java.io.DataOutputStream( sk.getOutputStream()); // 利用网络输出流将文件传到客户端 边读边发送 int len=0; byte[] buff = new byte[1024]; while((len=fis.read(buff))...
java.io.IOException: Server returned HTTP response code: 403 for URL 处理过程记录 BASIC AUTH2 POST接口,解决403问题
java.security.InvalidKeyException:illegal Key Size 微信开发过程中,JDK6的版本
import java.io.IOException; public class B { public static void main(String[] args) { File file = new File("c:\\a.jpg"); FileInputStream is = null; try { is = new FileInputStream(file); }...
原生java代码,导入到eclipse就能运行,这是研究了两天研究出来的,比网上的用什么doc转pdf,还有pdfbox之类的有效多了 而且没有乱码。绝对有效。所需的模板在另一地址下载:...
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.util.Log; public class SerialPort { private static final String TAG = "SerialPort"; /* * Do ...
Android Build 时报错: java.io.IOException: Could not parse XML from android/accounts/annotati...Android构建时报错: app:lintVitalRelease[Fatal Error] :3:214: 与元素类型 “item” 相关联的 “name” ...
import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.ArrayList; import java.util.HashMap; import java.util....