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)

          有趣網絡

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 黑水县| 唐山市| 彭山县| 青河县| 吉隆县| 延边| 甘孜| 新巴尔虎左旗| 铅山县| 建昌县| 绩溪县| 天长市| 东阳市| 濉溪县| 依安县| 伊宁市| 西安市| 上高县| 滕州市| 界首市| 肥东县| 扎兰屯市| 巍山| 罗田县| 台中县| 梁山县| 务川| 永定县| 那曲县| 洮南市| 稻城县| 林芝县| 澎湖县| 乌兰浩特市| 镇康县| 司法| 车险| 满城县| 怀仁县| 鲁山县| 安达市|