mude para aquilo que eu tinha te falado antes então:
result.use(ExtJSJson.class).from(grupos).exclude("tipoMaterial").success(true).serialize();
se não funcionar, tente as outras versões que eu te passe. Se não funcionar ainda, tente fazer com o exclude em list.tipoMaterial ou list.telas, ou data.telas, ou data.tipoMaterial.
Lucas continua a mesma coisa, a tela vem em branco, mas usando isso:
é a unica hora que nao da erro, nas outras list.telas…e por ae vai…da erro…diz que nao existe…
e com esse trecho tb gera o json sem trazer as telas…
{“data”: [{“id”: 9,“descricao”: “11”,“tipoMaterial”: {“id”: 19,“descricao”: “eddd”}},{“id”: 10,“descricao”: “elaia”,“tipoMaterial”:…e por ae vai…
mas na tela continua vindo em branco…a e traz esse erro no console…
Uncaught TypeError: Cannot read property ‘id’ of undefined
tenta excluir então o telas.tipoMaterial só
Consigo fazer aparecer a lista já, mas quando dou um exclude ele nao tras os registros excluidos certo?
e assim quando clico em editar ele tb nao vem com os registros, nao tem outro jeito a nao ser pelo exclude?
obrigado.
vc tá excluindo a referência circular do json, isso precisa ser feito…
Algum problema em fazer isso?
Lucas nao sei se sou o unico com esse problema com VRAPTOR+EXTJS, mas mudando pra versão nova do vraptor, as listas vem com todos os atributos da classe associada!
a classe grupo tela estava trazendo todos os atributos da classe tela, e não somente os que eu chamava na tela, dai dava erro, eu dei exclude em um por um e deu certo, obrigado pela ajuda, se mais alguem passar por isso, já tem algo, ou até se for o caso em uma nova versão do vraptor…com a outra versão mais antiga isso nao ocorria, valeu Lucas, resolvido aqui essa questão…
abraço
Lucas consegui fazer aparecer a lista e tals mas nao consigo trazer as telas, da o seguinte erro quando clico em editar.
br.com.caelum.vraptor.VRaptorException: Unable to find converter for org.cinemotion.entity.GrupoTela
br.com.caelum.vraptor.core.DefaultConverters.to(DefaultConverters.java:59)
br.com.caelum.vraptor.http.ognl.VRaptorConvertersAdapter.convert(VRaptorConvertersAdapter.java:59)
br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.convert(OgnlParametersProvider.java:179)
br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createSimpleParameter(OgnlParametersProvider.java:175)
br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createRoot(OgnlParametersProvider.java:145)
br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createParameter(OgnlParametersProvider.java:123)
br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.getParametersFor(OgnlParametersProvider.java:86)
br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.getParametersFor(ParametersInstantiatorInterceptor.java:126)
br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.intercept(ParametersInstantiatorInterceptor.java:83)
br.com.caelum.vraptor.core.LazyInterceptorHandler.execute(LazyInterceptorHandler.java:59)
br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor.intercept(ExceptionHandlerInterceptor.java:71)
br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor.intercept(ResourceLookupInterceptor.java:69)
br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:56)
br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
br.com.caelum.vraptor.core.EnhancedRequestExecution.execute(EnhancedRequestExecution.java:44)
br.com.caelum.vraptor.VRaptor$1.insideRequest(VRaptor.java:91)
br.com.caelum.vraptor.ioc.spring.SpringProvider.provideForRequest(SpringProvider.java:58)
br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:88)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
grupoTela é uma enum? Se não, vc não pode ter um parâmetro de request direto pra grupoTela. Exemplo (chave=valor, onde chave é o nome do input):
tela.grupoTela=Alguma coisa
vc precisa popular algum atributo do grupoTela:
tela.grupoTela.atributo=Alguma coisa
ou criar um Converter pra GrupoTela.
Lucas, Tela não tem nenhum atributo booleno e mesmo assim ta vindo assim por JSON.
telas: [true, -1, org.cinemotion.entity.GrupoTela.telas, false]
o que pode ser?
é pq o hibernate não retorna uma collection bem comportada.
se vc tá serializando via result.use(…json()), crie essa classe: http://www.guj.com.br/java/255223-vraptor--hibernate--onetomany#1328498
(PersistentBagConverter)
se for ExtJS:
http://groups.google.com/group/caelum-vraptor/browse_thread/thread/ce18f00a7d878187
dá uma olhada na msg do José Maria de Oliveira, e copie a SuaClasseJSON pro seu projeto. Deve resolver.
Deu esse erro criando a classe pro result.
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘XStreamConverters’: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.List]: : Error creating bean with name ‘persistentBagConverter’: Unsatisfied dependency expressed through constructor argument with index 0 of type [br.com.caelum.vraptor.serialization.xstream.XStreamBuilder]: : Error creating bean with name ‘XStreamBuilderImpl’: Requested bean is currently in creation: Is there an unresolvable circular reference?; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘XStreamBuilderImpl’: Requested bean is currently in creation: Is there an unresolvable circular reference?; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘persistentBagConverter’: Unsatisfied dependency expressed through constructor argument with index 0 of type [br.com.caelum.vraptor.serialization.xstream.XStreamBuilder]: : Error creating bean with name ‘XStreamBuilderImpl’: Requested bean is currently in creation: Is there an unresolvable circular reference?; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘XStreamBuilderImpl’: Requested bean is currently in creation: Is there an unresolvable circular reference?
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
verdade, comi bola…
no construtor, use:
public PersistentBagConverter(TypeNameExtractor extractor) {
super(new VRaptorClassMapper(new XStream().getMapper(), extractor));
}
Dá erro nessa parte:
passando o mouse em cima pede pra fazer um cast
e fica assim:
está correto isso ae?
obrigado.
Continua com o mesmo erro fazendo esse cast, e sem ele fica com erro.
use Suppliers.ofInstance(extractor)
(do com.google)
Lucas estou usando o exemplo do segundo link e tipo, a minha lista de telas vem vazia…com o outro 3.4.0, a lista vinha normal, soh vinha com o problema de referencia circular, dai atualizei pro 3.4.1, arrumou meu projeto inteiro, haviam varias referencias circulares, e todas foram resolvidas, mas nessa tela de agora q estou tentnado arrumar, ela piorou…estgava funcionando e parou…
olha como vem as telas por json…
[{id:9, descricao:11, tipoMaterial:{id:19, descricao:eddd}, telas:[]},?]
vc tentou o primeiro jeito com o Suppliers.ofInstance?
Sim e dá o seguinte erro:
Grave: Servlet.service() for servlet default threw exception
br.com.caelum.vraptor.InterceptionException: exception raised, check root cause for details: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘XStreamJSONSerialization’: Unsatisfied dependency expressed through constructor argument with index 3 of type [br.com.caelum.vraptor.serialization.xstream.XStreamBuilder]: : Error creating bean with name ‘XStreamBuilderImpl’: Unsatisfied dependency expressed through constructor argument with index 0 of type [br.com.caelum.vraptor.serialization.xstream.XStreamConverters]: : Error creating bean with name ‘XStreamConverters’: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.List]: : Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘XStreamConverters’: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.List]: : Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘XStreamBuilderImpl’: Unsatisfied dependency expressed through constructor argument with index 0 of type [br.com.caelum.vraptor.serialization.xstream.XStreamConverters]: : Error creating bean with name ‘XStreamConverters’: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.List]: : Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘XStreamConverters’: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.List]: : Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
at br.com.caelum.vraptor.interceptor.ExecuteMethodInterceptor.intercept(ExecuteMethodInterceptor.java:96)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.LazyInterceptorHandler.execute(LazyInterceptorHandler.java:61)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.LazyInterceptorHandler.execute(LazyInterceptorHandler.java:61)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.FlashInterceptor.intercept(FlashInterceptor.java:83)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.InstantiateInterceptor.intercept(InstantiateInterceptor.java:48)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.intercept(ParametersInstantiatorInterceptor.java:93)
at br.com.caelum.vraptor.core.LazyInterceptorHandler.execute(LazyInterceptorHandler.java:59)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.ExceptionHandlerInterceptor.intercept(ExceptionHandlerInterceptor.java:71)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor.intercept(ResourceLookupInterceptor.java:69)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:56)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.EnhancedRequestExecution.execute(EnhancedRequestExecution.java:44)
at br.com.caelum.vraptor.VRaptor$1.insideRequest(VRaptor.java:91)
at br.com.caelum.vraptor.ioc.spring.SpringProvider.provideForRequest(SpringProvider.java:58)
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:88)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:277)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘XStreamJSONSerialization’: Unsatisfied dependency expressed through constructor argument with index 3 of type [br.com.caelum.vraptor.serialization.xstream.XStreamBuilder]: : Error creating bean with name ‘XStreamBuilderImpl’: Unsatisfied dependency expressed through constructor argument with index 0 of type [br.com.caelum.vraptor.serialization.xstream.XStreamConverters]: : Error creating bean with name ‘XStreamConverters’: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.List]: : Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘XStreamConverters’: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.List]: : Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘XStreamBuilderImpl’: Unsatisfied dependency expressed through constructor argument with index 0 of type [br.com.caelum.vraptor.serialization.xstream.XStreamConverters]: : Error creating bean with name ‘XStreamConverters’: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.List]: : Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘XStreamConverters’: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.List]: : Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘persistentBagConverter’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.cinemotion.controller.PersistentBagConverter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:329)
at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:43)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:325)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:263)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
at br.com.caelum.vraptor.ioc.spring.SpringBasedContainer.instanceFor(SpringBasedContainer.java:86)
at br.com.caelum.vraptor.core.DefaultResult.use(DefaultResult.java:57)
at org.cinemotion.controller.GrupoTvController.grid(GrupoTvController.java:45)
java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
faltando um jar… mas em todo caso é estranho dar isso…
posta aqui por favor como ficou a PersistentBagConverter