techie2011
asked on
ProtocolException: Bad Set-Cookie header
I am getting the below error after sending the request xml in weblogic portal 10.3,
Request XML is inside <soapenv> tags and I am not pasting the request xml, but directly the error I am getting after that....
headerData = {SOAPAction="",SOAPMethodN ame=PostMe ssage,Cont ent-Type=t ext/xml;ch arset=utf- 8}
12/06 19:26:18 DEBUG n.common.gateway.HttpSubmi tter - Proxy not used.
12/06 19:26:20 ERROR n.common.gateway.HttpSubmi tter - Exception caught #1: exception:
java.net.ProtocolException : Bad Set-Cookie header: NSC_ttqvbutbd_tqmbu_mcw=ff ffffff728a fa3445525d 5f4f58455e 445a4a4215 6b;path=/; httponly
No '=' found for token starting at position 76
at HTTPClient.Cookie.parse(Co okie.java: 243)
at HTTPClient.CookieModule.ha ndleCookie (CookieMod ule.java:4 54)
at HTTPClient.CookieModule.re sponsePhas e1Handler( CookieModu le.java:40 3)
at HTTPClient.HTTPResponse.ha ndleRespon se(HTTPRes ponse.java :724)
at HTTPClient.HTTPResponse.ge tReasonLin e(HTTPResp onse.java: 202)
at net.verizon.common.gateway .HttpSubmi tter.sendR equest(Htt pSubmitter .java:281)
at net.verizon.common.gateway .HttpSubmi tter.send( HttpSubmit ter.java:8 9)
at net.verizon.common.gateway .ssp.reque st.SearchB yMonReques t.send(Sea rchByMonRe quest.java :30)
at net.verizon.portal.helper. OrderStatu sHelper.ge tAccountDe tailsFromS SPForMON(O rderStatus Helper.jav a:976)
at net.verizon.portlet.bean.O rderStatus LoginBean. submit(Ord erStatusLo ginBean.ja va:177)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:59 7)
at com.sun.el.parser.AstValue .invoke(As tValue.jav a:157)
at com.sun.el.MethodExpressio nImpl.invo ke(MethodE xpressionI mpl.java:2 83)
at javax.faces.component.Meth odBindingM ethodExpre ssionAdapt er.invoke( MethodBind ingMethodE xpressionA dapter.jav a:77)
at com.sun.faces.application. ActionList enerImpl.p rocessActi on(ActionL istenerImp l.java:95)
at javax.faces.component.UICo mmand.broa dcast(UICo mmand.java :383)
at javax.faces.component.UIVi ewRoot.bro adcastEven ts(UIViewR oot.java:4 48)
at javax.faces.component.UIVi ewRoot.pro cessApplic ation(UIVi ewRoot.jav a:752)
at com.sun.faces.lifecycle.In vokeApplic ationPhase .execute(I nvokeAppli cationPhas e.java:97)
at com.sun.faces.lifecycle.Li fecycleImp l.phase(Li fecycleImp l.java:248 )
at com.sun.faces.lifecycle.Li fecycleImp l.execute( LifecycleI mpl.java:1 17)
at com.bea.portlet.adapter.fa ces.FacesC ontentStub Impl.proce ssAction(F acesConten tStubImpl. java:246)
at com.bea.netuix.servlets.co ntrols.con tent.Faces Content.ra iseFacesAc tion(Faces Content.ja va:257)
at com.bea.netuix.servlets.co ntrols.con tent.Faces Content.ha ndlePostba ckData(Fac esContent. java:195)
at com.bea.netuix.nf.ControlL ifecycle$2 .visit(Con trolLifecy cle.java:1 80)
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:324 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walkRecurs ive(Contro lTreeWalke r.java:334 )
at com.bea.netuix.nf.ControlT reeWalker. walk(Contr olTreeWalk er.java:13 0)
at com.bea.netuix.nf.Lifecycl e.processL ifecycles( Lifecycle. java:395)
at com.bea.netuix.nf.Lifecycl e.processL ifecycles( Lifecycle. java:361)
at com.bea.netuix.nf.Lifecycl e.processL ifecycles( Lifecycle. java:352)
at com.bea.netuix.nf.Lifecycl e.runInbou nd(Lifecyc le.java:18 4)
at com.bea.netuix.nf.Lifecycl e.run(Life cycle.java :159)
at com.bea.netuix.servlets.ma nager.UISe rvlet.runL ifecycle(U IServlet.j ava:388)
at com.bea.netuix.servlets.ma nager.UISe rvlet.doPo st(UIServl et.java:25 8)
at com.bea.netuix.servlets.ma nager.UISe rvlet.serv ice(UIServ let.java:1 99)
at com.bea.netuix.servlets.ma nager.Sing leFileServ let.servic e(SingleFi leServlet. java:251)
at com.bea.netuix.servlets.ma nager.Port alServlet. service(Po rtalServle t.java:686 )
at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 820)
at weblogic.servlet.internal. StubSecuri tyHelper$S ervletServ iceAction. run(StubSe curityHelp er.java:22 7)
at weblogic.servlet.internal. StubSecuri tyHelper.i nvokeServl et(StubSec urityHelpe r.java:125 )
at weblogic.servlet.internal. ServletStu bImpl.exec ute(Servle tStubImpl. java:292)
at weblogic.servlet.internal. TailFilter .doFilter( TailFilter .java:26)
at weblogic.servlet.internal. FilterChai nImpl.doFi lter(Filte rChainImpl .java:42)
at weblogicx.servlet.gzip.fil ter.GZIPFi lter.doFil ter(GZIPFi lter.java: 70)
at weblogic.servlet.internal. FilterChai nImpl.doFi lter(Filte rChainImpl .java:42)
at net.verizon.webapp.Request Filter.doF ilter(Requ estFilter. java:172)
at weblogic.servlet.internal. FilterChai nImpl.doFi lter(Filte rChainImpl .java:42)
at com.bea.portal.tools.servl et.http.Ht tpContextF ilter.doFi lter(HttpC ontextFilt er.java:60 )
at weblogic.servlet.internal. FilterChai nImpl.doFi lter(Filte rChainImpl .java:42)
at com.bea.p13n.servlets.Port alServletF ilter.doFi lter(Porta lServletFi lter.java: 336)
at weblogic.servlet.internal. FilterChai nImpl.doFi lter(Filte rChainImpl .java:42)
at com.bea.jsptools.servlet.P agedResult ServiceFil ter.doFilt er(PagedRe sultServic eFilter.ja va:82)
at weblogic.servlet.internal. FilterChai nImpl.doFi lter(Filte rChainImpl .java:42)
at weblogic.servlet.internal. RequestEve ntsFilter. doFilter(R equestEven tsFilter.j ava:27)
at weblogic.servlet.internal. FilterChai nImpl.doFi lter(Filte rChainImpl .java:42)
at weblogic.servlet.internal. WebAppServ letContext $ServletIn vocationAc tion.run(W ebAppServl etContext. java:3502)
at weblogic.security.acl.inte rnal.Authe nticatedSu bject.doAs (Authentic atedSubjec t.java:321 )
at weblogic.security.service. SecurityMa nager.runA s(Unknown Source)
at weblogic.servlet.internal. WebAppServ letContext .securedEx ecute(WebA ppServletC ontext.jav a:2186)
at weblogic.servlet.internal. WebAppServ letContext .execute(W ebAppServl etContext. java:2092)
at weblogic.servlet.internal. ServletReq uestImpl.r un(Servlet RequestImp l.java:140 6)
at weblogic.work.ExecuteThrea d.execute( ExecuteThr ead.java:2 01)
at weblogic.work.ExecuteThrea d.run(Exec uteThread. java:173)
And then Request #2
12/06 19:26:20 INFO n.common.gateway.HttpSubmi tter - Sending Request #2: (POST):
Again same request XML sent... And then the error coming now is...
headerData = {SOAPAction="",SOAPMethodN ame=PostMe ssage,Cont ent-Type=t ext/xml;ch arset=utf- 8}
12/06 19:26:20 DEBUG n.common.gateway.HttpSubmi tter - Proxy not used.
12/06 19:26:38 ERROR n.common.gateway.HttpSubmi tter - Exception caught #2: exception
java.net.SocketException: Connection reset
at java.net.SocketInputStream .read(Sock etInputStr eam.java:1 68)
.....etc.....
Please help !!
Request XML is inside <soapenv> tags and I am not pasting the request xml, but directly the error I am getting after that....
headerData = {SOAPAction="",SOAPMethodN
12/06 19:26:18 DEBUG n.common.gateway.HttpSubmi
12/06 19:26:20 ERROR n.common.gateway.HttpSubmi
java.net.ProtocolException
No '=' found for token starting at position 76
at HTTPClient.Cookie.parse(Co
at HTTPClient.CookieModule.ha
at HTTPClient.CookieModule.re
at HTTPClient.HTTPResponse.ha
at HTTPClient.HTTPResponse.ge
at net.verizon.common.gateway
at net.verizon.common.gateway
at net.verizon.common.gateway
at net.verizon.portal.helper.
at net.verizon.portlet.bean.O
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.sun.el.parser.AstValue
at com.sun.el.MethodExpressio
at javax.faces.component.Meth
at com.sun.faces.application.
at javax.faces.component.UICo
at javax.faces.component.UIVi
at javax.faces.component.UIVi
at com.sun.faces.lifecycle.In
at com.sun.faces.lifecycle.Li
at com.sun.faces.lifecycle.Li
at com.bea.portlet.adapter.fa
at com.bea.netuix.servlets.co
at com.bea.netuix.servlets.co
at com.bea.netuix.nf.ControlL
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.ControlT
at com.bea.netuix.nf.Lifecycl
at com.bea.netuix.nf.Lifecycl
at com.bea.netuix.nf.Lifecycl
at com.bea.netuix.nf.Lifecycl
at com.bea.netuix.nf.Lifecycl
at com.bea.netuix.servlets.ma
at com.bea.netuix.servlets.ma
at com.bea.netuix.servlets.ma
at com.bea.netuix.servlets.ma
at com.bea.netuix.servlets.ma
at javax.servlet.http.HttpSer
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogicx.servlet.gzip.fil
at weblogic.servlet.internal.
at net.verizon.webapp.Request
at weblogic.servlet.internal.
at com.bea.portal.tools.servl
at weblogic.servlet.internal.
at com.bea.p13n.servlets.Port
at weblogic.servlet.internal.
at com.bea.jsptools.servlet.P
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.security.acl.inte
at weblogic.security.service.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.servlet.internal.
at weblogic.work.ExecuteThrea
at weblogic.work.ExecuteThrea
And then Request #2
12/06 19:26:20 INFO n.common.gateway.HttpSubmi
Again same request XML sent... And then the error coming now is...
headerData = {SOAPAction="",SOAPMethodN
12/06 19:26:20 DEBUG n.common.gateway.HttpSubmi
12/06 19:26:38 ERROR n.common.gateway.HttpSubmi
java.net.SocketException: Connection reset
at java.net.SocketInputStream
.....etc.....
Please help !!
ASKER
Am not sure. But I tried to use Proxy with the following setting in IE under Tools-> Internet Options->Connections->LAN settings, Enabled "Use a Proxy Server for your LAN"
Entered ... Address: localhost , Port: 7001
This is where my admin server is running.
Still same issue occuring :(
I read this,
http://osdir.com/ml/java.grinder.user/2006-07/msg00048.html
And also, http://old.nabble.com/java.net.ProtocolException%3A-Bad-Set-Cookie-header-td31740539.html
Will these work for my case?
Entered ... Address: localhost , Port: 7001
This is where my admin server is running.
Still same issue occuring :(
I read this,
http://osdir.com/ml/java.grinder.user/2006-07/msg00048.html
And also, http://old.nabble.com/java.net.ProtocolException%3A-Bad-Set-Cookie-header-td31740539.html
Will these work for my case?
ASKER
I tried setting <wls:cookie-http-only>fals e</wls:coo kie-http-o nly> in weblogic.xml
But while publishing its saying,
<Dec 7, 2011 4:42:02 PM IST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\bea\user_projects\works paces\mywo rkspace\ss proj\build \weboutput /WEB-INF/w eblogic.xm l of module SSWeb.war. The error is weblogic.descriptor.Descri ptorExcept ion: VALIDATION PROBLEMS WERE FOUND
problem: cvc-complex-type.2.4b: Element not allowed: cookie-http-only@http://www.bea.com/ns/weblogic/weblogic-web-app in element session-descriptor@http://www.bea.com/ns/weblogic/weblogic-web-app:<null>
Any solutions?
But while publishing its saying,
<Dec 7, 2011 4:42:02 PM IST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\bea\user_projects\works
problem: cvc-complex-type.2.4b: Element not allowed: cookie-http-only@http://www.bea.com/ns/weblogic/weblogic-web-app in element session-descriptor@http://www.bea.com/ns/weblogic/weblogic-web-app:<null>
Any solutions?
ASKER
Ok nevermind about the above since I am getting response from other backend systems.
But can you please help me with the below error that I am getting,
<Dec 8, 2011 5:20:27 PM IST> <Error> <org.apache.axis.client.Ca ll> <BEA-000000> <Exception:
org.xml.sax.SAXException: Invalid element in xxxxxx ....
at org.apache.axis.encoding.s er.BeanDes erializer. onStartChi ld(BeanDes erializer. java:258)
at org.apache.axis.encoding.D eserializa tionContex t.startEle ment(Deser ialization Context.ja va:1035)
at org.apache.axis.message.SA X2EventRec order.repl ay(SAX2Eve ntRecorder .java:165)
at org.apache.axis.message.Me ssageEleme nt.publish ToHandler( MessageEle ment.java: 1141)
at org.apache.axis.message.RP CElement.d eserialize (RPCElemen t.java:236 )
Truncated. see log file for complete stacktrace
But can you please help me with the below error that I am getting,
<Dec 8, 2011 5:20:27 PM IST> <Error> <org.apache.axis.client.Ca
org.xml.sax.SAXException: Invalid element in xxxxxx ....
at org.apache.axis.encoding.s
at org.apache.axis.encoding.D
at org.apache.axis.message.SA
at org.apache.axis.message.Me
at org.apache.axis.message.RP
Truncated. see log file for complete stacktrace
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
1. is a proxy defined and shouldn't be, or visa versa.
2. do you have a corrupted cookie on your machine. Maybe clean out cookies.