[
http://issues.apache.org/jira/browse/AXIS2-619?page=comments#action_12376452 ]
Thomas Van de Velde commented on AXIS2-619:
-------------------------------------------
Deepal,
I forgot to mention that I am setting the NPE in a module
("dynamicAdressingPhase").
<phaseOrder type="outflow">
<!-- user can add his own phases to this area -->
<phase name="OperationOutPhase"/>
<phase name="dynamicAdressingPhase"/>
<!--system predefined phase-->
<!--these phase will run irrespective of the service-->
<phase name="PolicyDetermination"/>
<phase name="MessageOut"/>
</phaseOrder>
public void invoke(MessageContext msgContext) throws AxisFault {
msgContext.setTo(EPR);
}
> nullpointer when EPR not defined in client
> ------------------------------------------
>
> Key: AXIS2-619
> URL: http://issues.apache.org/jira/browse/AXIS2-619
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: core
> Versions: 0.95
> Reporter: Thomas Van de Velde
>
> You are expected to set the TransportOutDescription when the EPR is not
> defined in the client. The AxisEngine will now throw a nullpointer.
> Client:
> Options options = new Options();
>
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> options.setTranportOut(new TransportOutDescription(new
> QName(
> Constants.TRANSPORT_HTTP)));
> //options.setTo(EPR);
> Problem Area:
> AxisEngine
> TransportOutDescription transportOut = msgContext.getTransportOut();
> TransportSender sender = transportOut.getSender();
> sender is null.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira