Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      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.

        Issue Links

          Activity

          Hide
          Ryan Park added a comment - - edited

          Change: update jruby.jar to jruby-complete-1.6.5.jar

          QA: How to test:
          1. Deploy zoe-resort-theme and verify that the CSS is correctly rendering the theme.

          2. Use the Script feature in Server Administration and attempt to execute for the language Ruby:

          com.liferay.portal.service.UserLocalServiceUtil.updatePasswordReset(###, true)
          

          Where ### is a userId. This should result in that user having to change their password, if successful.

          Show
          Ryan Park added a comment - - edited Change: update jruby.jar to jruby-complete-1.6.5.jar QA: How to test: 1. Deploy zoe-resort-theme and verify that the CSS is correctly rendering the theme. 2. Use the Script feature in Server Administration and attempt to execute for the language Ruby: com.liferay.portal.service.UserLocalServiceUtil.updatePasswordReset(###, true ) Where ### is a userId. This should result in that user having to change their password, if successful.
          Hide
          Michael Saechang added a comment -

          Committed on:
          Portal 6.2.x GIT ID: f6b196f85f82d5a29e17e31584837a74a5411dcf.

          Show
          Michael Saechang added a comment - Committed on: Portal 6.2.x GIT ID: f6b196f85f82d5a29e17e31584837a74a5411dcf.
          Hide
          Paul Piao (Inactive) added a comment - - edited

          PASSED Manual Testing using the following steps:

          1. Update jruby.jar to jruby-complete-1.6.5.jar.
          2. Start Jboss.
          3. Deploy zoe-resort-theme.
          4. Go to control panel.
          5. Go to Script in Server Administration.
          6. Select Ruby in Language.
            • Add Script "com.liferay.portal.service.UserLocalServiceUtil.updatePasswordReset(userID, true)".
          7. Check user can change password or can not change password.

          Reproduced on:
          Jboss 7.0.2 + MySQL 5. Portal 6.1.1 CE GA1.

          You can execute script, but can not automatic jump to change password page.

          Fixed on:
          Jboss 7.1.1 + MySQL 5. Portal 6.1.x EE GIT ID: b5d391ef4000372e20aaeb11faaf7cb534aaec19.
          Jboss 7.1.1 + MySQL 5. Portal 6.2.x GIT ID: ba03a80f588dcfccfaa674fe4dfbe872e32b35cf.

          It will automatic jump to change password page.

          Show
          Paul Piao (Inactive) added a comment - - edited PASSED Manual Testing using the following steps: Update jruby.jar to jruby-complete-1.6.5.jar. Start Jboss. Deploy zoe-resort-theme. Go to control panel. Go to Script in Server Administration. Select Ruby in Language. Add Script "com.liferay.portal.service.UserLocalServiceUtil.updatePasswordReset(userID, true)". Check user can change password or can not change password. Reproduced on: Jboss 7.0.2 + MySQL 5. Portal 6.1.1 CE GA1. You can execute script, but can not automatic jump to change password page. Fixed on: Jboss 7.1.1 + MySQL 5. Portal 6.1.x EE GIT ID: b5d391ef4000372e20aaeb11faaf7cb534aaec19. Jboss 7.1.1 + MySQL 5. Portal 6.2.x GIT ID: ba03a80f588dcfccfaa674fe4dfbe872e32b35cf. It will automatic jump to change password page.
          Hide
          Edward Gonzales added a comment -

          Hello everyone! We are in the process of removing component "Third Party Libraries" from LPS. Please make the necessary adjustments to your filters. Thanks!

          Show
          Edward Gonzales added a comment - Hello everyone! We are in the process of removing component "Third Party Libraries" from LPS. Please make the necessary adjustments to your filters. Thanks!
          Hide
          Edward Gonzales added a comment -

          Hello everyone! We are in the process of moving component "Theme" to "Theme > Dev" in LPS. Please make the necessary adjustments to your filters. Thanks!

          Show
          Edward Gonzales added a comment - Hello everyone! We are in the process of moving component "Theme" to "Theme > Dev" in LPS. Please make the necessary adjustments to your filters. Thanks!

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 6 weeks ago

                Development

                  Structure Helper Panel