Link to home
Start Free TrialLog in
Avatar of techie2011
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="",SOAPMethodName=PostMessage,Content-Type=text/xml;charset=utf-8}
12/06 19:26:18 DEBUG n.common.gateway.HttpSubmitter  - Proxy not used.
12/06 19:26:20 ERROR n.common.gateway.HttpSubmitter  - Exception caught #1:  exception:
java.net.ProtocolException: Bad Set-Cookie header: NSC_ttqvbutbd_tqmbu_mcw=ffffffff728afa3445525d5f4f58455e445a4a42156b;path=/;httponly
No '=' found for token starting at position 76

      at HTTPClient.Cookie.parse(Cookie.java:243)

      at HTTPClient.CookieModule.handleCookie(CookieModule.java:454)

      at HTTPClient.CookieModule.responsePhase1Handler(CookieModule.java:403)

      at HTTPClient.HTTPResponse.handleResponse(HTTPResponse.java:724)

      at HTTPClient.HTTPResponse.getReasonLine(HTTPResponse.java:202)

      at net.verizon.common.gateway.HttpSubmitter.sendRequest(HttpSubmitter.java:281)

      at net.verizon.common.gateway.HttpSubmitter.send(HttpSubmitter.java:89)

      at net.verizon.common.gateway.ssp.request.SearchByMonRequest.send(SearchByMonRequest.java:30)

      at net.verizon.portal.helper.OrderStatusHelper.getAccountDetailsFromSSPForMON(OrderStatusHelper.java:976)

      at net.verizon.portlet.bean.OrderStatusLoginBean.submit(OrderStatusLoginBean.java:177)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at com.sun.el.parser.AstValue.invoke(AstValue.java:157)

      at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)

      at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)

      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:95)

      at javax.faces.component.UICommand.broadcast(UICommand.java:383)

      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)

      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)

      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)

      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)

      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)

      at com.bea.portlet.adapter.faces.FacesContentStubImpl.processAction(FacesContentStubImpl.java:246)

      at com.bea.netuix.servlets.controls.content.FacesContent.raiseFacesAction(FacesContent.java:257)

      at com.bea.netuix.servlets.controls.content.FacesContent.handlePostbackData(FacesContent.java:195)

      at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:180)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:324)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)

      at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)

      at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)

      at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)

      at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)

      at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)

      at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)

      at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)

      at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)

      at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)

      at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)

      at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:686)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)

      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

      at weblogicx.servlet.gzip.filter.GZIPFilter.doFilter(GZIPFilter.java:70)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

      at net.verizon.webapp.RequestFilter.doFilter(RequestFilter.java:172)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

      at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

      at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

      at com.bea.jsptools.servlet.PagedResultServiceFilter.doFilter(PagedResultServiceFilter.java:82)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)

      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

      at weblogic.security.service.SecurityManager.runAs(Unknown Source)

      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)

      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)

      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)

      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

And then Request #2
 12/06 19:26:20 INFO  n.common.gateway.HttpSubmitter  - Sending Request #2: (POST):

Again same request XML sent... And then the error coming now is...

 headerData = {SOAPAction="",SOAPMethodName=PostMessage,Content-Type=text/xml;charset=utf-8}
12/06 19:26:20 DEBUG n.common.gateway.HttpSubmitter  - Proxy not used.
12/06 19:26:38 ERROR n.common.gateway.HttpSubmitter  - Exception caught #2:  exception
java.net.SocketException: Connection reset

      at java.net.SocketInputStream.read(SocketInputStream.java:168)
.....etc.....

Please help !!
Avatar of sweetfa2
sweetfa2
Flag of Australia image

Not quite sure but a couple of things to look at:

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.
Avatar of techie2011
techie2011

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?
I tried setting  <wls:cookie-http-only>false</wls:cookie-http-only> 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\workspaces\myworkspace\ssproj\build\weboutput/WEB-INF/weblogic.xml of module SSWeb.war. The error is weblogic.descriptor.DescriptorException: 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?
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.Call> <BEA-000000> <Exception:
org.xml.sax.SAXException: Invalid element in xxxxxx ....
      at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
      at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
      at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
      at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
      Truncated. see log file for complete stacktrace
ASKER CERTIFIED SOLUTION
Avatar of techie2011
techie2011

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial