Newsgroup: it.comp.java
Titolo: Problema con Hibernate e l'annotations @OneToOne ..... la foreign key c'è ma non funziona...

Ciao a tutti,
sto usando JBoos Seam ed ho dei problemi con Hibernate...
Queste sono le mie classi :
---------------------------------------------------------------------------­-----------------------------------
User.Java
@Entity
@Name("user")
@Scope(SESSION)
@Table(name="user")
public class User implements Serializable {
        @Id
        @GeneratedValue
        @Column(name = "id_user")
        int id_user;
        @NotNull
        String cognome;
        @NotNull
        String nome;
        @Email
        String email;
        public User() {
        }
..................
}
---------------------------------------------------------------------------­-----------------------------------
Account.java
@Entity
@Name("account")
@Scope(SESSION)
@Table(name="account")
public class Account implements Serializable {
        @Id
        String username;
        @NotNull
        String password;
        @NotNull
        String privilegi;
        @OneToOne(targetEntity=User.class, fetch=FetchType.LAZY)
        @JoinColumn(name = "id_user", nullable = true)
        int id_user;
        public Account() {
        }
.........................................
}
---------------------------------------------------------------------------­-----------------------------------
Ho usato l'annotations @OneToOne per creare la foreign key.
Nella tabella "user" --> id_user è la primary key.
Nella tabella "account" -->  id_user è la foreign key.
In MySql il Database viene generato senza problemi e con la foreign
key correttamente configurata.
Il problema c'è quando utilizzo il metodo "createUserAccount()" di
questa classe :
---------------------------------------------------------------------------­-----------------------------------
DAORegister.java
@Stateless
@Name("register")
public class DAORegister implements I_Register{
        @In
        private User user;
        @In
        private Account account;
        @PersistenceContext
        private EntityManager entityManager;
        public String createUserAccount(){
                entityManager.persist(user);         //personal
informations
                entityManager.persist(account);    //account
informations
                System.out.println("Account con dati anagrafici
creato");
                return "registration_completed";
        }
}
---------------------------------------------------------------------------­-----------------------------------
Praticamente la tabella "user" contiene i dati anagrafici, mentre la
tabella "account" contiene i dati per fare il login.
Questi sono gli errori che escono fuori :
11:25:24,609 FATAL [application]
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
javax.faces.el.EvaluationException:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
91)
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerIm­
pl.java:
91)
        at javax.faces.component.UICommand.broadcast(UICommand.java:
383)
        at
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:
184)
        at
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:
162)
        at
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:
350)
        at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPha­
se.java:
97)
        at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:
251)
        at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:
117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:
244)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:83)
        at
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:
85)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:
64)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:
141)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:
281)
        at
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:
68)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:
158)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.j­
ava:
96)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­
ava:
230)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­
ava:
175)
        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc­
iationValve.java:
179)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas­
e.java:
432)
        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java­:
84)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
        at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnect­
ionValve.java:
157)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­
a:
109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
262)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
        at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:
446)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:
87)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
        at org.jboss.aspects.tx.TxInterceptor
$Required.invoke(TxInterceptor.java:195)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationIntercept­
or.java:
95)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInsta­
nceInterceptor.java:
62)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationI­
nterceptor.java:
77)
        at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Authentica­
tionInterceptor.java:
110)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.j­
ava:
46)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInte­
rceptor.java:
106)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
240)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
210)
        at
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.jav­
a:
84)
        at $Proxy86.createUserAccount(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:
21)
        at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContex­
t.java:
31)
        at org.jboss.seam.intercept.ClientSideInterceptor
$1.proceed(ClientSideInterceptor.java:76)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor­.java:
54)
        at org.javassist.tmp.java.lang.Object_$
$_javassist_2.createUserAccount(Object_$$_javassist_2.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
329)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
342)
        at
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:
58)
        at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
        at
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:
276)
        at
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:
68)
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
77)
        ... 46 more
Caused by: javax.persistence.PersistenceException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(Abstr­
actEntityManagerImpl.java:
629)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
218)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionSco­
pedEntityManager.java:
182)
        at
org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.ja­
va:
135)
        at seam.dao.DAORegister.createUserAccount(DAORegister.java:
27)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
112)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
166)
        at
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.­
java:
44)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterce­
ptor.java:
31)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.­
java:
46)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInte­
rceptor.java:
42)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(Entit­
yManagerProxyInterceptor.java:
26)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(Hi­
bernateSessionProxyInterceptor.java:
27)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInt­
erceptor.java:
50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
118)
        at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Intercept­
