1 Reply Latest reply on Mar 11, 2007 11:32 AM by Sergey Smirnov

    Transparent in Skin css exceptions

    Oren Kleks Newbie

      transparent is a valid CSS value for color. However It causes the following exception.
      I would like to mention that empty string although causes similar exception.

      Thanks,
      Oren

      ERROR | 2007-03-11 13:06:16,803 | http-8080-Processor24 | redsea.conf.jsp | JSP Error page Parameter "color" for convert from HTML to java can not be decoded: [transparent;], reason: Fo
      java.lang.IllegalArgumentException: Parameter "color" for convert from HTML to java can not be decoded: [transparent;], reason: For input string: "transparent;"
      at org.ajax4jsf.framework.util.HtmlColor.decode(HtmlColor.java:73)
      at org.richfaces.renderkit.html.BaseGradient$Data.getColorValueParameter(BaseGradient.java:155)
      at org.richfaces.renderkit.html.BaseGradient$Data.(BaseGradient.java:147)
      at org.richfaces.renderkit.html.BaseGradient.getDataToStore(BaseGradient.java:128)
      at org.ajax4jsf.framework.resource.InternetResourceBase.getUri(InternetResourceBase.java:211)
      at org.ajax4jsf.framework.renderer.compiler.ResourceElement.getString(ResourceElement.java:83)
      at org.ajax4jsf.framework.renderer.compiler.ClassElement.getString(ClassElement.java:95)
      at org.ajax4jsf.framework.renderer.compiler.ClassElement.encode(ClassElement.java:60)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:104)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:104)
      at org.ajax4jsf.framework.renderer.compiler.RootElement.encode(RootElement.java:64)
      at org.ajax4jsf.framework.renderer.compiler.ElementBase.encode(ElementBase.java:72)
      at org.ajax4jsf.framework.resource.TemplateCSSRenderer.send(TemplateCSSRenderer.java:79)
      at org.ajax4jsf.framework.resource.InternetResourceBase.send(InternetResourceBase.java:369)
      at org.ajax4jsf.framework.resource.ResourceLifecycle.send(ResourceLifecycle.java:86)
      at org.ajax4jsf.framework.resource.InternetResourceService.sendResource(InternetResourceService.java:213)
      at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:183)
      at org.ajax4jsf.framework.resource.InternetResourceService.serviceResource(InternetResourceService.java:118)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:207)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
      at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
      at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
      at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
      at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
      at redsea.conf.filter.SessionExpiredFilter.doFilter(SessionExpiredFilter.java:80)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
      at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
      at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
      at redsea.conf.filter.LoginFilter.doFilter(LoginFilter.java:63)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
      at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
      at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:595)

        • 1. Re: Transparent in Skin css exceptions
          Sergey Smirnov Master

          It is valid for CSS. You are right. However, according to the exception, we speak about generating the gradient image. GIF uses only bit for transparency. I.e. the gradation is not allowed. PNG can be used because IE6 does not support it correctly.

          Where you use 'transparent' that causes this exception? It is not clear from your post.