pzxsheng

          有種相見不敢見的傷痛,有種愛還埋藏在心中

          1.5版Axis2 timeout問題

          在設置超時之后,依然在60秒后保超時錯誤,很是無語,網上也找了很久,API 也看了。最后發現是1.5的Axis2 由此bug。用1.6.2版本之后就沒有問題了。

          Axis2 java.net.SocketTimeoutException: Read timed out @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

                 

                  //設置超時

                  // This enables the user to pass in socket timeout value as an Integer. If nothing is set, the default value is 60000 milliseconds.

                  options.setProperty(HTTPConstants.SO_TIMEOUT, new Integer(600000));

                  // This enables the user to pass in connection timeout value as an Integer. If nothing is set, the default value is 60000 milliseconds.

                  options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, new Integer(600000));


                  options.setTimeOutInMilliSeconds(600000L);

          posted on 2014-11-24 17:17 科菱財神 閱讀(1416) 評論(0)  編輯  收藏 所屬分類: Webservice

          導航

          <2014年11月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          統計

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 陈巴尔虎旗| 巴楚县| 河源市| 苍山县| 深圳市| 中牟县| 甘洛县| 静安区| 平潭县| 江口县| 阿拉尔市| 庆安县| 鹰潭市| 淮安市| 容城县| 昌平区| 祁门县| 元氏县| 尼勒克县| 金川县| 博兴县| 若尔盖县| 苏尼特左旗| 汾西县| 罗定市| 乐亭县| 桃源县| 隆化县| 望城县| 巨野县| 金沙县| 桃园市| 微山县| 千阳县| 景东| 平山县| 新民市| 勃利县| 呼和浩特市| 重庆市| 遵义县|