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

Unit tests failing with Solr with java.lang.NoClassDefFoundError

    Details

    • Fix Priority:
      4

      Description

      Unit tests are failing within the modules-unit-jdk8 batch when running test suite ci:test:search-solr

      Some example stacktraces (not comprehensive):

      java.lang.NoClassDefFoundError: com/liferay/petra/concurrent/ConcurrentReferenceKeyHashMap
      
      java.lang.NoClassDefFoundError: Could not initialize class com.liferay.portal.kernel.util.ProxyUtil
      
      java.lang.NoClassDefFoundError: com/liferay/petra/memory/FinalizeAction
      

      Failing tests:
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testProximityQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testWildcardQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testContainsOnlySupportedQueryWithNegation
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testContainsOnlySupportedQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testContainsCombinedSupportedQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testFolderQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testContainsCombinedSupportedWildcardQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testBooleanQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testPhraseQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testSubfolderQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testPrefixQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testWildcardFieldQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testContainsOnlySupportedQueryWithNegationPhrase
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testExactFilenameQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testContainsOnlySupportedQueryMultipleKeywords
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testRangeQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testContainsOnlySupportedQueryWithConjunction
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testFuzzyQuery
      com.liferay.document.library.repository.cmis.search.BaseCmisSearchQueryBuilderTest.testContainsOnlySupportedWithApostrophe
      com.liferay.document.library.internal.search.SearchResultUtilDLFileEntryTest.testDLFileEntry
      com.liferay.document.library.internal.search.SearchResultUtilDLFileEntryTest.testDLFileEntryAttachment
      com.liferay.document.library.internal.search.SearchResultUtilDLFileEntryTest.testDLFileEntryMissing
      com.liferay.document.library.internal.search.SearchResultUtilDLFileEntryTest.testDLFileEntryWithBrokenIndexer
      com.liferay.journal.search.SearchResultUtilJournalArticleTest.testJournalArticle
      com.liferay.journal.search.SearchResultUtilJournalArticleTest.testJournalArticleWithDefectiveIndexer
      com.liferay.message.boards.comment.internal.search.SearchResultUtilMBMessageTest.testMBMessage
      com.liferay.message.boards.comment.internal.search.SearchResultUtilMBMessageTest.testMBMessageAttachment
      com.liferay.message.boards.comment.internal.search.SearchResultUtilMBMessageTest.testTwoDocumentsWithSameAttachmentOwner
      com.liferay.portal.search.admin.web.internal.display.context.FieldMappingsDisplayContextTest.testGetIndexes
      com.liferay.portal.search.admin.web.internal.display.context.FieldMappingsDisplayContextTest.testGetSelectedIndexNameDefaultCompany
      com.liferay.portal.search.admin.web.internal.display.context.FieldMappingsDisplayContextTest.testGetSelectedIndexNameDefaultFirst
      com.liferay.portal.search.admin.web.internal.display.context.FieldMappingsDisplayContextTest.testGetSelectedIndexName
      com.liferay.portal.search.admin.web.internal.display.context.SearchAdminDisplayContextTest.testIsIndexInformationAvailable
      com.liferay.portal.search.admin.web.internal.display.context.SearchAdminDisplayContextTest.testGetTabFieldMappingsNoIndexInformation
      com.liferay.portal.search.admin.web.internal.display.context.SearchAdminDisplayContextTest.testGetTabDefault
      com.liferay.portal.search.admin.web.internal.display.context.SearchAdminDisplayContextTest.testGetNavigationItemListWithoutIndexInformation
      com.liferay.portal.search.admin.web.internal.display.context.SearchAdminDisplayContextTest.testGetNavigationItemListWithIndexInformation
      com.liferay.portal.search.admin.web.internal.display.context.SearchAdminDisplayContextTest.testGetTabIndexActions
      com.liferay.portal.search.admin.web.internal.display.context.SearchAdminDisplayContextTest.testGetTabFieldMappings
      com.liferay.portal.search.admin.web.internal.display.context.SearchAdminDisplayContextTest.testGetTabUnavailable
      com.liferay.portal.search.admin.web.internal.display.context.SearchAdminDisplayContextTest.testIsIndexInformationAvailableFalse
      com.liferay.portal.search.internal.document.DocumentImplTest.testAddDate
      com.liferay.portal.search.internal.document.DocumentImplTest.testAddDateSortable
      com.liferay.portal.search.internal.result.SearchResultUtilTest.initializationError

      Reproduced on:
      Portal master Git commit: 44069c50e5236df066f705e5d88b04559f7e5883

      Commit range failure was introduced:
      https://github.com/liferay/liferay-portal/compare/ff3286fd16693d3660fe117d8001def232fe3c90...44069c50e5236df066f705e5d88b04559f7e5883

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              joshua.chong Joshua Chong
              Participants of an Issue:
              Recent user:
              Joshua Chong
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                11 weeks ago

                Packages

                Version Package