您的位置:首页 > 编程语言 > Java开发

java.io.IOException: Prepare failed.: status=0x1

2015-09-17 20:00 423 查看
09-17 18:10:46.298: D/OpenGLRenderer(6785): Flushing caches (mode 0)

09-17 18:10:48.571: D/MediaPlayer(6785): mPlayerID = 46

09-17 18:10:48.885: E/MediaPlayer(6785): error (1, -1008)

09-17 18:10:48.887: W/System.err(6785): java.io.IOException: Prepare failed.: status=0x1

09-17 18:10:48.891: W/System.err(6785): at android.media.MediaPlayer.prepare(Native Method)

09-17 18:10:48.891: W/System.err(6785): at com.jarvis.music.MusicPlayer.playUrl(MusicPlayer.java:91)

09-17 18:10:48.891: W/System.err(6785): at com.jarvis.music.MusicItemPlayer$1.run(MusicItemPlayer.java:66)

09-17 18:10:48.891: W/System.err(6785): at java.lang.Thread.run(Thread.java:856)

错误原因:构建mediaPlayer的时候必须要带上 上下文context

网上其他的说法都是错的,

09-17 17:46:16.577: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:16.782: DEBUG/NetworkControllerGemini(313): refreshViews(0), DataConnected=false

09-17 17:46:16.782: DEBUG/NetworkControllerGemini(313): refreshViews(0), set parameters to signal cluster view.

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:16.782: DEBUG/NetworkControllerGemini(313): refreshViews(0), tempPhoneSignalIconId= 2130837842 tempMobileActivityIconId= 0 tempDataTypeIconId= 0

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): setMobileDataIndicators(0), visible=false, strengthIcon2130837842

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): setDataConnected(0), dataConnected=false

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): setDataNetType3G(0), dataNetType3G=false

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:16.782: DEBUG/NetworkControllerGemini(313): refreshViews(1), DataConnected=false

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): setDataConnected(1), dataConnected=false

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): setDataNetType3G(1), dataNetType3G=false

09-17 17:46:16.782: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:16.787: INFO/AppLaunch(96): DisplayHardware::flip, eglSwapBuffers ...

09-17 17:46:16.790: INFO/SurfaceFlinger(96): [SurfaceFlinger] frames:1, duration:4.003000, fps:0.249793

09-17 17:46:16.984: DEBUG/MediaPlayerService(100): [3] isPlaying: 0

09-17 17:46:17.423: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:17.423: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:17.423: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:17.423: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:17.423: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:17.579: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:17.579: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:17.579: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:17.580: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:17.580: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:17.784: DEBUG/NetworkControllerGemini(313): refreshViews(0), DataConnected=false

09-17 17:46:17.784: DEBUG/NetworkControllerGemini(313): refreshViews(0), set parameters to signal cluster view.

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:17.784: DEBUG/NetworkControllerGemini(313): refreshViews(0), tempPhoneSignalIconId= 2130837842 tempMobileActivityIconId= 0 tempDataTypeIconId= 0

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): setMobileDataIndicators(0), visible=false, strengthIcon2130837842

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): setDataConnected(0), dataConnected=false

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): setDataNetType3G(0), dataNetType3G=false

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:17.784: DEBUG/NetworkControllerGemini(313): refreshViews(1), DataConnected=false

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): setDataConnected(1), dataConnected=false

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): setDataNetType3G(1), dataNetType3G=false

09-17 17:46:17.784: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:17.789: INFO/AppLaunch(96): DisplayHardware::flip, eglSwapBuffers ...

09-17 17:46:17.792: INFO/SurfaceFlinger(96): [SurfaceFlinger] frames:1, duration:1.002000, fps:0.997689

09-17 17:46:17.985: DEBUG/MediaPlayerService(100): [3] isPlaying: 0

09-17 17:46:18.424: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:18.425: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:18.425: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:18.425: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:18.425: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:18.582: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:18.582: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:18.582: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:18.582: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:18.582: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:18.985: DEBUG/MediaPlayerService(100): [3] isPlaying: 0

09-17 17:46:19.426: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:19.426: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:19.426: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:19.426: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:19.426: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:19.570: DEBUG/StateMachine(239): handleMessage: E msg.what=131155

09-17 17:46:19.570: DEBUG/StateMachine(239): processMsg: ConnectedState

09-17 17:46:19.570: DEBUG/WifiStateMachine(239): ConnectedState{ what=131155 when=-1ms arg1=2 }

09-17 17:46:19.570: DEBUG/WifiCommon(239): [wlan0] Issue cmd = 'SIGNAL_POLL'

09-17 17:46:19.571: DEBUG/wpa_supplicant(571): CMD = SIGNAL_POLL

09-17 17:46:19.571: DEBUG/wpa_supplicant(571): wpa_driver_signal_poll

09-17 17:46:19.585: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:19.585: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:19.585: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:19.585: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:19.585: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:19.588: INFO/WifiStateMachine(239): fetchRssiAndLinkSpeedNative, newRssi=-44

09-17 17:46:19.589: DEBUG/StateMachine(239): handleMessage: X

09-17 17:46:19.642: INFO/System.out(672): [socket][34:55425] exception

09-17 17:46:19.642: INFO/System.out(672): [CDS]close[55425]

09-17 17:46:19.643: INFO/System.out(672): [socket][34] connection android.clients.google.com/74.125.204.100:443;LocalPort=35226(10000)

09-17 17:46:19.644: INFO/System.out(672): [CDS]connect[android.clients.google.com/74.125.204.100:443] tm:10

09-17 17:46:19.645: DEBUG/Posix(672): [Posix_connect Debug]Process com.google.android.gms :443

09-17 17:46:19.985: DEBUG/MediaPlayerService(100): [3] isPlaying: 0

09-17 17:46:20.427: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:20.427: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:20.428: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:20.428: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:20.428: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:20.588: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:20.588: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:20.588: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:20.588: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:20.588: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:20.787: DEBUG/NetworkControllerGemini(313): refreshViews(0), DataConnected=false

09-17 17:46:20.787: DEBUG/NetworkControllerGemini(313): refreshViews(0), set parameters to signal cluster view.

09-17 17:46:20.787: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:20.787: DEBUG/NetworkControllerGemini(313): refreshViews(0), tempPhoneSignalIconId= 2130837842 tempMobileActivityIconId= 0 tempDataTypeIconId= 0

09-17 17:46:20.787: DEBUG/SignalClusterViewGemini(313): setMobileDataIndicators(0), visible=false, strengthIcon2130837842

09-17 17:46:20.787: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:20.787: DEBUG/SignalClusterViewGemini(313): setDataConnected(0), dataConnected=false

09-17 17:46:20.787: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:20.787: DEBUG/SignalClusterViewGemini(313): setDataNetType3G(0), dataNetType3G=false

09-17 17:46:20.787: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:20.787: DEBUG/NetworkControllerGemini(313): refreshViews(1), DataConnected=false

09-17 17:46:20.787: DEBUG/SignalClusterViewGemini(313): setDataConnected(1), dataConnected=false

09-17 17:46:20.789: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:20.789: DEBUG/SignalClusterViewGemini(313): setDataNetType3G(1), dataNetType3G=false

09-17 17:46:20.789: DEBUG/SignalClusterViewGemini(313): apply, mMobileVisible=false, mWifiVisible=true, mIsAirplaneMode=false

09-17 17:46:20.792: INFO/AppLaunch(96): DisplayHardware::flip, eglSwapBuffers ...

09-17 17:46:20.796: INFO/SurfaceFlinger(96): [SurfaceFlinger] frames:1, duration:3.003000, fps:0.332940

09-17 17:46:20.985: DEBUG/MediaPlayerService(100): [3] isPlaying: 0

09-17 17:46:21.430: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:21.430: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:21.430: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:21.430: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:21.430: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:21.595: VERBOSE/ActivityManager(239): getTasks: max=1, flags=0, receiver=null