orsInterceptor.java:
63)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(Tran­
sactionScopedEntityManagerInterceptor.java:
54)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterce­
ptor.java:
47)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
        ... 85 more
Caused by: org.hibernate.PropertyAccessException: could not get a
field value by reflection getter of seam.model.User.id_user
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:35)
        at
org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEnt­
ityTuplizer.java:
183)
        at
org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(Abstra­
ctEntityPersister.java:
3591)
        at
org.hibernate.persister.entity.AbstractEntityPersister.isTransient(Abstract­
EntityPersister.java:
3307)
        at
org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
        at org.hibernate.engine.ForeignKeys
$Nullifier.isNullifiable(ForeignKeys.java:137)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:69)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:47)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(Ab­
stractSaveEventListener.java:
288)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveE­
ventListener.java:
181)
        at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(Abstr­
actSaveEventListener.java:
121)
        at
org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(Defau­
ltPersistEventListener.java:
131)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
87)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
38)
        at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:
618)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
592)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
596)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
212)
        ... 120 more
Caused by: java.lang.IllegalArgumentException: Can not set int field
seam.model.User.id_user to java.lang.Integer
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.getInt(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.get(Unknown
Source)
        at java.lang.reflect.Field.get(Unknown Source)
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:32)
        ... 137 more
11:25:24,609 WARN  [lifecycle] #{register.createUserAccount}:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
javax.faces.FacesException: #{register.createUserAccount}:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerIm­
pl.java:
107)
        at javax.faces.component.UICommand.broadcast(UICommand.java:
383)
        at
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:
184)
        at
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:
162)
        at
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:
350)
        at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPha­
se.java:
97)
        at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:
251)
        at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:
117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:
244)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:83)
        at
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:
85)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:
64)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:
141)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:
281)
        at
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:
68)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:
158)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.j­
ava:
96)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­
ava:
230)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­
ava:
175)
        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc­
iationValve.java:
179)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas­
e.java:
432)
        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java­:
84)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
        at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnect­
ionValve.java:
157)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­
a:
109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
262)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
        at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:
446)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.faces.el.EvaluationException:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
91)
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerIm­
pl.java:
91)
        ... 45 more
Caused by: javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:
87)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
        at org.jboss.aspects.tx.TxInterceptor
$Required.invoke(TxInterceptor.java:195)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationIntercept­
or.java:
95)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInsta­
nceInterceptor.java:
62)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationI­
nterceptor.java:
77)
        at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Authentica­
tionInterceptor.java:
110)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.j­
ava:
46)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInte­
rceptor.java:
106)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
240)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
210)
        at
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.jav­
a:
84)
        at $Proxy86.createUserAccount(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:
21)
        at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContex­
t.java:
31)
        at org.jboss.seam.intercept.ClientSideInterceptor
$1.proceed(ClientSideInterceptor.java:76)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor­.java:
54)
        at org.javassist.tmp.java.lang.Object_$
$_javassist_2.createUserAccount(Object_$$_javassist_2.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
329)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
342)
        at
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:
58)
        at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
        at
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:
276)
        at
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:
68)
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
77)
        ... 46 more
Caused by: javax.persistence.PersistenceException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(Abstr­
actEntityManagerImpl.java:
629)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
218)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionSco­
pedEntityManager.java:
182)
        at
org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.ja­
va:
135)
        at seam.dao.DAORegister.createUserAccount(DAORegister.java:
27)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
112)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
166)
        at
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.­
java:
44)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterce­
ptor.java:
31)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.­
java:
46)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInte­
rceptor.java:
42)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(Entit­
yManagerProxyInterceptor.java:
26)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(Hi­
bernateSessionProxyInterceptor.java:
27)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInt­
erceptor.java:
50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
118)
        at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Intercept­
orsInterceptor.java:
63)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(Tran­
sactionScopedEntityManagerInterceptor.java:
54)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterce­
ptor.java:
47)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
        ... 85 more
Caused by: org.hibernate.PropertyAccessException: could not get a
field value by reflection getter of seam.model.User.id_user
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:35)
        at
org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEnt­
ityTuplizer.java:
183)
        at
org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(Abstra­
ctEntityPersister.java:
3591)
        at
org.hibernate.persister.entity.AbstractEntityPersister.isTransient(Abstract­
EntityPersister.java:
3307)
        at
org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
        at org.hibernate.engine.ForeignKeys
$Nullifier.isNullifiable(ForeignKeys.java:137)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:69)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:47)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(Ab­
stractSaveEventListener.java:
288)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveE­
ventListener.java:
181)
        at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(Abstr­
actSaveEventListener.java:
121)
        at
