Author | Message |
---|---|
William
Posts: 3
|
Posted 18:48 May 14, 2013 |
HTTP Status 500 - hw3.model.GamePageEntry cannot be cast to java.util.List java.lang.ClassCastException: hw3.model.GamePageEntry cannot be cast to java.util.List hw3.controller.EditGameController.getEntry(EditGameController.java:29) hw3.controller.EditGameController.doGet(EditGameController.java:44) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) row line 29 is this code: List<GamePageEntry> entries = (List<GamePageEntry>) getServletContext() but I'm not sure what i have to do to it |
cysun
Posts: 2935
|
Posted 19:49 May 14, 2013 |
You probably have a GamePageEntry object in the application scope with the same name "entries". |
William
Posts: 3
|
Posted 21:01 May 14, 2013 |
Thank You, that fixed the problem. It was hard for me to see that. |