问题描述
请问这是啥问题?运行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……
我也有这个问题,你问题解决了么,是怎么回事啊。