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 1DAF9D917 for ; Mon, 3 Sep 2012 13:13:10 +0000 (UTC) Received: (qmail 79437 invoked by uid 500); 3 Sep 2012 13:13:09 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 79409 invoked by uid 500); 3 Sep 2012 13:13:09 -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 79355 invoked by uid 99); 3 Sep 2012 13:13:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 13:13:09 +0000 Date: Tue, 4 Sep 2012 00:13:09 +1100 (NCT) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Message-ID: <1487210830.30309.1346677989702.JavaMail.jiratomcat@arcas> In-Reply-To: <922345706.28399.1346587507665.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (CXF-4493) If javax.jws.Oneway annotation is specified for a SOAP interface method a NPE occurs 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-4493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Freeman Fang resolved CXF-4493. ------------------------------- Resolution: Fixed Fix Version/s: 2.7.0 2.6.3 2.5.6 2.4.10 commit fix http://svn.apache.org/viewvc?rev=1380132&view=rev for trunk http://svn.apache.org/viewvc?rev=1380133&view=rev for 2.6.x branch http://svn.apache.org/viewvc?rev=1380134&view=rev for 2.5.x branch http://svn.apache.org/viewvc?rev=1380136&view=rev for 2.4.x branch > If javax.jws.Oneway annotation is specified for a SOAP interface method a NPE occurs > ------------------------------------------------------------------------------------ > > Key: CXF-4493 > URL: https://issues.apache.org/jira/browse/CXF-4493 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.6.2 > Reporter: Thorben Betten > Assignee: Freeman Fang > Priority: Minor > Fix For: 2.4.10, 2.5.6, 2.6.3, 2.7.0 > > Attachments: reseller.wsdl.txt > > > If javax.jws.Oneway annotation is specified for a SOAP interface method a NPE occurs. The passed OperationInfo "faults" member is left to null and thus causes a NPE by calling: > faultInfo.addExtensionAttribute(JAXWSAConstants.WSAW_ACTION_QNAME, faultAction.value()); > If javax.jws.Oneway annotation is removed the endpoint gets registered without problems. > java.lang.NullPointerException > at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildWSAActions(JaxWsServiceFactoryBean.java:578) > at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createOperation(JaxWsServiceFactoryBean.java:625) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createInterface(ReflectionServiceFactoryBean.java:955) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:465) > at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248) > at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205) > at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) > at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159) > at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207) > at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:442) > at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:329) > ... 42 more -- 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