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
Old Sample Planner cannot be imported #105
Comments
So I began to look at this one to find what exactly was going on. After some searching I managed to find the exception it was hitting on line 144 in MainController.java and found it was due to an IOException. I printed the stack trace out and found the following error occurring multiple times:
After some research I found it was due to a serializable issue and in some parts of the project they had serialVersionUID hard coded as 1. I changed it to the values it was looking for in the stack trace (i.e. 939793921119553866 for TimetableEvent.java.) Technically this fix works fine for loading the StudyPlanner.dat file but I am just not sure if this will be a permanent fix because im not sure if they might change in the future. Care to weigh in @rsanchez-wsu @Alienturnedhuman ? This one seems a little out of my pay grade. |
@cameronroudebush This is interesting. As I have been going through and making CheckStyle fixes I have added a My change clearly introduced the breakage where the default StudyPlanner.dat would not load. I completely blanked on the fact that loading that file would be affected by me adding a Are all of the occurrences of |
@rsanchez-wsu Yes all the changes in that commit are in relation to fixing the StudyPlanner.dat. All I did was gave it the serialVersionUID numbers that it was looking for. |
I can no longer open the previous StudyPlanner.dat file. It seems like either the method to import previous files has been modified or the StudyPlanner.dat file has been modified.
Either way, we need to look through the commit history and figure it out. Also we should add all .dat files to gitignore.
The text was updated successfully, but these errors were encountered: