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 9B606DBE7 for ; Mon, 3 Sep 2012 02:44:07 +0000 (UTC) Received: (qmail 71932 invoked by uid 500); 3 Sep 2012 02:44:07 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 71893 invoked by uid 500); 3 Sep 2012 02:44:07 -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 71884 invoked by uid 99); 3 Sep 2012 02:44:07 -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 02:44:07 +0000 Date: Mon, 3 Sep 2012 13:44:07 +1100 (NCT) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Message-ID: <544075362.29376.1346640247497.JavaMail.jiratomcat@arcas> In-Reply-To: <922345706.28399.1346587507665.JavaMail.jiratomcat@arcas> Subject: [jira] [Assigned] (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 reassigned CXF-4493: --------------------------------- Assignee: Freeman Fang > 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 > > 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