Loading...

          java .net

          java.lang.IllegalStateException STREAMED

          request.getInputStream() 和 request.getReader()不能同時調用,否則會引發java.lang.IllegalStateException異常。

          API中有寫:

          getInputStream

          public ServletInputStream getInputStream()
          throws java.io.IOException
          Retrieves the body of the request as binary data using a ServletInputStream. Either this method or getReader() may be called to read the body, not both.
          Returns:
          a ServletInputStream object containing the body of the request
          Throws:
          java.lang.IllegalStateException - if the getReader() method has already been called for this request
          java.io.IOException - if an input or output exception occurred

          posted on 2009-10-19 13:48 閱讀(3066) 評論(0)  編輯  收藏 所屬分類: 學習java

          公告

          希望有一天

          我能用鼠標雙擊我的錢包

          然后選中一張100元

          按住“ctrl+c”

          接著不停的“ctrl+v”

          嘻嘻~~~笑醒~~~



          導航

          <2009年10月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          統計

          常用鏈接

          留言簿(6)

          隨筆分類(102)

          隨筆檔案(398)

          文章分類

          文章檔案(10)

          有趣網絡

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 辰溪县| 广宗县| 南雄市| 保德县| 蚌埠市| 北流市| 临朐县| 改则县| 商都县| 讷河市| 繁昌县| 仪征市| 呼伦贝尔市| 青川县| 宜城市| 鱼台县| 大田县| 河间市| 藁城市| 呼和浩特市| 桦川县| 库车县| 锦屏县| 华安县| 江华| 长宁县| 庆元县| 永川市| 大庆市| 恭城| 五莲县| 交城县| 蕲春县| 蒙自县| 启东市| 进贤县| 东至县| 长垣县| 上思县| 武鸣县| 安多县|