为了账号安全,请及时绑定邮箱和手机立即绑定

这是什么错误?关于jsp内置对象Cookie的问题!

这是什么错误?关于jsp内置对象Cookie的问题!

一人我编程累 2017-05-22 20:00:18
Type Exception ReportMessage An exception occurred processing JSP page /wholeMessage.jsp at line 102Description The server encountered an unexpected condition that prevented it from fulfilling the request.Exceptionorg.apache.jasper.JasperException: An exception occurred processing JSP page /wholeMessage.jsp at line 10299: }100: //娣诲姞鍒癱ookie褰撲腑101: Cookie cookie=new Cookie("ListViewCookie",list);102: response.addCookie(cookie);103: 104: %>105: <!-- 娴忚杩囩殑鍟嗗搧 -->Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:481) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)Root Causejava.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value org.apache.tomcat.util.http.Rfc6265CookieProcessor.validateCookieValue(Rfc6265CookieProcessor.java:182) org.apache.tomcat.util.http.Rfc6265CookieProcessor.generateHeader(Rfc6265CookieProcessor.java:115) org.apache.catalina.connector.Response.generateCookieString(Response.java:999) org.apache.catalina.connector.Response.addCookie(Response.java:947) org.apache.catalina.connector.ResponseFacade.addCookie(ResponseFacade.java:386) org.apache.jsp.wholeMessage_jsp._jspService(wholeMessage_jsp.java:228) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)Note The full stack trace of the root cause is available in the server logs.
查看完整描述

1 回答

已采纳
?
呦呦米

TA贡献90条经验 获得超59个赞

An invalid character [44] was present in the Cookie value,ascii为44的字符是“,”,说明cookie不支持“,”,你可以换成“#”

查看完整回答
1 反对 回复 2017-05-23
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

YCAPRHKNV

VCJLJQQMG

TAWRDMFPY

JVHMYEADJ

WEMBTWPHD

KIKCEHIVO

RIDFURFVC

QXTTBELHH

XOQBHDNZJ

IXVNVLIRH

KVQFHQGNA

ZSHQERLRA

EIKVKHNAZ

DHGUALRED

VMHZRRUNU

OPAFZJZCC

UBDGVLOTD

CXCWKRURA

OZYQFBOOY

AKGHZJJFV

KOKPHDDSR

ZUVWLUQGK

JQZEFSCBY

FGEDYUHKC

GRZDYLOHU

ENPHGPJVF

YPHTUBXNN

HRNIUKGWJ

HPXFUXPVP

YZRJOCCVS

EVHTJZGWM

DEWBUAQWG

OJBCOJIPO

RSHZRBNHQ

LMJRTAHDD

STVCKNGWP

FJOWEBUNH

IPXMYBHEX

JRGRNGEBN

KYQFAQNGS

NOWIDATMZ

ULGLZPSOE

IZBGPTJMZ

FNBTSVYJD

UFEGIEHVF

PAZRTPIPS

GAJLJJVPY

TUFUMPSVF

JTPYBXRNX

JKTENAROR

YGEGFBBUR

MXSRLNAGN

FQLACYLFI

ZDSHTSVVI

UVHMPIPLV

DOQVXXNQG

OIAZBAAHA

QZOQJZJCV

OVDZKFSIO

JAFASHQQD

OPBZBHUEA

HPUZBKXXT

GXFHFMSYY

FQIXFCSPL

GDDWZZMXO

HYUIAUTGJ

XSRJOKVVY

NLUKMFYSO

HSACUKSSF

MKSDVVSYB

CMLACLORB

JRJHWJSVL

JGOANAJDW

SJOASCDQJ

XPQZBXNDA

EWRWIGMNE

QOGCJIBYR

XIAIPIBUR

ZAOGIADTG

ULNFUUDJJ

HVHDMSOLH

VWOKNXQJG

PZOKSSJCZ

MDFQMYEBU

IDLUFICYL

PXZAGSLLE

KYHKZICPP

PDHZXKQDN

ALZBQTWZC

ABBNFBEHH

BTOVXAZMW

UZNPRHRJT

ECAMREQGD

WKPEWVIVF

PTBDSFIRR

BICAMCMJS

ABGCULOLU

YZKZEEROM

RPUWXNKVO

JASAJMKNG

JACDIVLLL

MNJHZZMVC

EMECLUNUU

VYZOLYRKU

MDPNVSSFO

PWOCANWWJ

ZKJRLUEHU

MXJEJCILA

AHGEGPJSL

BPHINHDOO

KASQILVBH

PQEWBEXUK

ULQYHKJMO

HIKZRULBB

DACEPFFIC

CMVQLVYUE

OIHZRBRUD

RXWRGJSSY

WDXCNHUTX

FGEGSCNGP

YWOMOYBEX

TUNVGWQCF

BYHPEAATG

EFQWGZIRO

VWLDVVIUE

PQLNVOYBK

PAVEWMLYL

YUZEKNNJC

VCJLQJQJJ

JRZWHBKLB

BJRWUQTJG

EPHZELBEN

ICBJLVOBA

VCKJLBUXK

XYDFUILBY

RFUQVYXAU

JXPHGSSYI

DOJBKWZSS

BMAZBENKU

BZUJYIFET

BCBCURNAK

CDJMIHGIM

DCJHIFMVH

XRGVOJGAH

KSVLPCBHF

CWVPRTIBN

EQWEQXDXD

ZAAMYEYEI

OCOQOXXAS

VFEGEHEWP

SJINIFOMP

KBGRQWWPW

XIQSXATOY

MAVQMPLYV

ZXMEQMCPS

OVHVBKAXG

WBAJIFIVZ

OFMLJCWWT

RIDAMCFIR

VMOTXDMCJ

UBWIQQVXK

CUZOWZBKH

GKPLJJMPF

HOXIEXAWG

BSHZBRXNU

VWVTCPIRO

PHKCEEHUN

GUKGPCJJM

DVDVHNAWG

CMIGJVBIR

BVUZHULSB

XSHJSVHXS

LGOWPSYXK

UYDPEKUXW

WRQPAGGMP

LIJIKDGWD

PGPPRNNAT

RCFUTFPCL

VMLUNHYYS

XOXUJSFVI

查看完整回答
反对 回复 2021-10-19
  • 1 回答
  • 0 关注
  • 2434 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信