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 59C60200CC2 for ; Wed, 5 Jul 2017 11:53:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 585C7162D46; Wed, 5 Jul 2017 09:53:04 +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 9F84B162D44 for ; Wed, 5 Jul 2017 11:53:03 +0200 (CEST) Received: (qmail 15155 invoked by uid 500); 5 Jul 2017 09:53:02 -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 15144 invoked by uid 99); 5 Jul 2017 09:53:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2017 09:53:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3C7C4CA7CD for ; Wed, 5 Jul 2017 09:53:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8OnMeVkAD_HI for ; Wed, 5 Jul 2017 09:53:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 58FF35F6C4 for ; Wed, 5 Jul 2017 09:53: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 E95F0E070C for ; Wed, 5 Jul 2017 09:53: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 A48552461A for ; Wed, 5 Jul 2017 09:53:00 +0000 (UTC) Date: Wed, 5 Jul 2017 09:53:00 +0000 (UTC) From: "Dennis Kieselhorst (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (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: Wed, 05 Jul 2017 09:53:04 -0000 [ https://issues.apache.org/jira/browse/CXF-7412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dennis Kieselhorst resolved CXF-7412. ------------------------------------- Resolution: Fixed > 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 > Assignee: Dennis Kieselhorst > Fix For: 3.0.15, 3.1.13, 3.2.0 > > 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)