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

Build-taglibs throws ExceptionInInitializerError

    Details

      Description

      Reproduced
      On ee-6.2.x GitId: 63a0d3b1f5830e5292c9e35ec8e21b58f3f4849e
      and on ee-6.1.x GitId: 24b31e2eb31e11544899e0f7847253bdb0c90dda
      and on ee-6.0.x GitId: 9381a35caeb71a2500be717803b33f1c9427af88

      Steps to reproduce

      1. Make sure to run "ant all" prior to testing
      2. Open a command line in the 6.2.x repository
      3. cd into util-taglib
      4. run the command "ant build-taglibs"

      Expected result:
      Expected to the build to run successfully and completely

      Actual result for 6.2.x and 6.1.x:
      The build ends claiming "BUILD SUCCESSFUL" however an ExceptionInInitializerError is thrown without completing the taglibs build

      build-taglibs:
         [delete] Deleting: c:\Repos\liferay-portal-ee-6.2.x\util-taglib\src\META-INF\aui.tld
         [delete] Deleting: c:\Repos\liferay-portal-ee-6.2.x\util-taglib\src\META-INF\ddm.tld
           [java] Loading file:/C:/Repos/liferay-portal-ee-6.2.x/portal-impl/classes/system.properties
           [java] Exception in thread "main" java.lang.ExceptionInInitializerError
           [java]     at com.liferay.alloy.tools.tagbuilder.TagBuilder.<init>(TagBuilder.java:76)
           [java]     at com.liferay.alloy.tools.tagbuilder.TagBuilder.main(TagBuilder.java:65)
           [java] Caused by: java.lang.NullPointerException
           [java]     at com.liferay.portal.kernel.util.PropsUtil.getArray(PropsUtil.java:40)
           [java]     at com.liferay.portal.kernel.xml.SAXReaderUtil.<clinit>(SAXReaderUtil.java:298)
           [java]     ... 2 more
           [java] Java Result: 1
      
      BUILD SUCCESSFUL
      Total time: 3 seconds
      

      Actual result for 6.0.x:
      The build ends claiming "BUILD SUCCESSFUL" however a NullPointerException and NoSuchMethodError exceptions are thrown without completing the taglibs build

      build-taglibs:
           [java] Apr 22, 2015 9:27:03 AM com.liferay.portal.kernel.log.Jdk14LogImpl error
           [java] SEVERE: java.lang.NullPointerException
           [java] java.lang.NullPointerException
           [java]     at com.liferay.portal.kernel.util.MethodCache._get(MethodCache.java:110)
           [java]     at com.liferay.portal.kernel.util.MethodCache.get(MethodCache.java:62)
           [java]     at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:63)
           [java]     at com.liferay.portal.kernel.util.PortalClassInvoker.invoke(PortalClassInvoker.java:42)
           [java]     at com.liferay.portal.kernel.util.PropsUtil.getArray(PropsUtil.java:68)
           [java]     at com.liferay.portal.kernel.xml.SAXReaderUtil.<clinit>(SAXReaderUtil.java:266)
           [java]     at com.liferay.alloy.tools.tagbuilder.TagBuilder.<init>(TagBuilder.java:39)
           [java]     at com.liferay.alloy.tools.tagbuilder.TagBuilder.main(TagBuilder.java:85)
           [java]
           [java] Exception in thread "main" java.lang.NoSuchMethodError: com.liferay.portal.kernel.xml.SAXReaderUtil.setSAXReader(Lcom/liferay/portal/kernel/xml/SAXReader;)V
           [java]     at com.liferay.alloy.tools.tagbuilder.TagBuilder.<init>(TagBuilder.java:40)
           [java]     at com.liferay.alloy.tools.tagbuilder.TagBuilder.main(TagBuilder.java:85)
           [java] Java Result: 1
      
      BUILD SUCCESSFUL
      Total time: 2 seconds
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jenny.chen Jenny Chen
                Reporter:
                michael.prigge Michael Prigge
                Participants of an Issue:
                Recent user:
                Brian Wulbern
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 13 weeks, 1 day ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.3 CE GA4
                  6.2.X EE