You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newest hikvision firmware gives this error and I have recompiled the jar file to remove this error but I am NOT a programmer so please someone check this:
ERROR: Unrecognized field "totalMatches" (class rr.hikvisiondownloadassistant.Model$CMSearchResult), not marked as ignorable (6 known properties: "searchID", "numOfMatches", "version", "responseStatusStrg", "responseStatus", "matchList"])
at [Source: (StringReader); line: 6, column: 31] (through reference chain: rr.hikvisiondownloadassistant.Model$CMSearchResult["totalMatches"])
The fix I did was to put in the missing field below inside the Model.java source code and recompiled everything as described by creator
private long totalMatches;
here is the code with the line I added:
@Getter @NoArgsConstructor
public static class CMSearchResult {
private String version; // e.g. 2.0
private String searchID;
private boolean responseStatus;
private String responseStatusStrg; // e.g. OK, e.g. MORE (when paginating), e.g. NO MATCHES (for empty result)
private long numOfMatches;
private long totalMatches; // HERE IS THE LINE I ADDED
private List matchList;
}
Here is the file working on the latest firmware for my Hikvision ds-2cd2087g2-lu camera
Newest hikvision firmware gives this error and I have recompiled the jar file to remove this error but I am NOT a programmer so please someone check this:
ERROR: Unrecognized field "totalMatches" (class rr.hikvisiondownloadassistant.Model$CMSearchResult), not marked as ignorable (6 known properties: "searchID", "numOfMatches", "version", "responseStatusStrg", "responseStatus", "matchList"])
at [Source: (StringReader); line: 6, column: 31] (through reference chain: rr.hikvisiondownloadassistant.Model$CMSearchResult["totalMatches"])
The fix I did was to put in the missing field below inside the Model.java source code and recompiled everything as described by creator
private long totalMatches;
here is the code with the line I added:
@Getter
@NoArgsConstructor
public static class CMSearchResult {
private String version; // e.g. 2.0
private String searchID;
private boolean responseStatus;
private String responseStatusStrg; // e.g. OK, e.g. MORE (when paginating), e.g. NO MATCHES (for empty result)
private long numOfMatches;
private long totalMatches; // HERE IS THE LINE I ADDED
private List matchList;
}
Here is the file working on the latest firmware for my Hikvision ds-2cd2087g2-lu camera
hikvision-download-assistant-modified-by-klo.zip
The text was updated successfully, but these errors were encountered: