From: john_anderson_ii <nu...@jb...> - 2004-05-19 22:22:33
|
I don't know very much about CMR, I'm learning that now. But I think the ClassCastException could possibly come from these lines: Collection col = myBean.getAllDocumentByCategoryId(11); -----SNIP ------------ EDocuments element = ((EDocuments) iter.next()); Unless you can guaruntee that every item in the collection returned by getAllDocumentsByCategoryId is of type Edocuments, or can be cast to type Edocuments. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835606#3835606 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835606 |