• Post Reply Bookmark Topic Watch Topic
  • New Topic

HELP JPA  RSS feed

 
Armen Arzumanyan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is a my method


when I call this I see errors

2:23:44,843 ERROR [STDERR] javax.ejb.EJBException: javax.persistence.NoResultException: No entity found for query
12:23:44,843 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
12:23:44,843 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
12:23:44,843 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
12:23:44,843 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
12:23:45,281 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
12:23:45,281 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)

I want write method for login by email and password, also I want search email with entity beans, but I have this errors, what is it?

Can you provide me working methods?

Thanks.
 
Armen Arzumanyan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What can I do with this error

javax.persistence.NoResultException: No entity found for query
 
Paterne Gaye-Guingnido
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume your entity bean is WnUser.
(The name of the tha file in database is not important.)

Your query should be like this:




You can also try (I'm not sure):
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!