Axis2 client code gives nullpointerexception. Here is the client code:
public class SecureServiceCGClient {
public static void main(String[] args) throws Exception {
ConfigurationContext ctx =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:\\IdeaProjects\\repo",
null);
SecureServiceStub stub = new
SecureServiceStub(ctx,"https://localhost:8080/axis2/services/SecureService");
ServiceClient sc = stub._getServiceClient();
sc.engageModule("rampart");
Options options = new Options();
options.setAction("urn:add");
options.setTo(new
EndpointReference("