5,657
社区成员




Caused By: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
Class has two properties of the same name "arg0"
this problem is related to the following location:
at public java.lang.String com.XXX.service.jaxws_asm.LoginCheck.getArg0()
at com.XXX.service.jaxws_asm.LoginCheck
this problem is related to the following lacation:
at private java.lang.String com.XXX.service.jaxws_asm.LoginCheck.arg0
at com.XXX.service.jaxws_asm.LoginCheck
Class has two properties of the same name "arg1"
this problem is related to the following location:
at public java.lang.String com.XXX.service.jaxws_asm.LoginCheck.getArg1()
at com.XXX.service.jaxws_asm.LoginCheck
this problem is related to the following lacation:
at private java.lang.String com.XXX.service.jaxws_asm.LoginCheck.arg1
at com.XXX.service.jaxws_asm.LoginCheck
openLDAPConnection();
String[] baseDNs = LDAPConnectionServlet.baseDN;
if (baseDNs != null && baseDNs.length > 0) {
String requestDN = null;
SearchRequest searchRequest = null;
List<SearchResultEntry> list = null;
for (String baseDN : baseDNs) {
requestDN = LDAPConnectionServlet.loginNameRDN + userName + ","
+ baseDN;
try {
searchRequest = new SearchRequest(requestDN,
SearchScope.SUB, "(" + LDAPConnectionServlet.filter
+ ")");
searchRequest.addControl(new SubentriesRequestControl());
SearchResult searchResult = conn.search(searchRequest);
list = searchResult.getSearchEntries();
if (list != null && list.size() == 1) {
closeLDAPConnection();
return password.equals(list.get(0).getAttributeValue("userPassword"));
}
} catch (LDAPException e) {
closeLDAPConnection();
}
}
}
closeLDAPConnection();
return false;