Biometric Authentication - Issue in reading file mosip-cbeff.xsd

I have setup the Authentication Demo ui & mock mds for auth. While reading the file called mosip-cbeff.xsd file i am getting this error

“The javax.xml.bind.UnmarshalException with the message [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.]”

below is the code line where i am getting this issue

private Map<String, Entry<String, List>> getCbeffValuesForCbeffDocType(CbeffDocType type,
MatchType matchType, String identityValue) throws IdAuthenticationBusinessException {
Map<String, String> bdbBasedOnType;
try {
bdbBasedOnType = cbeffUtil.getBDBBasedOnType(identityValue.getBytes(), type.getName(),
null);
} catch (Exception e) {
throw new IdAuthenticationBusinessException(IdAuthenticationErrorConstants.BIOMETRIC_MISSING.getErrorCode(),
String.format(IdAuthenticationErrorConstants.BIOMETRIC_MISSING.getErrorMessage(), type.getName()), e);
}
return bdbBasedOnType.entrySet().stream()
.collect(Collectors.toMap(Entry<String, String>::getKey, (Entry<String, String> entry) → {
IdentityInfoDTO identityInfoDTO = new IdentityInfoDTO();
identityInfoDTO.setValue(entry.getValue());
List idenityList = new ArrayList<>(1);
idenityList.add(identityInfoDTO);
return new SimpleEntry<>(getNameForCbeffName(entry.getKey(), matchType), idenityList);
}));
}

on this line I’m getting issue:

“bdbBasedOnType = cbeffUtil.getBDBBasedOnType(identityValue.getBytes(), type.getName(),
null);”

Hi @Bhavnish ,

Thank you for reaching out. We are looking into this issue currently and will get back to you shortly with a solution.

Best Regards,
Team MOSIP

Sure, Thanks for the help. Let me know if any other details are needed for analysing.

Hi @Bhavnish ,

Could you please provide the following details to help troubleshoot the issue?

a) Have you downloaded the mosip-cbeff.xsd file locally?
b) Are you using the latest version of the file from mosip-cbeff.xsd on GitHub?
c) Is the config server running locally? You can refer here for detailed instructions on config-server.
d) Is there any custom code that might affect how the file is read or processed?

We are looking forward to your response so we can assist further.

Best regards,
Team MOSIP

a) There a repo called mosip-config in which all the configuration files are there, mosip-cbeff.xsd file also present in that folder.
b) i am using release-1.2.0 version. I have clone all the services from release-1.2.0 branch.
c) Yes i have setup config server locally as mention in the developers guide.
d) Until i have not added any custom code inside the file (mosip-cbeff.xsd).

if you want i can share the values as well that what i am getting inside the method that i have pasted on 1st post.

Thnx


Upto that it is working. If i bypass the cbeff code then it is giving Authentication Success but when it loads the mosip-cbeff.xsd file then it will give error.

Hi @Bhavnish ,

Can you please share the following details?

  1. Server logs [ID-Authentication service logs].
  2. Please attach the mosip-cbeff.xsd file which is present in your local repo.

Best Regards,
Team MOSIP