
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
Hello Francisco,
How far through the tutorial have you gotten, that is which specific
step are you on when you get the exception? Also, show us the
exception output up to, and including the ArrayStoreException.
David
Francisco Cartusciello Blanco wrote:
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!