Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-40187

Ubuntu - SassToCssBuilder NullPointerException when building plugins

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.2.0 CE RC1, 6.2.0 CE RC2
    • Fix Version/s: 6.2.0 CE RC1
    • Labels:
      None
    • Environment:
      Ubuntu 13.04. Tomcat 7.0.40 + MySQL 5. Portal master GIT ID: a245fdb4a8bcb1d20922a96d5d1dac3c0cca767b.
      Plugins master GIT ID: b8e28c715b01dc9bf846c7f507a43915f6c519f9.
    • Fix Priority:
      3

      Description

      This is reproducible in Ubuntu 13.04 and 12.10. This is not reproducible in Windows 7.

      Steps to reproduce:

      1. Run "ant all" for any plugin (e.g. marketplace-portlet, chat-portlet)
      2. The following will appear
        • build-css:
               [java] Loading jar:file:/home/socialoffice/Desktop/jenkins/test-ee/liferay-portal-6.2.10-ee-rc1/tomcat-7.0.40/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
               [java] Loading jar:file:/home/socialoffice/Desktop/jenkins/test-ee/liferay-portal-6.2.10-ee-rc1/tomcat-7.0.40/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
               [java] Loading file:/home/socialoffice/Desktop/jenkins/test-ee/liferay-portal-6.2.10-ee-rc1/tomcat-7.0.40/webapps/ROOT/WEB-INF/classes/portal-ext.properties
               [java] java.lang.NullPointerException
               [java] 	at com.liferay.portal.tools.SassToCssBuilder._parseSassDirectory(SassToCssBuilder.java:222)
               [java] 	at com.liferay.portal.tools.SassToCssBuilder.<init>(SassToCssBuilder.java:144)
               [java] 	at com.liferay.portal.tools.SassToCssBuilder.main(SassToCssBuilder.java:94)

      Expected result:
      There shouldn't be any NPE's when building plugins.

      Actual result:
      There is a NPE related to the SassToCssBuilder.java file.

      Full console output:

      Buildfile: /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/portlets/marketplace-portlet/build.xml
      
      all:
      
      clean:
         [delete] Deleting directory /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/portlets/marketplace-portlet/docroot/WEB-INF/classes
         [delete] Deleting: /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/dist/marketplace-portlet-6.2.0.1.war
      
      clean-portal-dependencies:
      
      compile:
      
      merge:
      
      compile-import-shared:
      
      compile:
      
      compile-import-shared:
      
      compile-java:
      
      jar:
          [mkdir] Created dir: /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/portlets/marketplace-portlet/docroot/WEB-INF/classes
           [copy] Copying 2 files to /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/portlets/marketplace-portlet/docroot/WEB-INF/lib
           [copy] Copying 1 file to /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/portlets/marketplace-portlet/docroot/WEB-INF/tld
           [copy] Copying 5 files to /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/portlets/marketplace-portlet/docroot/WEB-INF/lib
      
      compile-java:
           [copy] Copying 99 files to /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/portlets/marketplace-portlet/docroot/WEB-INF/classes
           [copy] Copied 24 empty directories to 18 empty directories under /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/portlets/marketplace-portlet/docroot/WEB-INF/classes
          [javac] Compiling 37 source files to /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/portlets/marketplace-portlet/docroot/WEB-INF/classes
      
      merge:
      
      war:
      
      build-css:
           [java] Loading jar:file:/home/socialoffice/Desktop/jenkins/test-ee/liferay-portal-6.2.10-ee-rc1/tomcat-7.0.40/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
           [java] Loading jar:file:/home/socialoffice/Desktop/jenkins/test-ee/liferay-portal-6.2.10-ee-rc1/tomcat-7.0.40/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
           [java] Loading file:/home/socialoffice/Desktop/jenkins/test-ee/liferay-portal-6.2.10-ee-rc1/tomcat-7.0.40/webapps/ROOT/WEB-INF/classes/portal-ext.properties
           [java] java.lang.NullPointerException
           [java] 	at com.liferay.portal.tools.SassToCssBuilder._parseSassDirectory(SassToCssBuilder.java:222)
           [java] 	at com.liferay.portal.tools.SassToCssBuilder.<init>(SassToCssBuilder.java:144)
           [java] 	at com.liferay.portal.tools.SassToCssBuilder.main(SassToCssBuilder.java:94)
      
      compile:
      
      merge:
      
      compile-import-shared:
      
      compile:
      
      compile-import-shared:
      
      compile-java:
      
      jar:
      
      compile-java:
      
      merge:
      
      build-common-plugin.war:
      
      clean-portal-dependencies:
            [zip] Building zip: /home/socialoffice/Desktop/jenkins/liferay-plugins-ee/dist/marketplace-portlet-6.2.0.1.war
      
      deploy:
           [copy] Copying 1 file to /home/socialoffice/liferay/deploy
      
      BUILD SUCCESSFUL
      Total time: 11 seconds
      

        Attachments

          Activity

            People

            • Assignee:
              brian.chiu Brian Chiu (Inactive)
              Reporter:
              brian.chiu Brian Chiu (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 50 weeks ago

                Packages

                Version Package
                6.2.0 CE RC1