I was unable to save the HTTP result to file because of a I/O error: Server redirected too many tim
来源:互联网 发布:淘宝店铺装修模版代码 编辑:程序博客网 时间:2024/05/18 23:28
最近使用kettle 的http 组件下载文件的时候遇到了下面的错误:
2016/08/15 11:46:58 - 下载P2PContractPay - Start of HTTP job entry.
2016/08/15 11:46:58 - 下载P2PContractPay - Connecting to URL: http://100.20.12.23/download/1608/
2016/08/15 11:46:58 - 下载P2PContractPay - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : I was unable to save the HTTP result to file because of a I/O error: Server redirected too many times (20)
2016/08/15 11:46:58 - 下载P2PContractPay - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : java.net.ProtocolException: Server redirected too many times (20)
2016/08/15 11:46:58 - 下载P2PContractPay - at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1637)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.entries.http.JobEntryHTTP.execute(JobEntryHTTP.java:540)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.Job.execute(Job.java:723)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.Job.execute(Job.java:864)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.Job.execute(Job.java:864)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.Job.execute(Job.java:864)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.Job.execute(Job.java:864)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.Job.execute(Job.java:864)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.Job.execute(Job.java:864)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.Job.execute(Job.java:545)
2016/08/15 11:46:58 - 下载P2PContractPay - at org.pentaho.di.job.Job.run(Job.java:435)
错误描述:本地跑job可以通过http下载文件,上生产服务器跑job报上面的错误。
错误分析:问了公司运维人员,发现生产服务器网络是通的,telnet 该 http 服务器IP也是通的。唯一不一样的是,文件服务器(http提供下载文件所在服务器)和生产服务器同属于一个网段,而本地电脑的IP跟文件服务器不属于同一网段;而且该 http 请求下载文件的时候还会跳转,需要用户认证才能下载文件。
解决方法:在kettle 的http组件验证信息中选择忽略代理服务器,如下图
- I was unable to save the HTTP result to file because of a I/O error: Server redirected too many tim
- Bash Commands - the diff of > and >> # Use I/O Redirection to generate a log file
- If I have been able to see further, it was only because I stood on the shoulders of giants.
- Errors in file : ORA-27091: unable to queue I/O
- a weird result when I try to print the value of point by %p format
- How to resize a *.jpg image and save the result to a file
- Server redirected too many times
- Original error: Unable to launch WebDriverAgent because of xcodebuild failure: EROFS: read-only file
- unspecified Error of js on windows2000 and ie6 to try to save a File.
- Internal Server Error The server encountered an internal error or misconfiguration and was unable to
- Server error! The server encountered an internal error and was unable to complete your request. Ei
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder
- 性能最好的序列化反序列化,Protobuf的用法(maven项目)
- Qt生成随机数
- MongoDB的Windows下安装并配置MongoDB服务
- POJ-1903 Jurassic Remains
- 机器学习入门之多项式曲线拟合
- I was unable to save the HTTP result to file because of a I/O error: Server redirected too many tim
- SpringMVC默认依赖Bean:BeanNameUrlHandlerMapping
- leetcode 217. Contains Duplicate
- 习题 5:
- Android 自定义控件 轻松实现360软件详情页
- 如何将二维数组赋值给vector
- C#之加载格式不正确的异常
- FORMS进阶之——头行结构
- 更改Eclipse下Tomcat的部署目录 ,防止上传的文件是到eclipse的克隆的tomcat上的webapp,而不是tomcat本身的webapp