cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessio Soldano (JIRA)" <>
Subject [jira] [Created] (CXF-4875) NPE resolving policy reference
Date Tue, 05 Mar 2013 16:43:11 GMT
Alessio Soldano created CXF-4875:

             Summary: NPE resolving policy reference
                 Key: CXF-4875
             Project: CXF
          Issue Type: Bug
          Components: WS-* Components
            Reporter: Alessio Soldano

This is related to the changes for CXF-4814 [1]. I get the following exception
	at org.apache.cxf.frontend.ServerFactoryBean.applyFeatures(
	at org.apache.cxf.frontend.ServerFactoryBean.create(
	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(
	at org.apache.cxf.jaxws.EndpointImpl.getServer(
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(
	... 30 more

when dealing with a spring descriptor as follows:

<wsp:Policy wsu:Id="RM" xmlns:wsp="" xmlns:wsu="">
    <wsam:Addressing xmlns:wsam="">
    <wsrmp:RMAssertion xmlns:wsrmp="">
      <wsrmp:BaseRetransmissionInterval Milliseconds="10000"/>
  <jaxws:endpoint id='TestService' address='http://@jboss.bind.address@:8080/jaxws-cxf-wsrm-basic-rpc'
        <wsp:PolicyReference URI="#RM" xmlns:wsp=""/>

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)


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:

View raw message