Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-23289

Configuration.properties contains configuration and internationalization values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.8.0, 2.8.1, 2.8.2, 2.9.0, 2.9.1
    • Fix Version/s: 2.9.2
    • Component/s: Internationalization, JSF
    • Labels:
    • 2.9 Status:
      Resolved

      Description

      jsf/jsf-widgets/src/java/org/sakaiproject/jsf/Configuration.properties contains values that should be translated and others that shouldn't. When numerical values like the one for inputRichTextDefaultTextareaRows gets an extra space, you get the following:
      2013-02-26 14:39:51,131 ERROR localhost-startStop-1 org.apache.myfaces.config.FacesConfigurator - failed to configure class org.sakaiproject.jsf.renderer.InputRichTextRenderer
      java.lang.ExceptionInInitializerError
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at java.lang.Class.newInstance0(Class.java:355)
      at java.lang.Class.newInstance(Class.java:308)
      at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:277)
      at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:268)
      at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:754)
      at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:149)
      at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
      at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.NumberFormatException: For input string: "4 "
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:458)
      at java.lang.Integer.parseInt(Integer.java:499)
      at org.sakaiproject.jsf.renderer.InputRichTextRenderer.<clinit>(InputRichTextRenderer.java:113)

      Because of this:
      DEFAULT_ROWS = Integer.parseInt(cr.get("inputRichTextDefaultTextareaRows"));

      Check SAK-20809 for a similar problem with inputRichTextDefaultHeightPx.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  jean-francois.leveque@upmc.fr Jean-François Lévêque
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code