Can you check whether the trust store you specified is in fact in the location specified by the String "trustStore"?
and take a look at the solution provided in [1] [1] http://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty On Mon, Feb 16, 2015 at 5:11 PM, Pubudu Dodangoda <[email protected]> wrote: > I am trying to authenticate admin/admin user using > the org.wso2.carbon.authenticator.stub.AuthenticationAdminStub > > > I get the following exception > "org.apache.axis2.AxisFault: Connection has been shutdown: > javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: > java.security.InvalidAlgorithmParameterException: the trustAnchors > parameter must be non-empty" > > Following is a portion of the code, > > > String trustStore = > System.getProperty("user.dir") + File.separator + > "src" + > File.separator + "main" + File.separator + > "resources" + > File.separator + "wso2carbon.jks"; > System.setProperty("javax.net.ssl.trustStore", trustStore); > System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon"); > serviceEndPoint = " > https://localhost:9443/dashboardConfigs/"; > AuthenticationAdminStub authStub = new > AuthenticationAdminStub(serviceEndPoint); > authStub._getServiceClient().getOptions().setManageSession(true); > authenticate = authStub.login("admin", "admin","localhost"); > > > Can someone propose a solution? > Thanks > -- > Pubudu Dodangoda > BSc Engineering(Hon's) Undergraduate > Department of Computer Science Engineering > University of Moratuwa > 0716053681 / 0775192994 > -- *Farasath Ahamed* Software Engineering Intern WSO2 Inc.; http://wso2.com Mobile: +94 777 603 866 E-Mail: farasath <http://goog_1999535192>[email protected] Blog: http://thepseudocode.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
