5 Replies Latest reply on Jun 9, 2008 7:09 AM by Ilya Shaikovsky

    Exception: Parameter "size" for convert from HTML to java ca

    Khaled Al-Shehri Newbie

      Hi all,

      I'm facing this exception in my application. please help me to fix it

      App Server: JBoss 4.2.2
      RichFaces:
      richfaces-api-3.2.1.GA.jar
      richfaces-impl-3.2.1.GA.jar
      richfaces-ui-3.2.1.GA.jar

      Exception:

      12:17:27,546 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      java.lang.IllegalArgumentException: Parameter "size" for convert from HTML to java can not be decoded: [11px], reason: Unparseable number: "11px"
       at org.ajax4jsf.util.HtmlDimensions.decode(HtmlDimensions.java:65)
       at org.richfaces.renderkit.html.images.BaseControlBackgroundImage.getHeight(BaseControlBackgroundImage.java:69)
       at org.richfaces.renderkit.html.images.BaseControlBackgroundImage.getHeight(BaseControlBackgroundImage.java:76)
       at org.richfaces.renderkit.html.images.BaseControlBackgroundImage.saveData(BaseControlBackgroundImage.java:94)
       at org.richfaces.renderkit.html.BaseGradient.getDataToStore(BaseGradient.java:252)
       at org.ajax4jsf.resource.InternetResourceBase.getUri(InternetResourceBase.java:218)
       at org.ajax4jsf.renderkit.compiler.ResourceElement.getString(ResourceElement.java:114)
       at org.ajax4jsf.renderkit.compiler.ClassElement.getString(ClassElement.java:94)
       at org.ajax4jsf.renderkit.compiler.ClassElement.encode(ClassElement.java:59)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:105)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:105)
       at org.ajax4jsf.renderkit.compiler.RootElement.encode(RootElement.java:64)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:73)
       at org.ajax4jsf.resource.TemplateCSSRenderer.send(TemplateCSSRenderer.java:91)
       at org.ajax4jsf.resource.InternetResourceBase.send(InternetResourceBase.java:376)
       at org.ajax4jsf.resource.ResourceLifecycle.sendResource(ResourceLifecycle.java:221)
       at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:146)
       at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:334)
       at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
       at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:195)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:486)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at com.elm.carportal.web.filters.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:48)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       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:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       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(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: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(Thread.java:619)