Vote count:
0
THe code is as follows:
LinkedHashMap<Integer, Device> deviceMap =
(LinkedHashMap<Integer, Device>) context.getAttribute("DEVICES");
Where Device is my class (encapsulation of public/private members that maniuplate its data). The LinkedHashMap; initially declared is as follows:
LinkedHashMap<Integer, Device> deviceMap = new LinkedHashMap<Integer,Device>();
Working with Java Servlets here, hence the context and attribute stuff. I am able to access it fine elsewhere it seems that its just this servlet containing the first code snippet being weird.
asked 29 secs ago
HTTP Status 500 --- cannot be cast to java.util.LinkedHashMap
Aucun commentaire:
Enregistrer un commentaire