
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Hi,
I'm working with the netbeans tutorial USING JAVA PERSISTENCE API WITHIN A VISUAL WEB JSF APPLICATION, i everything is ok before start to bind the data with a Table, the problem is in this part of code:
public Users[] getUsers() {
EntityManager em = getEntityManager();
try{
javax.persistence.Query q = em.createQuery("select c from Users as c");
return (Users[]) q.getResultList().toArray(new Users[0]);
} finally {
em.close();
}
}
return (Users[]) q.getResultList().toArray(new Users[0]);
this part throws me.. a ArrayStoreException....and i don't know why...
if anyone can help me.. i appreciate your help!!!
Francisco Cartusciello.
Get news, entertainment and everything you care about at Live.com.
Check it out!