Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Hikvision Firmware Gives "totalMatches" Error. #6

Open
ghost opened this issue Aug 20, 2023 · 0 comments
Open

New Hikvision Firmware Gives "totalMatches" Error. #6

ghost opened this issue Aug 20, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants