| Summary: | [SearchEngine] java.lang.NumberFormatException thrown when searching movie | ||
|---|---|---|---|
| Product: | MovieXXX | Reporter: | tomfong521 |
| Component: | MovieAnalysisEngine | Assignee: | clwong274-c |
| Status: | RESOLVED FIXED | ||
| Severity: | blocker | ||
| Priority: | High | ||
| Version: | 2.0 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Deadline: | 2018-11-24 | ||
|
Description
tomfong521
2018-11-30 00:29:56 HKT
Root cause - There are data in the database from columns "budget" and "gross" that exceed the value range of int (-2,147,483,648 .. 2,147,483,647). When these data are read as string and being phrased into int type, number format exception will be thrown How to fix - Changed the variable types for "budget" and "gross" Expected behavior - No exception or error should be shown, reading database and search can be performed successfully and properly Potential affected areas - SearchEngine Affected versions - >=v3 Test cases 1. Edit a test database. Enter movie info to satisfy following (e.g. given search parameter "german"): MovieA: budget="1687311" language="english" MovieB: budget="12215500000" language="german" 2. Enter "2" to select "Film Recommendation" in [System Home] 3. Enter "1" to select "Start New Recommendation" in [Office Box Prediction] 4. Enter keyword (e.g. "german") to process recommendation Test result - At step (4), no exception or error is shown, recommendation is performed and printed successfully - Printed output: MovieB |