Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 93867 invoked from network); 30 Jun 2008 11:36:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jun 2008 11:36:38 -0000 Received: (qmail 34717 invoked by uid 500); 30 Jun 2008 11:36:38 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 34441 invoked by uid 500); 30 Jun 2008 11:36:37 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 34430 invoked by uid 99); 30 Jun 2008 11:36:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2008 04:36:37 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jun 2008 11:35:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 22A66234C14C for ; Mon, 30 Jun 2008 04:35:45 -0700 (PDT) Message-ID: <150315187.1214825745140.JavaMail.jira@brutus> Date: Mon, 30 Jun 2008 04:35:45 -0700 (PDT) From: "Matthias Weber (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-3876) first SSL POST request to AxisServlet with transportsession scope leads to NPE in DispatchPhase.fillContextsFromSessionContext In-Reply-To: <633079669.1214576685277.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthias Weber updated AXIS2-3876: ---------------------------------- Attachment: AxisServlet.patch > first SSL POST request to AxisServlet with transportsession scope leads to NPE in DispatchPhase.fillContextsFromSessionContext > ------------------------------------------------------------------------------------------------------------------------------ > > Key: AXIS2-3876 > URL: https://issues.apache.org/jira/browse/AXIS2-3876 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: transports > Affects Versions: 1.4 > Environment: WLS8.1, AIX > Reporter: Matthias Weber > Priority: Critical > Attachments: AxisServlet.patch > > > We use Axis 1.4 in an WLS 8.1 environment. There are no TransportReceivers registered in axis2.xml. > After server start or redeploy it is impossible to get an answer to a POST request via SSL. We see following exception: > @|27.06.2008 11:01:53|ERROR|org.apache.axis2.transport.http.AxisServlet| > java.lang.NullPointerException > at org.apache.axis2.engine.DispatchPhase.fillContextsFromSessionContext(DispatchPhase.java:229) > at org.apache.axis2.engine.DispatchPhase.loadContexts(DispatchPhase.java:158) > at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:97) > at org.apache.axis2.engine.Phase.invoke(Phase.java:333) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) > at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) > at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:854) > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077) > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465) > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:349) > at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047) > at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) > at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) > at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902) > at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773) > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224) > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183) > After the first sent GET there is no problem anymore. > The NPE is thrown here: > TransportListener listener = msgContext.getTransportIn().getReceiver(); > Seems that msgContext.getTransportIn() returns null. > Maybe this is because AxisServlet only resisters itself as TransportListener for HTTP scheme. From AxisServlet.init(ServletConfig config): > TransportInDescription transportInDescription = new TransportInDescription(Constants.TRANSPORT_HTTP); > transportInDescription.setReceiver(this); > listenerManager.addListener(transportInDescription, true); > Would it be possible to register AxisServlet here also for HTTPS? > A GET request never fails because doGet() does an agent.initTransportListener(request); but doPost() never does. > I know, there was already an Jira issue AXIS2-3141 which addresses the same thing. But the attached patch seems to be only a workaround. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org