@Any @Default

351 views
Skip to first unread message

João Batista de Andrade

unread,
Apr 7, 2014, 1:16:24 PM4/7/14
to caelum-...@googlegroups.com

Pessoal,


Ainda estou "apanhando" dessa questão:

Estou fazendo um Login e quando anoto minha UsuarioSessao com @SessionScoped tenho o seguinte erro:

org.jboss.weld.exceptions.DeploymentException: WELD-000072: Bean declaring a passivating scope must be passivation capable.  Bean:  Managed Bean [class br.com.jb.login.session.UsuarioSessao] with qualifiers [@Any @Default]
    at org.jboss.weld.bean.ManagedBean.checkType(ManagedBean.java:203)
    at org.jboss.weld.bean.AbstractBean.initializeAfterBeanDiscovery(AbstractBean.java:103)
    at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:113)
    at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:129)
    at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:120)
    at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
    at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
   


Como devo tratar esta questão mesmo.



Abraços,


Rodrigo Turini

unread,
Apr 7, 2014, 1:24:21 PM4/7/14
to caelum-...@googlegroups.com
Oi João! Precisa por implements Serializable na classe. []'s

Rodrigo Turini
Caelum | Ensino e Inovação
www.caelum.com.br



--
You received this message because you are subscribed to the Google Groups "caelum-vraptor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caelum-vrapto...@googlegroups.com.
To post to this group, send email to caelum-...@googlegroups.com.
Visit this group at http://groups.google.com/group/caelum-vraptor.
For more options, visit https://groups.google.com/d/optout.

Otávio Garcia

unread,
Apr 7, 2014, 1:25:11 PM4/7/14
to caelum-...@googlegroups.com

Implemente Serializable.

Connected with Motocast™

João Batista de Andrade

unread,
Apr 7, 2014, 1:29:48 PM4/7/14
to caelum-...@googlegroups.com


Pessoal,


Valeu. É isso mesmo. Vcs já haviam me passado isso inclusive. rsrs


Brigadão ai,
Reply all
Reply to author
Forward
0 new messages