Loading...

          java .net

          java.lang.IllegalStateException STREAMED

          request.getInputStream() 和 request.getReader()不能同時(shí)調(diào)用,否則會(huì)引發(fā)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) 評(píng)論(0)  編輯  收藏 所屬分類: 學(xué)習(xí)java

          公告

          希望有一天

          我能用鼠標(biāo)雙擊我的錢包

          然后選中一張100元

          按住“ctrl+c”

          接著不停的“ctrl+v”

          嘻嘻~~~笑醒~~~



          導(dǎo)航

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

          統(tǒng)計(jì)

          常用鏈接

          留言簿(6)

          隨筆分類(102)

          隨筆檔案(398)

          文章分類

          文章檔案(10)

          有趣網(wǎng)絡(luò)

          搜索

          積分與排名

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 孟州市| 太康县| 井冈山市| 崇阳县| 古丈县| 开阳县| 天柱县| 四平市| 长泰县| 江都市| 邵阳市| 石楼县| 上饶县| 江口县| 大同市| 涿鹿县| 东至县| 信阳市| 洛阳市| 利津县| 文安县| 二连浩特市| 龙陵县| 谢通门县| 贵定县| 汶川县| 新乡市| 吉木乃县| 麦盖提县| 含山县| 美姑县| 灵丘县| 沙洋县| 榆林市| 赤壁市| 蒲江县| 嘉兴市| 新龙县| 北碚区| 丹棱县| 马关县|