[jbossws-issues] [JBoss JIRA] (JBWS-3395) Avoid CXFInstanceProvider thowing NPE when the endpoint ServiceBean is not available

Robert Stupp (Issue Comment Edited) (JIRA) jira-events at lists.jboss.org
Tue Dec 13 11:53:09 EST 2011


    [ https://issues.jboss.org/browse/JBWS-3395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650538#comment-12650538 ] 

Robert Stupp edited comment on JBWS-3395 at 12/13/11 11:52 AM:
---------------------------------------------------------------

It would be nice, if the jbossws-cxf.xml descriptor would not require the user to mention the webservice because both the implementor and address are already specified in web.xml (as a "servlet"/"servlet-mapping"), webservices.xml and mapping.xml. That information is used by JBossWS, if jbossws-cxf.xml is not present. (related to JBWS-3396)
                
      was (Author: snazy0):
    It would be nice, if the jbossws-cxf.xml descriptor would not require the user to mention the webservice because both the implementor and address are already specified in web.xml (as a "servlet"/"servlet-mapping"), webservices.xml and mapping.xml. That information is used by JBossWS, if jbossws-cxf.xml is not present.
                  
> Avoid CXFInstanceProvider thowing NPE when the endpoint ServiceBean is not available
> ------------------------------------------------------------------------------------
>
>                 Key: JBWS-3395
>                 URL: https://issues.jboss.org/browse/JBWS-3395
>             Project: JBoss Web Services
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>    Affects Versions: jbossws-cxf-4.0.0.CR1
>            Reporter: Alessio Soldano
>             Fix For: jbossws-cxf-4.0.1
>
>
> CXFInstanceProvider throws NPE at line 57 when getServiceBean returns null. That's possible when the user does not provide any endpoint in the jbossws-cxf descriptor. While that's a user mistake, the exception here hides any meaningful message that might be written later on that. So either improve the error here or figure out if it's possible to have the injection simply be skipped here (probably still not a good idea)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list