org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(Defau­
ltPersistEventListener.java:
131)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
87)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
38)
        at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:
618)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
592)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
596)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
212)
        ... 120 more
Caused by: java.lang.IllegalArgumentException: Can not set int field
seam.model.User.id_user to java.lang.Integer
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.getInt(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.get(Unknown
Source)
        at java.lang.reflect.Field.get(Unknown Source)
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:32)
        ... 137 more
11:25:24,609 WARN  [lifecycle] executePhase(INVOKE_APPLICATION
5,com.sun.faces.context.FacesContextImpl@17fd168) threw exception
javax.faces.FacesException: #{register.createUserAccount}:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPha­
se.java:
105)
        at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:
251)
        at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:
117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:
244)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:83)
        at
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:
85)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:
64)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:
141)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:
281)
        at
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:
68)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:
158)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.j­
ava:
96)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­
ava:
230)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­
ava:
175)
        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc­
iationValve.java:
179)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas­
e.java:
432)
        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java­:
84)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
        at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnect­
ionValve.java:
157)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­
a:
109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
262)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
        at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:
446)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.faces.FacesException: #{register.createUserAccount}:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerIm­
pl.java:
107)
        at javax.faces.component.UICommand.broadcast(UICommand.java:
383)
        at
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:
184)
        at
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:
162)
        at
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:
350)
        at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPha­
se.java:
97)
        ... 40 more
Caused by: javax.faces.el.EvaluationException:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
91)
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerIm­
pl.java:
91)
        ... 45 more
Caused by: javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:
87)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
        at org.jboss.aspects.tx.TxInterceptor
$Required.invoke(TxInterceptor.java:195)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationIntercept­
or.java:
95)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInsta­
nceInterceptor.java:
62)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationI­
nterceptor.java:
77)
        at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Authentica­
tionInterceptor.java:
110)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.j­
ava:
46)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInte­
rceptor.java:
106)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
240)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
210)
        at
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.jav­
a:
84)
        at $Proxy86.createUserAccount(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:
21)
        at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContex­
t.java:
31)
        at org.jboss.seam.intercept.ClientSideInterceptor
$1.proceed(ClientSideInterceptor.java:76)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor­.java:
54)
        at org.javassist.tmp.java.lang.Object_$
$_javassist_2.createUserAccount(Object_$$_javassist_2.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
329)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
342)
        at
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:
58)
        at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
        at
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:
276)
        at
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:
68)
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
77)
        ... 46 more
Caused by: javax.persistence.PersistenceException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(Abstr­
actEntityManagerImpl.java:
629)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
218)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionSco­
pedEntityManager.java:
182)
        at
org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.ja­
va:
135)
        at seam.dao.DAORegister.createUserAccount(DAORegister.java:
27)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
112)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
166)
        at
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.­
java:
44)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterce­
ptor.java:
31)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.­
java:
46)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInte­
rceptor.java:
42)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(Entit­
yManagerProxyInterceptor.java:
26)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(Hi­
bernateSessionProxyInterceptor.java:
27)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInt­
erceptor.java:
50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
118)
        at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Intercept­
orsInterceptor.java:
63)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(Tran­
sactionScopedEntityManagerInterceptor.java:
54)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterce­
ptor.java:
47)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
        ... 85 more
Caused by: org.hibernate.PropertyAccessException: could not get a
field value by reflection getter of seam.model.User.id_user
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:35)
        at
org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEnt­
ityTuplizer.java:
183)
        at
org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(Abstra­
ctEntityPersister.java:
3591)
        at
org.hibernate.persister.entity.AbstractEntityPersister.isTransient(Abstract­
EntityPersister.java:
3307)
        at
org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
        at org.hibernate.engine.ForeignKeys
$Nullifier.isNullifiable(ForeignKeys.java:137)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:69)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:47)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(Ab­
stractSaveEventListener.java:
288)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveE­
ventListener.java:
181)
        at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(Abstr­
actSaveEventListener.java:
121)
        at
org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(Defau­
ltPersistEventListener.java:
131)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
87)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
38)
        at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:
618)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
592)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
596)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
212)
        ... 120 more
Caused by: java.lang.IllegalArgumentException: Can not set int field
seam.model.User.id_user to java.lang.Integer
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.getInt(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.get(Unknown
Source)
        at java.lang.reflect.Field.get(Unknown Source)
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:32)
        ... 137 more
