{"action":"created","issue":{"url":"https://api.github.com/repos/khosla-labs/aadhaar-bridge/issues/18","repository_url":"https://api.github.com/repos/khosla-labs/aadhaar-bridge","labels_url":"https://api.github.com/repos/khosla-labs/aadhaar-bridge/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/khosla-labs/aadhaar-bridge/issues/18/comments","events_url":"https://api.github.com/repos/khosla-labs/aadhaar-bridge/issues/18/events","html_url":"https://github.com/khosla-labs/aadhaar-bridge/issues/18","id":147314433,"number":18,"title":"java.io.FileNotFoundException while accessing x09cert.location application.properties value in XMLSigner.class","user":{"login":"chainsingh","id":5456872,"avatar_url":"https://avatars.githubusercontent.com/u/5456872?v=3","gravatar_id":"","url":"https://api.github.com/users/chainsingh","html_url":"https://github.com/chainsingh","followers_url":"https://api.github.com/users/chainsingh/followers","following_url":"https://api.github.com/users/chainsingh/following{/other_user}","gists_url":"https://api.github.com/users/chainsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/chainsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chainsingh/subscriptions","organizations_url":"https://api.github.com/users/chainsingh/orgs","repos_url":"https://api.github.com/users/chainsingh/repos","events_url":"https://api.github.com/users/chainsingh/events{/privacy}","received_events_url":"https://api.github.com/users/chainsingh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T04:36:39Z","updated_at":"2016-04-15T11:03:39Z","closed_at":"2016-04-15T11:03:39Z","body":"On running kua-gateway-server as java -jar aadhaarbridge-kua-gate-0.0.1-SNAPSHOT.jar and application.properties as:\r\n\"keystore.location=/Users/chainsingh/Downloads/server/ETa8cd3f.p12\r\nkeystore.pass=****\r\nkeystore.alias=aadharbridgeKey\r\nx09cert.location=/Users/chainsingh/Downloads/server/ETa8cd3f.cer \r\naua.host.auth.url=http://localhost:8085/kua-preprod/auth\r\naua.host.bfd.url=http://localhost:8085/kua-preprod/bfd\r\naua.host.otp.url=http://localhost:8085/kua-preprod/otp\r\naua.host.kyc.url=http://localhost:8085/kua-preprod/kyc\r\nsubaua.code=ETa8cd3f\r\ntimeout.in.sec=300000\r\nserver.port=8181\", \r\nand hitting http://localhost:8181/auth/raw with request json as \r\n{\r\n        \"aadhaar-id\": \"645446389945\",\r\n        \"location\": {\r\n            \"type\": \"pincode\",\r\n            \"pincode\": \"560067\"\r\n        },\r\n        \"modality\": \"demo\",\r\n        \"certificate-type\": \"prod\",\r\n        \"demographics\": {\r\n            \"name\": {\r\n                \"matching-strategy\": \"exact\",\r\n                \"name-value\": \"Sahil Mutneja\"\r\n            }\r\n        }\r\n} \r\nis consistently resulting in following error:\r\njava.lang.RuntimeException: java.io.FileNotFoundException:\r\n/Users/chainsingh/Downloads/server/ETa8cd3f.cer  (No such file or directory)\r\n        at com.aadhaarconnect.bridge.security.XMLSigner.getPublicKey(XMLSigner.java:190)\r\n        at com.aadhaarconnect.bridge.security.XMLSigner.signXML(XMLSigner.java:100)\r\n\r\n**even when this actually exists.**  Putting the \r\n\r\nRunning the same snippet of code of accessing file in XMLSigner.getPublicKey in a standalone java program does not result in any error. When I put /Users/chainsingh/Downloads/server/ETa8cd3f.cer in keystore.location it is able to find the file. I am, to be frank, left with no explanation for this behaviour excpet there may be some non-trivial issue in the code itself.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/khosla-labs/aadhaar-bridge/issues/comments/210416567","html_url":"https://github.com/khosla-labs/aadhaar-bridge/issues/18#issuecomment-210416567","issue_url":"https://api.github.com/repos/khosla-labs/aadhaar-bridge/issues/18","id":210416567,"user":{"login":"chainsingh","id":5456872,"avatar_url":"https://avatars.githubusercontent.com/u/5456872?v=3","gravatar_id":"","url":"https://api.github.com/users/chainsingh","html_url":"https://github.com/chainsingh","followers_url":"https://api.github.com/users/chainsingh/followers","following_url":"https://api.github.com/users/chainsingh/following{/other_user}","gists_url":"https://api.github.com/users/chainsingh/gists{/gist_id}","starred_url":"https://api.github.com/users/chainsingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chainsingh/subscriptions","organizations_url":"https://api.github.com/users/chainsingh/orgs","repos_url":"https://api.github.com/users/chainsingh/repos","events_url":"https://api.github.com/users/chainsingh/events{/privacy}","received_events_url":"https://api.github.com/users/chainsingh/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T11:03:39Z","updated_at":"2016-04-15T11:03:39Z","body":"Sorry my mistake. Was a silly error."}}