the stack trace is: java.lang.IllegalArgumentException: Cannot convert 20 of type class java.lang.Integer to class java.lang.Number org.apache.el.lang.ELSupport.coerceToNumber(ELSupport.java:252) org.apache.el.lang.ELSupport.coerceToNumber(ELSupport.java:265) org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:353) org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:188) com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233) com.sun.facelets.tag.TagAttribute.getInt(TagAttribute.java:100) com.sun.facelets.tag.jstl.core.ForEachHandler.getEnd(ForEachHandler.java:216) com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:110) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64) com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131) com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:310) com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:280) com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314) com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248) com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294) com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273) com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:144) com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113) com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524) com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567) org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108) org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147) org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276) org.ajax4jsf.Filter.doFilter(Filter.java:175) br.gov.pbh.mcp.is.filter.EncodingFilter.doFilter(EncodingFilter.java:33) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) And the test is simple, just put one c:foreach in a xhtml page like this: <c:forEach begin="1" end="#{unidadeAdm.tamCk}"> and the tamCk is a property of unidadeAdm bean. In tomcat 6.0.18 you will se the above exception! tranks for the answer! On Fri, Mar 27, 2009 at 7:04 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Paulo, > > On 3/27/2009 5:28 PM, Paulo Vitor wrote: > > I have a problem with tomcat 6.0.18, so, before I used tomcat 6.0.16 and > > everything works fine, but when I upgrade to tomcat 6.0.18 the line > > <c:forEach begin="1" end="#{unidadeAdm.tamCk}"> gives me a exception. > > > > Cannot convert 20 of type class java.lang.Integer to class > java.lang.Number. > > Interesting. I checked the changelog > (http://tomcat.apache.org/tomcat-6.0-doc/changelog.html) and it looks > like this might be the problem you're seeing: > https://issues.apache.org/bugzilla/show_bug.cgi?id=44766 > > Perhaps this is a regression? > > Can you please post the entire stack trace? > > Also, can you create a small test case that reproduces the problem, but > does not require your entire application to test? > > > Thanks and sorry for the bad english. > > If you provide a Tomcat version number and a decent explanation of the > problem (which you did), we'd be happy to read your bad English ;) > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAknNTXIACgkQ9CaO5/Lv0PC62QCgovYBWc2ILMHg6zsn5KFKAffy > FjEAnjhfy3j7sjQh4cdyK8WJ8e/TBVFL > =nQzs > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >