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 閱讀(3075) 評論(0)  編輯  收藏 所屬分類: 學習java

          公告

          希望有一天

          我能用鼠標雙擊我的錢包

          然后選中一張100元

          按住“ctrl+c”

          接著不停的“ctrl+v”

          嘻嘻~~~笑醒~~~



          導航

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

          統計

          常用鏈接

          留言簿(6)

          隨筆分類(102)

          隨筆檔案(398)

          文章分類

          文章檔案(10)

          有趣網絡

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 来宾市| 高邮市| 白河县| 伊金霍洛旗| 孝感市| 德令哈市| 遂宁市| 尼勒克县| 吴江市| 徐州市| 项城市| 南宁市| 施秉县| 昌黎县| 广灵县| 安徽省| 沁水县| 波密县| 青龙| 长寿区| 施甸县| 宁远县| 隆安县| 宁城县| 鹿泉市| 扶绥县| 化德县| 衡山县| 襄垣县| 大英县| 邢台市| 卢氏县| 乐都县| 蒙城县| 邵阳县| 襄樊市| 新邵县| 苍梧县| 伽师县| 黎城县| 健康|