11:41:44,402 DEBUG [VRaptor ] VRaptor received a new request
11:41:44,419 DEBUG [DefaultRequestExecution] executing stack DefaultRequestExecution
11:41:44,435 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ResourceLookupInterceptor
11:41:44,435 DEBUG [DefaultResourceTranslator] trying to access /produtos
11:41:44,437 DEBUG [DefaultResourceTranslator] found resource [DefaultResourceMethod: ProdutosController.adicionaProdutosController.adiciona(Produto)]
11:41:44,448 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor FlashInterceptor
11:41:44,452 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor InterceptorListPriorToExecutionExtractor
11:41:44,458 DEBUG [InstantiatedInterceptorHandler] Invoking interceptor InstantiateInterceptor
11:41:44,575 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ParametersInstantiatorInterceptor
11:41:44,576 DEBUG [AsmBasedTypeCreator ] Trying to make class for ProdutosController$adiciona$[telefone removido]$2
11:41:44,576 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for ProdutosController.adiciona(Produto) as [produto]
11:41:44,579 DEBUG [AsmBasedTypeCreator ] Parameter names found for creating type are: [Produto]
11:41:44,579 DEBUG [AsmBasedTypeCreator ] Method for field 'Produto' being defined for type Lbr/com/caelum/brvarejo/produto/Produto;
11:41:44,584 DEBUG [AsmBasedTypeCreator ] Methods: [public br.com.caelum.brvarejo.produto.Produto ProdutosController$adiciona$[telefone removido]$2.getProduto(), public void ProdutosController$adiciona$[telefone removido]$2.setProduto(br.com.caelum.brvarejo.produto.Produto)]
11:41:44,584 DEBUG [AsmBasedTypeCreator ] Fields: [private br.com.caelum.brvarejo.produto.Produto ProdutosController$adiciona$[telefone removido]$2.Produto_]
11:41:44,584 DEBUG [CacheBasedTypeCreator] cached generic type for method [DefaultResourceMethod: ProdutosController.adicionaProdutosController.adiciona(Produto)]
11:41:44,584 DEBUG [OgnlParametersProvider] Applying example_length with [10]
11:41:44,668 DEBUG [OgnlParametersProvider] cant find property for expression example_length ignoring
11:41:44,669 DEBUG [OgnlParametersProvider] Applying produto.codPisCofins with [0]
11:41:44,696 DEBUG [OgnlParametersProvider] Applying produto.embVenda with []
11:41:44,699 DEBUG [OgnlParametersProvider] Applying produto.referencia with []
11:41:44,699 DEBUG [OgnlParametersProvider] Applying produto.codMarca with []
11:41:44,702 DEBUG [OgnlParametersProvider] Applying produto.tembReceb with [0]
11:41:44,704 DEBUG [OgnlParametersProvider] Applying produto.embReceb with []
11:41:44,708 DEBUG [OgnlParametersProvider] Applying produto.codCstA with [0]
11:41:44,711 DEBUG [OgnlParametersProvider] Applying produto.produtoLoja[0].estoqueMaximo with []
11:41:44,717 DEBUG [OgnlParametersProvider] cant find property for expression produto.produtoLoja[0].estoqueMaximo ignoring
11:41:44,718 DEBUG [OgnlParametersProvider] Applying produto.codSetor with [0]
11:41:44,720 DEBUG [OgnlParametersProvider] Applying produto.produtoLoja[0].ativo with [1]
11:41:44,720 DEBUG [OgnlParametersProvider] cant find property for expression produto.produtoLoja[0].ativo ignoring
11:41:44,721 DEBUG [OgnlParametersProvider] Applying example2_length with [10]
11:41:44,722 DEBUG [OgnlParametersProvider] cant find property for expression example2_length ignoring
11:41:44,722 DEBUG [OgnlParametersProvider] Applying produto.codPeso with []
11:41:44,728 DEBUG [OgnlParametersProvider] cant find property for expression produto.codPeso ignoring
11:41:44,729 DEBUG [OgnlParametersProvider] Applying produto.produtoLoja[0].expBalanca with [0]
11:41:44,729 DEBUG [OgnlParametersProvider] cant find property for expression produto.produtoLoja[0].expBalanca ignoring
11:41:44,730 DEBUG [OgnlParametersProvider] Applying produto.codFigFiscal with []
11:41:44,732 DEBUG [OgnlParametersProvider] Applying example3_length with [10]
11:41:44,733 DEBUG [OgnlParametersProvider] cant find property for expression example3_length ignoring
11:41:44,733 DEBUG [OgnlParametersProvider] Applying produto.produtoLoja[0].estoqueMinimo with []
11:41:44,734 DEBUG [OgnlParametersProvider] cant find property for expression produto.produtoLoja[0].estoqueMinimo ignoring
11:41:44,734 DEBUG [OgnlParametersProvider] Applying familia.codFamilia with []
11:41:44,735 DEBUG [OgnlParametersProvider] cant find property for expression familia.codFamilia ignoring
11:41:44,735 DEBUG [OgnlParametersProvider] Applying produto.descCurta with [kafakds]
11:41:44,736 DEBUG [OgnlParametersProvider] Applying produto.codPauta with []
11:41:44,739 DEBUG [OgnlParametersProvider] Applying produto.produtoLoja[0].expPdv with [0]
11:41:44,740 DEBUG [OgnlParametersProvider] cant find property for expression produto.produtoLoja[0].expPdv ignoring
11:41:44,740 DEBUG [OgnlParametersProvider] Applying produto.produtoLoja[0].preco with [33]
11:41:44,741 DEBUG [OgnlParametersProvider] cant find property for expression produto.produtoLoja[0].preco ignoring
11:41:44,741 DEBUG [OgnlParametersProvider] Applying produto.produtoLoja[0].margem with [33]
11:41:44,744 DEBUG [OgnlParametersProvider] cant find property for expression produto.produtoLoja[0].margem ignoring
11:41:44,745 DEBUG [OgnlParametersProvider] Applying produto.descCompleta with [aksfdlkmdsajflksadf]
11:41:44,745 DEBUG [OgnlParametersProvider] Applying produto.tembCompra with [0]
11:41:44,747 DEBUG [OgnlParametersProvider] Applying produto.tembVenda with [0]
11:41:44,749 DEBUG [OgnlParametersProvider] Applying produto.produtoLoja[0].etiqGondola with [0]
11:41:44,750 DEBUG [OgnlParametersProvider] cant find property for expression produto.produtoLoja[0].etiqGondola ignoring
11:41:44,750 DEBUG [OgnlParametersProvider] Applying produto.tipoProd with []
11:41:44,751 DEBUG [OgnlParametersProvider] Applying produto.embCompra with []
11:41:44,753 DEBUG [OgnlParametersProvider] Applying produto.codCategoria with [, , , , ]
11:41:44,761 DEBUG [OgnlParametersProvider] unable to parse expression 'produto.codCategoria'
ognl.OgnlException: codCategoria [java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String]
at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:103)
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:279)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:279)
at ognl.Ognl.setValue(Ognl.java:737)
at ognl.Ognl.setValue(Ognl.java:783)
at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createViaOgnl(OgnlParametersProvider.java:132)
at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createRoot(OgnlParametersProvider.java:108)
at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.getParametersFor(OgnlParametersProvider.java:90)
at br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.getParametersFor(ParametersInstantiatorInterceptor.java:83)
at br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.intercept(ParametersInstantiatorInterceptor.java:68)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.interceptor.InstantiateInterceptor.intercept(InstantiateInterceptor.java:42)
at br.com.caelum.vraptor.core.InstantiatedInterceptorHandler.execute(InstantiatedInterceptorHandler.java:47)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.interceptor.InterceptorListPriorToExecutionExtractor.intercept(InterceptorListPriorToExecutionExtractor.java:46)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.interceptor.FlashInterceptor.intercept(FlashInterceptor.java:80)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor.intercept(ResourceLookupInterceptor.java:67)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:56)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.core.DefaultRequestExecution.execute(DefaultRequestExecution.java:70)
at br.com.caelum.vraptor.VRaptor$1.insideRequest(VRaptor.java:92)
at br.com.caelum.vraptor.ioc.spring.SpringProvider.provideForRequest(SpringProvider.java:56)
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:89)
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:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String
at br.com.caelum.vraptor.http.ognl.VRaptorConvertersAdapter.convertValue(VRaptorConvertersAdapter.java:56)
at ognl.OgnlRuntime.getConvertedType(OgnlRuntime.java:1040)
at ognl.OgnlRuntime.getConvertedTypes(OgnlRuntime.java:1057)
at ognl.OgnlRuntime.getConvertedMethodAndArgs(OgnlRuntime.java:1083)
at ognl.OgnlRuntime.getAppropriateMethod(OgnlRuntime.java:1169)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1183)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)
at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
... 47 more
/-- Encapsulated exception ------------\
java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String
at br.com.caelum.vraptor.http.ognl.VRaptorConvertersAdapter.convertValue(VRaptorConvertersAdapter.java:56)
at ognl.OgnlRuntime.getConvertedType(OgnlRuntime.java:1040)
at ognl.OgnlRuntime.getConvertedTypes(OgnlRuntime.java:1057)
at ognl.OgnlRuntime.getConvertedMethodAndArgs(OgnlRuntime.java:1083)
at ognl.OgnlRuntime.getAppropriateMethod(OgnlRuntime.java:1169)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1183)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)
at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:279)
at ognl.ASTChain.setValueBody(ASTChain.java:227)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:279)
at ognl.Ognl.setValue(Ognl.java:737)
at ognl.Ognl.setValue(Ognl.java:783)
at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createViaOgnl(OgnlParametersProvider.java:132)
at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.createRoot(OgnlParametersProvider.java:108)
at br.com.caelum.vraptor.http.ognl.OgnlParametersProvider.getParametersFor(OgnlParametersProvider.java:90)
at br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.getParametersFor(ParametersInstantiatorInterceptor.java:83)
at br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.intercept(ParametersInstantiatorInterceptor.java:68)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.interceptor.InstantiateInterceptor.intercept(InstantiateInterceptor.java:42)
at br.com.caelum.vraptor.core.InstantiatedInterceptorHandler.execute(InstantiatedInterceptorHandler.java:47)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.interceptor.InterceptorListPriorToExecutionExtractor.intercept(InterceptorListPriorToExecutionExtractor.java:46)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.interceptor.FlashInterceptor.intercept(FlashInterceptor.java:80)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor.intercept(ResourceLookupInterceptor.java:67)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:56)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:65)
at br.com.caelum.vraptor.core.DefaultRequestExecution.execute(DefaultRequestExecution.java:70)
at br.com.caelum.vraptor.VRaptor$1.insideRequest(VRaptor.java:92)
at br.com.caelum.vraptor.ioc.spring.SpringProvider.provideForRequest(SpringProvider.java:56)
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:89)
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:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
\--------------------------------------/
11:41:44,765 DEBUG [OgnlParametersProvider] Applying produto.codIva with []
11:41:44,767 DEBUG [OgnlParametersProvider] Applying produto.perecivel with [0]
11:41:44,768 DEBUG [OgnlParametersProvider] Applying produto.produtoLoja[0].estoque with [33]
11:41:44,769 DEBUG [OgnlParametersProvider] cant find property for expression produto.produtoLoja[0].estoque ignoring
11:41:44,769 DEBUG [OgnlParametersProvider] Applying produto.codImposto with [0]
11:41:44,774 DEBUG [OgnlParametersProvider] Applying produto.codClassFiscal with []
11:41:44,777 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for ProdutosController.adiciona(Produto) as [produto]
11:41:44,777 DEBUG [ParametersInstantiatorInterceptor] Parameter values for [DefaultResourceMethod: ProdutosController.adicionaProdutosController.adiciona(Produto)] are [br.com.caelum.brvarejo.produto.Produto@18df2e4]
11:41:44,809 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExecuteMethodInterceptor
11:41:44,810 DEBUG [ExecuteMethodInterceptor] Invoking ProdutosController.adiciona(Produto)
Hibernate:
insert
into
dbbrvarejo.produto
(codCategoria, codClassFiscal, codCstA, codFamilia, codFigFiscal, codImposto, codIva, codKit, codMarca, codNutricao, codPauta, codPisCofins, codReceitaBal, codReceitaProd, codSetor, descCompleta, descCurta, embCompra, embReceb, embVenda, perecivel, peso, referencia, tembCompra, tembReceb, tembVenda, tipoProd)
values
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)