11:25:24,781 ERROR [ExceptionFilter] handling uncaught exception
javax.servlet.ServletException: #{register.createUserAccount}:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:
256)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:83)
        at
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:
85)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:
64)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:
141)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:
281)
        at
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:
68)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:
158)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.j­
ava:
96)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­
ava:
230)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­
ava:
175)
        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc­
iationValve.java:
179)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas­
e.java:
432)
        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java­:
84)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
        at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnect­
ionValve.java:
157)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­
a:
109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
262)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
        at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:
446)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.faces.FacesException: #{register.createUserAccount}:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerIm­
pl.java:
107)
        at javax.faces.component.UICommand.broadcast(UICommand.java:
383)
        at
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:
184)
        at
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:
162)
        at
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:
350)
        at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPha­
se.java:
97)
        at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:
251)
        at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:
117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:
244)
        ... 37 more
Caused by: javax.faces.el.EvaluationException:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
91)
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerIm­
pl.java:
91)
        ... 45 more
Caused by: javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:
87)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
        at org.jboss.aspects.tx.TxInterceptor
$Required.invoke(TxInterceptor.java:195)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationIntercept­
or.java:
95)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInsta­
nceInterceptor.java:
62)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationI­
nterceptor.java:
77)
        at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Authentica­
tionInterceptor.java:
110)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.j­
ava:
46)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInte­
rceptor.java:
106)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
240)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
210)
        at
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.jav­
a:
84)
        at $Proxy86.createUserAccount(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:
21)
        at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContex­
t.java:
31)
        at org.jboss.seam.intercept.ClientSideInterceptor
$1.proceed(ClientSideInterceptor.java:76)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor­.java:
54)
        at org.javassist.tmp.java.lang.Object_$
$_javassist_2.createUserAccount(Object_$$_javassist_2.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
329)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
342)
        at
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:
58)
        at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
        at
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:
276)
        at
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:
68)
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
77)
        ... 46 more
Caused by: javax.persistence.PersistenceException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(Abstr­
actEntityManagerImpl.java:
629)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
218)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionSco­
pedEntityManager.java:
182)
        at
org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.ja­
va:
135)
        at seam.dao.DAORegister.createUserAccount(DAORegister.java:
27)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
112)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
166)
        at
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.­
java:
44)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterce­
ptor.java:
31)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.­
java:
46)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInte­
rceptor.java:
42)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(Entit­
yManagerProxyInterceptor.java:
26)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(Hi­
bernateSessionProxyInterceptor.java:
27)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInt­
erceptor.java:
50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
118)
        at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Intercept­
orsInterceptor.java:
63)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(Tran­
sactionScopedEntityManagerInterceptor.java:
54)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterce­
ptor.java:
47)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
        ... 85 more
Caused by: org.hibernate.PropertyAccessException: could not get a
field value by reflection getter of seam.model.User.id_user
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:35)
        at
org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEnt­
ityTuplizer.java:
183)
        at
org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(Abstra­
ctEntityPersister.java:
3591)
        at
org.hibernate.persister.entity.AbstractEntityPersister.isTransient(Abstract­
EntityPersister.java:
3307)
        at
org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
        at org.hibernate.engine.ForeignKeys
$Nullifier.isNullifiable(ForeignKeys.java:137)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:69)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:47)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(Ab­
stractSaveEventListener.java:
288)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveE­
ventListener.java:
181)
        at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(Abstr­
actSaveEventListener.java:
121)
        at
org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(Defau­
ltPersistEventListener.java:
131)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
87)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
38)
        at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:
618)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
592)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
596)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
212)
        ... 120 more
Caused by: java.lang.IllegalArgumentException: Can not set int field
seam.model.User.id_user to java.lang.Integer
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.getInt(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.get(Unknown
Source)
        at java.lang.reflect.Field.get(Unknown Source)
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:32)
        ... 137 more
11:25:24,796 ERROR [ExceptionFilter] exception root cause
javax.faces.FacesException: #{register.createUserAccount}:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerIm­
pl.java:
107)
        at javax.faces.component.UICommand.broadcast(UICommand.java:
383)
        at
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:
184)
        at
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:
162)
        at
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:
350)
        at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPha­
se.java:
97)
        at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:
251)
        at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:
117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:
244)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:83)
        at
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:
85)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:
64)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:
141)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:
281)
        at
org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:
68)
        at org.jboss.seam.servlet.SeamFilter
$FilterChainImpl.doFilter(SeamFilter.java:69)
        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:
158)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.j­
ava:
96)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­
nFilterChain.java:
235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­
hain.java:
206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­
ava:
230)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­
ava:
175)
        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoc­
