`
i_am_birdman
  • 浏览: 281739 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
社区版块
存档分类
最新评论

java.lang.IllegalArgumentException: Illegal character in query at index 141:

 
阅读更多
09-26 10:08:48.922: D/touchCheck(20124): ViewRoot's Touch Event : Touch Down
09-26 10:08:48.992: V/AudioManager(20124): playSoundEffect effectType = 0
09-26 10:08:48.992: V/AudioManager(20124): playSoundEffect querySoundEffectsEnabled = false
09-26 10:08:48.992: D/FileTransfer(20124): download http://192.168.0.122:800/pmp//download.html?sourceURI=http%3A%2F%2F192.168.0.122%3A800%2Fpmp%2Fsqyx%2Ffile.html%3Fid%3D0000210335&fileName=新建 Microsoft PowerPoint 幻灯片.ppt to /storage/emulated/0/Android/data/cn.com.pansky.panmobi/cache/新建 Microsoft PowerPoint 幻灯片.ppt
09-26 10:08:48.992: D/touchCheck(20124): ViewRoot's Touch Event : Touch UP  
09-26 10:08:49.002: W/FileTransfer(20124): Error getting HTTP status code from connection.
09-26 10:08:49.002: W/FileTransfer(20124): java.io.IOException: Illegal character in query at index 141: http://192.168.0.122:800/pmp//download.html?sourceURI=http%3A%2F%2F192.168.0.122%3A800%2Fpmp%2Fsqyx%2Ffile.html%3Fid%3D0000210335&fileName=新建 Microsoft PowerPoint 幻灯片.ppt
09-26 10:08:49.002: W/FileTransfer(20124): 	at com.squareup.okhttp.internal.http.HttpEngine.<init>(HttpEngine.java:156)
09-26 10:08:49.002: W/FileTransfer(20124): 	at com.squareup.okhttp.internal.http.HttpURLConnectionImpl.newHttpEngine(HttpURLConnectionImpl.java:312)
09-26 10:08:49.002: W/FileTransfer(20124): 	at com.squareup.okhttp.internal.http.HttpURLConnectionImpl.initHttpEngine(HttpURLConnectionImpl.java:298)
09-26 10:08:49.002: W/FileTransfer(20124): 	at com.squareup.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:124)
09-26 10:08:49.002: W/FileTransfer(20124): 	at org.apache.cordova.FileTransfer$4.run(FileTransfer.java:760)
09-26 10:08:49.002: W/FileTransfer(20124): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
09-26 10:08:49.002: W/FileTransfer(20124): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
09-26 10:08:49.002: W/FileTransfer(20124): 	at java.lang.Thread.run(Thread.java:856)
09-26 10:08:49.002: E/FileTransfer(20124): {"target":"\/storage\/emulated\/0\/Android\/data\/cn.com.pansky.panmobi\/cache\/新建 Microsoft PowerPoint 幻灯片.ppt","source":"http:\/\/192.168.0.122:800\/pmp\/\/download.html?sourceURI=http%3A%2F%2F192.168.0.122%3A800%2Fpmp%2Fsqyx%2Ffile.html%3Fid%3D0000210335&fileName=新建 Microsoft PowerPoint 幻灯片.ppt","http_status":0,"code":3}
09-26 10:08:49.002: E/FileTransfer(20124): java.io.IOException: Illegal character in query at index 141: http://192.168.0.122:800/pmp//download.html?sourceURI=http%3A%2F%2F192.168.0.122%3A800%2Fpmp%2Fsqyx%2Ffile.html%3Fid%3D0000210335&fileName=新建 Microsoft PowerPoint 幻灯片.ppt
09-26 10:08:49.002: E/FileTransfer(20124): 	at com.squareup.okhttp.internal.http.HttpEngine.<init>(HttpEngine.java:156)
09-26 10:08:49.002: E/FileTransfer(20124): 	at com.squareup.okhttp.internal.http.HttpURLConnectionImpl.newHttpEngine(HttpURLConnectionImpl.java:312)
09-26 10:08:49.002: E/FileTransfer(20124): 	at com.squareup.okhttp.internal.http.HttpURLConnectionImpl.initHttpEngine(HttpURLConnectionImpl.java:298)
09-26 10:08:49.002: E/FileTransfer(20124): 	at com.squareup.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:124)
09-26 10:08:49.002: E/FileTransfer(20124): 	at org.apache.cordova.FileTransfer$4.run(FileTransfer.java:760)
09-26 10:08:49.002: E/FileTransfer(20124): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
09-26 10:08:49.002: E/FileTransfer(20124): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
09-26 10:08:49.002: E/FileTransfer(20124): 	at java.lang.Thread.run(Thread.java:856)
09-26 10:08:49.042: D/CordovaLog(20124): http://192.168.0.122:800/pmp/resources/scripts/utils.js?ver=1.0.1: Line 247 : 3
09-26 10:08:49.042: I/Web Console(20124): 3 at http://192.168.0.122:800/pmp/resources/scripts/utils.js?ver=1.0.1:247
09-26 10:08:49.042: W/ResourceType(20124): No package identifier when getting name for resource number 0x00000064




url的filename里有殊字符(空格),转换fileName= filename.replaceAll(" ", "%20");








分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics