Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed

      Description

      On Redhat Linux, it seems that a custom theme is having issues with jruby and give the following error on every page access. Also there was an error at at startup time.

      Startup time error

      012-09-11 05:51:07,263 -0700 level=ERROR class=STDERR              java.lang.IllegalArgumentException: unsupported parameter type class [Ljava.lang.CharSequence;
      2012-09-11 05:51:07,265 -0700 level=ERROR class=STDERR                  at com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateBufferInvocation(AsmLibraryLoader.java:604)
      2012-09-11 05:51:07,265 -0700 level=ERROR class=STDERR                  at com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateMethod(AsmLibraryLoader.java:511)
      2012-09-11 05:51:07,265 -0700 level=ERROR class=STDERR                  at com.kenai.jaffl.provider.jffi.AsmLibraryLoader.generateInterfaceImpl(AsmLibraryLoader.java:223)
      2012-09-11 05:51:07,265 -0700 level=ERROR class=STDERR                  at com.kenai.jaffl.provider.jffi.AsmLibraryLoader.loadLibrary(AsmLibraryLoader.java:125)
      2012-09-11 05:51:07,265 -0700 level=ERROR class=STDERR                  at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:31)
      2012-09-11 05:51:07,266 -0700 level=ERROR class=STDERR                  at com.kenai.jaffl.provider.jffi.Provider.loadLibrary(Provider.java:25)
      2012-09-11 05:51:07,266 -0700 level=ERROR class=STDERR                  at com.kenai.jaffl.Library.loadLibrary(Library.java:76)
      2012-09-11 05:51:07,266 -0700 level=ERROR class=STDERR                  at org.jrub
      

      Every page access error

      2012-07-23 08:14:57,288 -0700 level=INFO  class=STDOUT              Unable to load Sass. Please install it with one of the following commands:
      2012-07-23 08:14:57,293 -0700 level=INFO  class=STDOUT                gem install sass --pre
      2012-07-23 08:14:57,294 -0700 level=ERROR class=STDERR              LoadError: no such file to load -- file:/usr/local/jboss-jee-5/server/default/deploy/ROOT.war/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.1.7/lib/sass/../sass
        require at org/jruby/RubyKernel.java:1038
        require at classpath:/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29
         (root) at file:/usr/local/jboss-jee-5/server/default/deploy/ROOT.war/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.1.7/lib/sass/version.rb:3
        require at org/jruby/RubyKernel.java:1038
        require at file:/usr/local/jboss-jee-5/server/default/deploy/ROOT.war/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.1.7/lib/sass/version.rb:29
         (root) at file:/usr/local/jboss-jee-5/server/default/deploy/ROOT.war/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.1.7/lib/sass.rb:9
        require at org/jruby/RubyKernel.java:1038
        require at file:/usr/local/jboss-jee-5/server/default/deploy/ROOT.war/WEB-INF/lib/ruby-gems.jar!/gems/sass-3.1.7/lib/sass.rb:29
         (root) at file:/usr/local/jboss-jee-5/server/default/deploy/ROOT.war/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.11.5/lib/compass/dependencies.rb:6
        require at org/jruby/RubyKernel.java:1038
         (root) at file:/usr/local/jboss-jee-5/server/default/deploy/ROOT.war/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.11.5/lib/compass/dependencies.rb:5
           each at org/jruby/RubyArray.java:1603
         (root) at file:/usr/local/jboss-jee-5/server/default/deploy/ROOT.war/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.11.5/lib/compass.rb:4
        require at org/jruby/RubyKernel.java:1038
         (root) at file:/usr/local/jboss-jee-5/server/default/deploy/ROOT.war/WEB-INF/lib/ruby-gems.jar!/gems/compass-0.11.5/lib/compass.rb:1
      

      There were suggestions for exploding the ruby-gems jar but none of them worked. I did some research and saw some issue fixed in jruby 1.6.6 around encoding, so tried replacing the jruby.jar shipped with 6.1 (1.6.4) with the encoding issues fixed jar (1.6.5) you need to use the jruby-complete-1.6.5.jar

      Upon doing this both issues went away.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 14 weeks, 5 days ago