Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 693C8200CBA for ; Mon, 3 Jul 2017 16:31:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 670DE160BEC; Mon, 3 Jul 2017 14:31:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AC126160BE4 for ; Mon, 3 Jul 2017 16:31:05 +0200 (CEST) Received: (qmail 4888 invoked by uid 500); 3 Jul 2017 14:31:04 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 4831 invoked by uid 99); 3 Jul 2017 14:31:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2017 14:31:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6B448188AA1 for ; Mon, 3 Jul 2017 14:31:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id U30GCl4HO7gB for ; Mon, 3 Jul 2017 14:31:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3922E5FDAD for ; Mon, 3 Jul 2017 14:31:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6D5CBE0A75 for ; Mon, 3 Jul 2017 14:31:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 289C3245F9 for ; Mon, 3 Jul 2017 14:31:00 +0000 (UTC) Date: Mon, 3 Jul 2017 14:31:00 +0000 (UTC) From: "Ramesh (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-7412) PhaseInterceptorChain has thrown exception, unwinding now java.lang.NullPointerException: null at org.apache.cxf.binding.soap.saaj.SAAJUtils.getHeader(SAAJUtils.java:43) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 03 Jul 2017 14:31:06 -0000 [ https://issues.apache.org/jira/browse/CXF-7412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ramesh updated CXF-7412: ------------------------ Attachment: TestProj.zip Hi, attached is my test maven program. Please run the SampleWsApplication class as springboot app and request the url as http://localhost:9080/MyWeb/services/Hello. you will get java.lang.NullPointerException: null at org.apache.cxf.binding.soap.saaj.SAAJUtils.getHeader(SAAJUtils.java:43) ~[cxf-rt-bindings-soap-3.1.10.jar:3.1.10] at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.createProtocolMessageContext(SOAPHandlerInterceptor.java:261) ~[cxf-rt-frontend-jaxws-3.1.10.jar:3.1.10] at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessageInternal(SOAPHandlerInterceptor.java:161) ~[cxf-rt-frontend-jaxws-3.1.10.jar:3.1.10] at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:124) ~[cxf-rt-frontend-jaxws-3.1.10.jar:3.1.10] at org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:71) ~[cxf-rt-frontend-jaxws-3.1.10.jar:3.1.10] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) ~[cxf-core-3.1.10.jar:3.1.10] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-core-3.1.10.jar:3.1.10] > PhaseInterceptorChain has thrown exception, unwinding now java.lang.NullPointerException: null at org.apache.cxf.binding.soap.saaj.SAAJUtils.getHeader(SAAJUtils.java:43) > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CXF-7412 > URL: https://issues.apache.org/jira/browse/CXF-7412 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime, Soap Binding > Affects Versions: 3.1.10 > Reporter: Ramesh > Attachments: TestProj.zip > > > > server.port=9080 > cxf.path=/MyWeb/services > @Bean > public Endpoint endPoint() { > EndpointImpl endpoint = new EndpointImpl(endPointSpringbus, myserviceImpl); > endpoint.publish("/Hello"); > List handlerChain = endpoint.getBinding().getHandlerChain(); > handlerChain.add(new SimpleSOAPLoggingHandler()); > endpoint.getBinding().setHandlerChain(handlerChain); > return endpoint; > } > a) if I request the url like "http://localhost:9080/MyWeb/services/Hello" it gives exception **Interceptor for {http://example.com/}HelloPortImplService has thrown exception, unwinding now java.lang.NullPointerException: null at org.apache.cxf.binding.soap.saaj.SAAJUtils.getHeader(SAAJUtils.java:43) ~[cxf-rt-bindings-soap-3.1.10.jar:3.1.10]** > b) if I request the url like "http://localhost:9080/MyWeb/services/Hello?wsdl" i am getting as expected > c) if i remove my code from endpoint > List handlerChain = endpoint.getBinding().getHandlerChain(); > handlerChain.add(new SimpleSOAPLoggingHandler()); > endpoint.getBinding().setHandlerChain(handlerChain); > and hit the url like "http://localhost:9080/MyWeb/services/Hello" then it gives > "No binding operation info while invoking unknown method with params unknown." exception > Please let me know why i am getting exception from point a. > what i am doing wrong with handler... I don't want any fault nullpointer exception should be thrown instead at least it should say "No binding operation info while invoking unknown method with params unknown." Something wrong with handler chain.. when i add handler it gives exception and when i remove handler it shows different exception. > Here i am using handler for logging the request and response messages at single place. -- This message was sent by Atlassian JIRA (v6.4.14#64029)