Hello everyone,
Has anyone got any further information on this? I too am just getting back a list of Objects rather than the service model. In my finder i have:
1results = (List<AuditItem>) QueryUtil.list(q, getDialect(), begin, end);
This seems to work in the sense that the size of the results list matches the record count in the database, however, in view.jsp im trying something like:
1List<AuditItem> results= AuditItemLocalServiceUtil.findAuditItems(0, 100);
2System.out.println("record count = " + results.size());
3System.out.println("Action ID = " + results.get(0).getActionID());
I get the following exception:
1ava.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to urn.inps.vpp.data.model.AuditItem
Im not using the ext environment (but im fairly sure thats not the issue). Has anyone got this to work properly? It seems to be making the query correctly, but how can i get the actual objects out of the query?
Thanks in advance,
Ian
Please sign in to flag this as inappropriate.