Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7.3
-
None
-
Unknown
Description
I am trying to create a dispatch from WSDL-based service, specifying port name, jaxbContext and Mode = Payload.
I am getting NullPointerException:
Caused by: java.lang.NullPointerException at org.apache.cxf.jaxws.ServiceImpl.getJaxwsEndpoint(ServiceImpl.java:254) at org.apache.cxf.jaxws.ServiceImpl.createDispatch(ServiceImpl.java:625) at org.apache.cxf.jaxws.ServiceImpl.createDispatch(ServiceImpl.java:694) at org.apache.cxf.jaxws.ServiceImpl.createDispatch(ServiceImpl.java:686) at javax.xml.ws.Service.createDispatch(Service.java:488)
because of this line
if (portInfo != null && !portInfo.getAddress().equals(ei.getAddress())) {
postInfo is not null, but it's address is null in my case. I am going to set javax.xml.ws.service.endpoint.address request property to use the dispatch created.
P.S. I've checked on trunk, it has same code