Jquery.Uploadify3.0 error -220 IO.Error

紫舞玥汐 2013-09-09 11:50:19
我最近用Uploadify3.0这个插件在做文件的批量上传。
测试下来,少量的文件上传没有什么问题,当上传的量增大时,偶尔,间歇性,没什么规律的出现一个error -220。
这个我查过,是Uploadify3.0内置的一个errorCode。是属于Upload Error,可以在onUploadError事件中捕获到。
可是我想不通,造成这个error的原因到底是什么。查看日志,后台读写文件的代码没有报异常。但代码中,读写文件之后的代码的确也没运行下去。(不过整个上传队列并没停下来)
我不知道是不是可以理解为,没有报异常是被Uploadify3.0捕获了去,然后返回一个errorCode
不知道有哪位前辈遇到过这种情况的,能不能详细跟我说说,会造成这种情况的可能的原因有哪些?因为目前我只想到这一个可能,而我必须处理各种可能的情况,但这个error又很难遇到一次,也就是说,我想知道触发这个error的条件有哪些。
先谢谢各位了!

在此附上一张图,有关于这个error的:
...全文
297 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
wzsdoors 2014-08-16
  • 打赏
  • 举报
回复
同样-220错误,io error ,通道怎么关闭呢,楼主请帖代码
紫舞玥汐 2014-03-06
  • 打赏
  • 举报
回复
问题已解决,最后查到是后台文件读写时用到了文件通道,通道没关闭
key2value 2013-09-10
  • 打赏
  • 举报
回复
2038的问题我也碰见过……http://blog.csdn.net/u010786672/article/details/9011281……和你的似乎还不太一样
紫舞玥汐 2013-09-10
  • 打赏
  • 举报
回复
引用 2 楼 u010786672 的回复:
2038的问题我也碰见过……http://blog.csdn.net/u010786672/article/details/9011281……和你的似乎还不太一样
的确不一样,因为我一直是用printWriter = response.getWriter 然后直接输出的。 在uploadify的onComplete事件里得到这个输出的内容,再处理
紫舞玥汐 2013-09-09
  • 打赏
  • 举报
回复
哦对了,有文档说这个220是IO_Error,我想不通这个读写错误是什么造成的,因为没有报异常,而且重新上传报了这个220的文件,又能正常上传的。
charisma国外后台模版 # Charisma ### Free, premium quality, responsive, multiple skin admin template. ##[Live Demo](http://usman.it/themes/charisma/) ### [Download](https://github.com/usmanhalalit/charisma/archive/master.zip) ##Features - 9 different themes. - Fully responsive, optimized UI for tablets and mobile phones, [see how it looks on different devices](http://www.responsinator.com/?url=usman.it%2Fthemes%2Fcharisma). - Based on Bootstrap. - Works on IE9+ - Commented code. - Custom product tour, [see example](http://usman.it/themes/charisma/tour.html). - Grid system, [see example](http://usman.it/themes/charisma/grid.html). - Charts, including, pie, stack, flot, realtime etc. - Data tables - Widget boxes, collapsible, closable, [see example](http://usman.it/themes/charisma/grid.html). - Photo gallery [see example](http://usman.it/themes/charisma/gallery.html). - Ajaxified menus - Full calendar, monthly weekly, daily, with todo list. - Custom error page - Auto active link detection and much more. ## Credits Without these open osurce software Charisma woudn't have been possible: - [Twitter Bootstrap](http://getbootstrap.com/) - [jQuery](http://jquery.com) - [Bootswatch](http://bootswatch.com/) - [Chsoen](http://harvesthq.github.com/chosen/) - [Flot Charts](http://www.flotcharts.org/) - [Full Calendar](http://arshaw.com/fullcalendar/) - [Datatables](http://datatables.net/) - [Colorbox](http://www.jacklmoore.com/colorbox/) - [Noty](http://ned.im/noty/) - [Raty](http://wbotelhos.com/raty) - iPhone-style Checkboxes - [Autogrowing Textarea](http://onehackoranother.com/projects/jquery/jquery-grab-bag/autogrow-textarea.html) - [Animate.css](http://daneden.github.io/animate.css/) - [Uploadify](http://www.uploadify.com/) Please visit [http://usman.it/free-responsive-admin-template/](http://usman.it/free-responsive-admin-template/ "") for more information. ### [Donate Charisma](http://flattr.com/thing/1507720/usmanhalalitcharisma-on-GitHub) ___ © 2012 - 2014 [Muhammad Usman](http://usman.it/). Licensed under the Apache License, Version 2.0.

87,992

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