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

Unit test: Remote Elasticsearch with incorrect Context ClassLoader goes NPE in java.util.logging.Logger.getAnonymousLogger()

Details

    Description

      [exec] Exception in thread "Elasticsearch initialization thread" java.lang.NullPointerException
           [exec]     at java.util.logging.Logger.doSetParent(Logger.java:2070)
           [exec]     at java.util.logging.Logger.getAnonymousLogger(Logger.java:644)
           [exec]     at java.util.logging.Logger.getAnonymousLogger(Logger.java:603)
           [exec]     at org.elasticsearch.common.inject.InjectorShell$LoggerFactory.get(InjectorShell.java:240)
           [exec]     at org.elasticsearch.common.inject.InjectorShell$LoggerFactory.get(InjectorShell.java:235)
           [exec]     at org.elasticsearch.common.inject.InjectorImpl$4$1.call(InjectorImpl.java:762)
           [exec]     at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:818)
           [exec]     at org.elasticsearch.common.inject.InjectorImpl$4.get(InjectorImpl.java:757)
           [exec]     at org.elasticsearch.common.inject.InheritingState.makeAllBindingsToEagerSingletons(InheritingState.java:157)
           [exec]     at org.elasticsearch.common.inject.InjectorImpl.readOnlyAllSingletons(InjectorImpl.java:847)
           [exec]     at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:46)
           [exec]     at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:191)
           [exec]     at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:262)
           [exec]     at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:128)
           [exec]     at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:114)
           [exec]     at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:104)
           [exec]     at com.liferay.portal.search.elasticsearch6.internal.connection.RemoteElasticsearchConnection.createTransportClient(RemoteElasticsearchConnection.java:144)
           [exec]     at com.liferay.portal.search.elasticsearch6.internal.connection.RemoteElasticsearchConnection.createClient(RemoteElasticsearchConnection.java:119)
           [exec]     at com.liferay.portal.search.elasticsearch6.internal.connection.BaseElasticsearchConnection.connect(BaseElasticsearchConnection.java:65)
           [exec]     at com.liferay.portal.search.elasticsearch6.internal.connection.ElasticsearchConnectionManager.connect(ElasticsearchConnectionManager.java:51)
           [exec]     at com.liferay.portal.search.elasticsearch6.internal.ElasticsearchEngineConfigurator.lambda$initialize$0(ElasticsearchEngineConfigurator.java:91)
           [exec]     at java.lang.Thread.run(Thread.java:745)

       

      Attachments

        Issue Links

          Activity

            People

              support-lep@liferay.com SE Support
              andre.oliveira André Ricardo Barreto de Oliveira
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Development End Date:

                Packages

                  Version Package