Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCADAD988 for ; Tue, 5 Mar 2013 16:47:12 +0000 (UTC) Received: (qmail 80767 invoked by uid 500); 5 Mar 2013 16:47:12 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 80729 invoked by uid 500); 5 Mar 2013 16:47:12 -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 80462 invoked by uid 99); 5 Mar 2013 16:47:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Mar 2013 16:47:11 +0000 Date: Tue, 5 Mar 2013 16:47:11 +0000 (UTC) From: "Alessio Soldano (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-4875) NPE resolving policy reference MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alessio Soldano updated CXF-4875: --------------------------------- Fix Version/s: 2.5.10 2.6.7 > NPE resolving policy reference > ------------------------------ > > Key: CXF-4875 > URL: https://issues.apache.org/jira/browse/CXF-4875 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Reporter: Alessio Soldano > Fix For: 2.8.0, 2.7.4, 2.6.7, 2.5.10 > > > This is related to the changes for CXF-4814 [1]. I get the following exception > {code} > java.lang.NullPointerException > at org.apache.cxf.ws.policy.WSPolicyFeature.resolveLocal(WSPolicyFeature.java:236) > at org.apache.cxf.ws.policy.WSPolicyFeature.resolveReference(WSPolicyFeature.java:225) > at org.apache.cxf.ws.policy.WSPolicyFeature.initializeEndpointPolicy(WSPolicyFeature.java:153) > at org.apache.cxf.ws.policy.WSPolicyFeature.initialize(WSPolicyFeature.java:118) > at org.apache.cxf.frontend.ServerFactoryBean.applyFeatures(ServerFactoryBean.java:248) > at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:192) > at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211) > at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:454) > at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334) > ... 30 more > {code} > when dealing with a spring descriptor as follows: > {code} > ... > > > > > > > > > > > > > > > > > ... > {code} > It seems like the code in WSPolicyFeature::resolveLocal(PolicyReference ref, final Bus bus, DescriptionInfo i) is trying to access the current DescriptionInfo, while that will only be set later in WSPolicyFeature::initialize(Server server, Bus bus) (using the ServiceModelPolicyUpdater::addPolicyAttachments and ServiceModelPolicyUpdater::addPolicy methods) > [1] http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/WSPolicyFeature.java?r1=1445307&r2=1445306&pathrev=1445307 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira