read: unexpected EOF
来源:互联网 发布:qq电脑加速软件 编辑:程序博客网 时间:2024/06/07 01:53
上传文件时第一次ok,第二次就会报这个错误,此前上传文件一直没问题,从没报这种错误,后来是对比发现,原来是在执行打开文件代码的时候做了这一步:
在HttpRequestHandler抽象类的子类的handle方法中启动了服务
Intent myIntent = new Intent(context, WebService.class);
myIntent.putExtra(“info”,”sendFile”);
context.startService(myIntent);
后面把服务启动放到广播接收者里然后解决了报错问题。
虽然不知道原因是什么,但是确实是因为在服务端接收请求后启动服务时财报这个错误。把服务启动设置在广播接收者里面启动就好了。
阅读全文
0 0
- read: unexpected EOF
- Unexpected EOF from the server.
- SyntaxError: unexpected EOF while parsing
- : gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive
- JIRA异常 read past EOF
- unexpected EOF while looking for matching ``'
- Python错误SyntaxError: unexpected EOF while parsing
- ftpget错误unexpected server response: EOF
- gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive ta
- java.io.IOException: read past EOF
- AIX errpt error message: 0315-180 logread: UNEXPECTED EOF
- Shell中EOF出现syntax error: unexpected end of file
- 使用go-sql-driver.mysql包报错unexpected EOF
- gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpect
- Lucene报错 —— read past EOF
- Use eof() to read and display a text file.
- Use eof() to read and display a text file.
- eof ()
- JS二级联动选择框动态创建和编辑实现
- unity 判断物品是否出现在角色面前
- 安卓双向滑动的实现方法
- Sublime Text3 配置TypeScript,使其高亮,提示
- 数据库表查询的内连接、外连接、交叉连接实现方式
- read: unexpected EOF
- 行为型模式总结篇(1)
- iOS之《Effective Objective-C 2.0》读书笔记(50)
- JOSN语法以及和XML的比较
- 第四周项目三(1)—链表的逆置
- 浪曦_Struts2应用开发系列_第2讲.Struts2的类型转换--出现的问题笔记
- 设计模式阅读备忘笔记-策略模式
- Spring事物管理
- 简单谈一谈php中var关键字的作用和意义