iationValve.java:
179)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas­
e.java:
432)
        at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java­:
84)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
        at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnect­
ionValve.java:
157)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­
a:
109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
262)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
        at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:
446)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.faces.el.EvaluationException:
javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
91)
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerIm­
pl.java:
91)
        ... 45 more
Caused by: javax.ejb.EJBTransactionRolledbackException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:
87)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
        at org.jboss.aspects.tx.TxInterceptor
$Required.invoke(TxInterceptor.java:195)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationIntercept­
or.java:
95)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInsta­
nceInterceptor.java:
62)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationI­
nterceptor.java:
77)
        at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Authentica­
tionInterceptor.java:
110)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.j­
ava:
46)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInte­
rceptor.java:
106)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
240)
        at
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.­
java:
210)
        at
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.jav­
a:
84)
        at $Proxy86.createUserAccount(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:
21)
        at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContex­
t.java:
31)
        at org.jboss.seam.intercept.ClientSideInterceptor
$1.proceed(ClientSideInterceptor.java:76)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor­.java:
54)
        at org.javassist.tmp.java.lang.Object_$
$_javassist_2.createUserAccount(Object_$$_javassist_2.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
329)
        at
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:
342)
        at
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:
58)
        at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
        at
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:
276)
        at
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:
68)
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBin­
dingMethodExpressionAdapter.java:
77)
        ... 46 more
Caused by: javax.persistence.PersistenceException:
org.hibernate.PropertyAccessException: could not get a field value by
reflection getter of seam.model.User.id_user
        at
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(Abstr­
actEntityManagerImpl.java:
629)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
218)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionSco­
pedEntityManager.java:
182)
        at
org.jboss.seam.persistence.EntityManagerProxy.persist(EntityManagerProxy.ja­
va:
135)
        at seam.dao.DAORegister.createUserAccount(DAORegister.java:
27)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
112)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
166)
        at
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.­
java:
44)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
56)
        at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterce­
ptor.java:
31)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.­
java:
46)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInte­
rceptor.java:
42)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(Entit­
yManagerProxyInterceptor.java:
26)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(Hi­
bernateSessionProxyInterceptor.java:
27)
        at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContex­
t.java:
68)
        at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at
org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInt­
erceptor.java:
50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextI­
mpl.java:
118)
        at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Intercept­
orsInterceptor.java:
63)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(Tran­
sactionScopedEntityManagerInterceptor.java:
54)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterce­
ptor.java:
47)
        at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:
101)
        at
org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
        ... 85 more
Caused by: org.hibernate.PropertyAccessException: could not get a
field value by reflection getter of seam.model.User.id_user
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:35)
        at
org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEnt­
ityTuplizer.java:
183)
        at
org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(Abstra­
ctEntityPersister.java:
3591)
        at
org.hibernate.persister.entity.AbstractEntityPersister.isTransient(Abstract­
EntityPersister.java:
3307)
        at
org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181)
        at org.hibernate.engine.ForeignKeys
$Nullifier.isNullifiable(ForeignKeys.java:137)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:69)
        at org.hibernate.engine.ForeignKeys
$Nullifier.nullifyTransientReferences(ForeignKeys.java:47)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(Ab­
stractSaveEventListener.java:
288)
        at
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveE­
ventListener.java:
181)
        at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(Abstr­
actSaveEventListener.java:
121)
        at
org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(Defau­
ltPersistEventListener.java:
131)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
87)
        at
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersis­
tEventListener.java:
38)
        at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:
618)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
592)
        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:
596)
        at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerIm­
pl.java:
212)
        ... 120 more
Caused by: java.lang.IllegalArgumentException: Can not set int field
seam.model.User.id_user to java.lang.Integer
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknow­
n
Source)
        at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.getInt(Unknown
Source)
        at sun.reflect.UnsafeIntegerFieldAccessorImpl.get(Unknown
Source)
        at java.lang.reflect.Field.get(Unknown Source)
        at org.hibernate.property.DirectPropertyAccessor
$DirectGetter.get(DirectPropertyAccessor.java:32)
        ... 137 more
Vi prego aiutatemi, sicuramente è un errore stupido ma non riesco ad
uscirne
Grazie.

Caused by: java.lang.IllegalArgumentException: Can not set int field
seam.model.User.id_user to java.lang.Integer .
Credo che l'errore (o almeno uno) sia questo.
Definisci la proprieta' id della classe User come "Integer" invece di
"int".
Buon lavoro