Hi all, i started a new enterprise application with many servlet which simulate a web site for student for the exam prenotation and so one. Sometimes on running the project it works all good, sometimes, as in this case, after the correct login, the server show me this message:
I mean there's a problem for the nullpointer exception, does someone know how could i resolve this little problem?
Joined: Oct 08, 2007
Solved the problem with a try - catch block :-) tkx... But now i got another exception on the destroy query... When i try to delete from the browser an object i have this exception:
javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [ejb.Profili#1]
In which way could i solve this persistence problem?
well according to the hibernate's doc this is what is happening:
"This exception is thrown when an operation would break session-scoped identity. This occurs if the user tries to associate two different instances of the same Java class with a particular identifier, in the scope of a single Session."
you will have to provide more code in order to let us identify your problem.. :-)