java.io.IOException: Root is not accessible

问题描述

请问这是啥问题?运行j2meMP3播放器抛出异常,模拟器wtk2.5.2,运行的时候模拟器启动一闪就退出了。。RunningwithstoragerootC:DocumentsandSettingsAdministratorj2mewtk2.5.2appdbDefaultColorPhoneRunningwithlocale:Chinese_People'sRepublicofChina.936Runningintheidentified_third_partysecuritydomainjava.io.IOException:Rootisnotaccessibleatcom.sun.midp.io.j2me.file.Protocol.ensureConnected(+47)atcom.sun.midp.io.j2me.file.Protocol.ensureOpenAndConnected(+21)atcom.sun.midp.io.j2me.file.Protocol.listInternal(+8)atcom.sun.midp.io.j2me.file.Protocol.list(+6)atedu.hebtu.main.Playlist.getAllFiles(+43)atedu.hebtu.main.Playlist.<init>(+14)atedu.hebtu.main.PlayController.<init>(+22)atedu.hebtu.main.PlayerCanvas.<init>(+268)atedu.hebtu.main.iPlayer.<init>(+11)atjava.lang.Class.runCustomCode(+0)atcom.sun.midp.midlet.MIDletState.createMIDlet(+34)atcom.sun.midp.midlet.Scheduler.schedule(+52)atcom.sun.midp.main.Main.runLocalClass(+28)atcom.sun.midp.main.Main.main(+80)java.lang.ArrayIndexOutOfBoundsException:0>=0atjava.util.Vector.elementAt(+41)atedu.hebtu.main.Playlist.<init>(+20)atedu.hebtu.main.PlayController.<init>(+22)atedu.hebtu.main.PlayerCanvas.<init>(+268)atedu.hebtu.main.iPlayer.<init>(+11)atjava.lang.Class.runCustomCode(+0)atcom.sun.midp.midlet.MIDletState.createMIDlet(+34)atcom.sun.midp.midlet.Scheduler.schedule(+52)atcom.sun.midp.main.Main.runLocalClass(+28)atcom.sun.midp.main.Main.main(+80)Executioncompleted.3505396bytecodesexecuted236threadswitches1673classesinthesystem(includingsystemclasses)18810dynamicobjectsallocated(618924bytes)9garbagecollections(530024bytescollected)

解决方案

本帖最后由 weeelxd 于 2010-06-02 12:14:46 编辑
解决方案二:
可能是读取mp3文件时候路径错了
解决方案三:
Playlist类在构造时Vector索引越界Playlist类在调用getAllFiles方法时,指定的目录可能不存在
解决方案四:
引用楼主weeelxd的回复:

请问这是啥问题?运行j2meMP3播放器抛出异常,模拟器wtk2.5.2,运行的时候模拟器启动一闪就退出了。。RunningwithstoragerootC:DocumentsandSettingsAdministratorj2mewtk2.5.2appdbDefaultColorPhoneRunningwithlocale:Chinese_People's……

我也有这个问题,你问题解决了么,是怎么回事啊。

时间: 2024-10-15 01:40:38

java.io.IOException: Root is not accessible的相关文章

Execute failed: java.io.IOException: Cannot run program &amp;quot;sdk-linux/build-tools/22.0.0/aapt&amp;quot;: error=2

在Linux上使用ant编译打包apk的时候,出现下面的错误及解决方法: 1./usr/local/android-sdk-linux/tools/ant/build.xml:698: Execute failed: java.io.IOException: Cannot run program "/usr/local/android-sdk-linux/build-tools/22.0.0/aapt": error=2, No such file or directory BUILD

在eclipse的console栏中一直显示java.io.IOException

在eclipse的console栏中一直显示java.io.IOException: 您的主机中的软件中止了一个已建立错误.具体如下. [2013-09-02 17:24:14 - ddmlib] 您的主机中的软件中止了一个已建立的连接. java.io.IOException: 您的主机中的软件中止了一个已建立的连接. at sun.nio.ch.SocketDispatcher.write0(Native Method) at sun.nio.ch.SocketDispatcher.writ

jsp标签-在JSP中抛出java.io.IOException: tmpFile.renameTo(classFile) failed异常怎么解决

问题描述 在JSP中抛出java.io.IOException: tmpFile.renameTo(classFile) failed异常怎么解决 在JSP中抛出java.io.IOException: tmpFile.renameTo(classFile) failed异常怎么解决 解决方案 你确定不是控制台抛出而是JSP抛出! 解决方案二: java.io.IOException: tmpFile.renameTo(classFile) failedjava.io.IOException:

hadoop错误,重新格式化namenode后,出现java.io.IOException Incompatible clusterIDs

错误:     java.io.IOException: Incompatible clusterIDs in /data/dfs/data: namenode clusterID = CID-d1448b9e-da0f-499e-b1d4-78cb18ecdebb; datanode clusterID = CID-ff0faa40-2940-4838-b321-98272eb0dee3 原因:     每次namenode format会重新创建一个namenodeId,而data目录包含了

java.io.IOException: Server returned HTTP response code: 505 for URL

问题描述 碰到个很奇怪的问题:代码如下:URL url = new URL(urlStr);URLConnection hpCon = url.openConnection();InputStream in = hpCon.getInputStream(); 然后我发送的一个URL是 : http://localhost:8000/account/accountTo.query?param=SR4A V12f报错:java.io.IOException: Server returned HTTP

启动web harvest的时候出现Caused by: java.io.IOException: Could not get shel

问题描述 当使用java -jar命令的时候,出现如下异常,请各位看看,我还是新手:d:worktec_crawlers>java -jar webharvest.jarException in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError at org.webharvest.gui.Ide.<init>(Unknown Source) at CommandLine$1.run(Unkn

hive -- java.io.IOException: Cannot create an instance of InputSplit

hive -- java.io.IOException: Cannot create an instance of InputSplit 博客分类: hadoophbasehive hadoophbasehive&http://www.aliyun.com/zixun/aggregation/37954.html">nbsp; hive中执行: select * from ht_custmer;  没问题: 执行: select * from ht_customer where b

Could not obtain block blk_XXX_YYY from any node:java.io.IOException:No live nodes contain current block

错误:     10/12/08 20:10:31 INFO hdfs.DFSClient: Could not obtain block blk_XXXXXXXXXXXXXXXXXXXXXX_YYYYYYYY from any node: java.io.IOException: No live nodes contain current block. Will get new block locations from namenode and retry 原因:     Datanode 有

Exception in thread &amp;amp;quot;main&amp;amp;quot; java.io.IOException

问题描述 Heritrixversion:nullExceptioninthread"main"java.io.IOException:Failedtoloadpropertiesfilefromfilesystemorfromclasspath.atorg.archive.crawler.Heritrix.getPropertiesInputStream(Heritrix.java:886)atorg.archive.crawler.Heritrix.loadProperties(H