Well, use getter:
| List existing = em.createQuery("select u.username from User u where
u.username=:uname").setParameter("uname", user.getUsername())
| .getResultList();
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046201#4046201
Reply to the pos
If i'm using the code which you have given then i'm unable to complie the class
its showing an error like
"The field User.username not visisble"
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046195#4046195
Reply to the post :
http://www.jboss.com/index.htm
[org.jboss.seam.servlet.SeamExceptionFilter] uncaught exception
javax.servlet.ServletException: Error calling action method of component with
id register:register
is too generic. I am asking for the full stack to see what is causing it. With
you original code it was
| Caused by: org.hibernat
ya i rebuilt the application and redeployed it.still i get the same error like
[org.jboss.seam.servlet.SeamExceptionFilter] uncaught exception
javax.servlet.ServletException: Error calling action method of component with
id register:register
View the original post :
http://www.jboss.com/index.
Is the whole stacktrace the same? Are you sure the modified files are being
rebuilt and redeployed correctly?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046113#4046113
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=
Same error is been displayed
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046048#4046048
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046048
___
jboss-user mailing list
jb
What happens when you use:
| List existing = em.createQuery("select u.username from User u where
u.username=:uname").setParameter("uname",user.username)
| .getResultList();
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045849#4045849
Reply to the
User.java is a stateless bean and Register.java is an interface and
RegisterAction.java is the implementation of the interface Register.
User.java
--
package com.vds.seamregistration.bean;
import static org.jboss.seam.ScopeType.SESSION;
import javax.persistence.Entity;
import j
Post the code of the register bean and the full stack as you did the first time.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045784#4045784
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045784
__
Even i tried your code its the same error.I'm getting an error like
javax.servlet.ServletException: Error calling action method of component with
id register:register
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045780#4045780
Reply to the post :
http://
Obviously hibernate is trying to execute "select u.username from
com.vds.seamregistration.bean.User u where u.username=#{user.username}".
Most likely you are using something like:
| em.createQuery("select u from User u where
u.username=#{user.username}").getSingleResult();
|
in the regist
11 matches
Mail list logo