I have an application which is a socket server that accept connections from mobile android clients. When a client sends a login incorrect, the NoResultException is thrown.
After that I rollback and close de entity manager. Afterwards the user enters a correct login the server is collecting the data with some org.hibernate.proxy.hibernateproxy entities, which doesn’t happen if the first time the login is correct.
It is odd that queries only works again after socket connection is restarted. Even though it is the same entity manager factory.
I am using a named query.
However I changed it to try the entityManager.find method and this works fine.
I am using the libs of 5.4.3 , postgresql 9.1 and the newer postgresql driver .
I’ve tried almost all.
Thank you,