09-17 17:46:21.595: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicItemPlayer: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:21.595: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.music.MusicStartActivity: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:21.595: VERBOSE/ActivityManager(239): com.example.nongmin/com.jarvis.mytaobao.home.Main_FA: task=TaskRecord{41b87528 #6 A com.example.nongmin}

09-17 17:46:21.595: VERBOSE/ActivityManager(239): We have pending thumbnails: null

09-17 17:46:21.985: DEBUG/MediaPlayerService(100): [3] isPlaying: 0

错误原因:构建mediaPlayer的时候必须要带上 上下文context

网上其他的说法都是错的,

09-16 22:53:47.269: E/AndroidRuntime(13255): FATAL EXCEPTION: main

09-16 22:53:47.269: E/AndroidRuntime(13255): android.app.SuperNotCalledException: Activity {com.example.nongmin/com.jarvis.music.MusicStartActivity} did not call through to super.onCreate()

09-16 22:53:47.269: E/AndroidRuntime(13255): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1962)

09-16 22:53:47.269: E/AndroidRuntime(13255): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2023)

09-16 22:53:47.269: E/AndroidRuntime(13255): at android.app.ActivityThread.access$600(ActivityThread.java:127)

09-16 22:53:47.269: E/AndroidRuntime(13255): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1174)

09-16 22:53:47.269: E/AndroidRuntime(13255): at android.os.Handler.dispatchMessage(Handler.java:99)

09-16 22:53:47.269: E/AndroidRuntime(13255): at android.os.Looper.loop(Looper.java:137)

09-16 22:53:47.269: E/AndroidRuntime(13255): at android.app.ActivityThread.main(ActivityThread.java:4503)

09-16 22:53:47.269: E/AndroidRuntime(13255): at java.lang.reflect.Method.invokeNative(Native Method)

09-16 22:53:47.269: E/AndroidRuntime(13255): at java.lang.reflect.Method.invoke(Method.java:511)

09-16 22:53:47.269: E/AndroidRuntime(13255): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)

09-16 22:53:47.269: E/AndroidRuntime(13255): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)

09-16 22:53:47.269: E/AndroidRuntime(13255): at dalvik.system.NativeStart.main(Native Method)

错误原因:重载的时候把super.onCreate(savedInstanceState);给掉了 主要是复制代码的时候给全部覆盖了

09-17 16:54:21.655: E/MediaPlayer(27129): attachNewPlayer called in state 4

09-17 16:54:21.732: W/System.err(27129): java.lang.IllegalStateException

09-17 16:54:21.759: W/System.err(27129): at android.media.MediaPlayer.setDataSource(Native Method)

09-17 16:54:21.759: W/System.err(27129): at com.jarvis.music.MusicPlayer.playUrl(MusicPlayer.java:90)

09-17 16:54:21.759: W/System.err(27129): at com.jarvis.music.MusicItemPlayer$1.run(MusicItemPlayer.java:64)

09-17 16:54:21.759: W/System.err(27129): at java.lang.Thread.run(Thread.java:856)

音乐播放器设置的地址如果带了参数,那么需要加上这个东西 &

09-17 19:41:56.030: E/AndroidRuntime(14789): FATAL EXCEPTION: Thread-383

09-17 19:41:56.030: E/AndroidRuntime(14789): java.lang.NullPointerException

09-17 19:41:56.030: E/AndroidRuntime(14789): at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116)

09-17 19:41:56.030: E/AndroidRuntime(14789): at org.json.JSONTokener.nextValue(JSONTokener.java:94)

09-17 19:41:56.030: E/AndroidRuntime(14789): at org.json.JSONObject.<init>(JSONObject.java:154)

09-17 19:41:56.030: E/AndroidRuntime(14789): at org.json.JSONObject.<init>(JSONObject.java:171)

09-17 19:41:56.030: E/AndroidRuntime(14789): at com.javis.mytools.HttpTools.getMusicData(HttpTools.java:519)

09-17 19:41:56.030: E/AndroidRuntime(14789): at com.jarvis.music.MusicStartActivity$3.run(MusicStartActivity.java:129)

09-17 19:41:56.030: E/AndroidRuntime(14789): at java.lang.Thread.run(Thread.java:856)

错误原因:没有网络
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: