Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-2705

Going to Minium Demo site throws error on 7.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Longer Reproducible
    • Affects Version/s: 2.0.7
    • Fix Version/s: None
    • Labels:
      None

      Description

      Description: After creating a Minium Demo Site, going to the site will throw a console error.

      2020-01-27 22:26:52.784 ERROR [http-nio-8080-exec-9][ElasticsearchIndexSearcher:169] java.lang.RuntimeException: org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[4lWtylU2QgmjkJ9nYD97Lg][liferay-20101][0]: RemoteTransportException[[4lWtylU][127.0.0.1:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[failed to create query: {_  "bool" : {_    "must" : [_      {_        "match_all" : {_          "boost" : 1.0_        }_      }_    ],_    "filter" : [_      {_        "bool" : {_          "must" : [_            {_              "bool" : {_                "should" : [_                  {_                    "bool" : {_                      "must" : [_                        {_                          "term" : {_                            "entryClassName" : {_                              "value" : "com.liferay.commerce.discount.model.CommerceDiscount",_                              "boost" : 1.0_                            }_                          }_                        },_                        {_                          "term" : {_                            "active" : {_                              "value" : "true",_                              "boost" : 1.0_                            }_                          }_                        },_                        {_                          "term" : {_                            "targetType" : {_                              "value" : "APPLY_TO_PRODUCT",_                              "boost" : 1.0_                            }_                          }_                        },_                        {_                          "terms" : {_                            "status" : [_                              "0"_                            ],_                            "boost" : 1.0_                          }_                        },_                        {_                          "bool" : {_                            "should" : [_                              {_                                "term" : {_                                  "commerceAccountGroupIds_required_matches" : {_                                    "value" : "0",_                                    "boost" : 1.0_                                  }_                                }_                              },_                              {_                                "terms_set" : {_                                  "commerceAccountGroupIds" : {_                                    "terms" : [_                                      "37722",_                                      "37724"_                                    ],_                                    "minimum_should_match_field" : "commerceAccountGroupIds_required_matches",_                                    "boost" : 1.0_                                  }_                                }_                              }_                            ],_                            "adjust_pure_negative" : true,_                            "boost" : 1.0_                          }_                        },_                        {_                          "bool" : {_                            "should" : [_                              {_                                "terms" : {_                                  "target_asset_category_ids" : [_                                    "37619"_                                  ],_                                  "boost" : 1.0_                                }_                              },_                              {_                                "bool" : {_                                  "must_not" : [_                                    {_                                      "exists" : {_                                        "field" : "target_asset_category_ids",_                                        "boost" : 1.0_                                      }_                                    }_                                  ],_                                  "adjust_pure_negative" : true,_                                  "boost" : 1.0_                                }_                              }_                            ],_                            "adjust_pure_negative" : true,_                            "boost" : 1.0_                          }_                        },_                        {_                          "bool" : {_                            "should" : [_                              {_                                "term" : {_                                  "target_product_ids" : {_                                    "value" : "37833",_                                    "boost" : 1.0_                                  }_                                }_                              },_                              {_                                "bool" : {_                                  "must_not" : [_                                    {_                                      "exists" : {_                                        "field" : "target_product_ids",_                                        "boost" : 1.0_                                      }_                                    }_                                  ],_                                  "adjust_pure_negative" : true,_                                  "boost" : 1.0_                                }_                              }_                            ],_                            "adjust_pure_negative" : true,_                            "boost" : 1.0_                          }_                        }_                      ],_                      "adjust_pure_negative" : true,_                      "boost" : 1.0_                    }_                  }_                ],_                "adjust_pure_negative" : true,_                "boost" : 1.0_              }_            }_          ],_          "adjust_pure_negative" : true,_          "boost" : 1.0_        }_      }_    ],_    "adjust_pure_negative" : true,_    "boost" : 1.0_  }_}]; nested: IllegalArgumentException[Fielddata is disabled on text fields by default. Set fielddata=true on [commerceAccountGroupIds_required_matches] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.]; } [Sanitized]
      java.lang.RuntimeException: org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[4lWtylU2QgmjkJ9nYD97Lg][liferay-20101][0]: RemoteTransportException[[4lWtylU][127.0.0.1:9300][indices:data/read/search[phase/query]]]; nested: QueryShardException[failed to create query: {_  "bool" : {_    "must" : [_      {_        "match_all" : {_          "boost" : 1.0_        }_      }_    ],_    "filter" : [_      {_        "bool" : {_          "must" : [_            {_              "bool" : {_                "should" : [_                  {_                    "bool" : {_                      "must" : [_                        {_                          "term" : {_                            "entryClassName" : {_                              "value" : "com.liferay.commerce.discount.model.CommerceDiscount",_                              "boost" : 1.0_                            }_                          }_                        },_                        {_                          "term" : {_                            "active" : {_                              "value" : "true",_                              "boost" : 1.0_                            }_                          }_                        },_                        {_                          "term" : {_                            "targetType" : {_                              "value" : "APPLY_TO_PRODUCT",_                              "boost" : 1.0_                            }_                          }_                        },_                        {_                          "terms" : {_                            "status" : [_                              "0"_                            ],_                            "boost" : 1.0_                          }_                        },_                        {_                          "bool" : {_                            "should" : [_                              {_                                "term" : {_                                  "commerceAccountGroupIds_required_matches" : {_                                    "value" : "0",_                                    "boost" : 1.0_                                  }_                                }_                              },_                              {_                                "terms_set" : {_                                  "commerceAccountGroupIds" : {_                                    "terms" : [_                                      "37722",_                                      "37724"_                                    ],_                                    "minimum_should_match_field" : "commerceAccountGroupIds_required_matches",_                                    "boost" : 1.0_                                  }_                                }_                              }_                            ],_                            "adjust_pure_negative" : true,_                            "boost" : 1.0_                          }_                        },_                        {_                          "bool" : {_                            "should" : [_                              {_                                "terms" : {_                                  "target_asset_category_ids" : [_                                    "37619"_                                  ],_                                  "boost" : 1.0_                                }_                              },_                              {_                                "bool" : {_                                  "must_not" : [_                                    {_                                      "exists" : {_                                        "field" : "target_asset_category_ids",_                                        "boost" : 1.0_                                      }_                                    }_                                  ],_                                  "adjust_pure_negative" : true,_                                  "boost" : 1.0_                                }_                              }_                            ],_                            "adjust_pure_negative" : true,_                            "boost" : 1.0_                          }_                        },_                        {_                          "bool" : {_                            "should" : [_                              {_                                "term" : {_                                  "target_product_ids" : {_                                    "value" : "37833",_                                    "boost" : 1.0_                                  }_                                }_                              },_                              {_                                "bool" : {_                                  "must_not" : [_                                    {_                                      "exists" : {_                                        "field" : "target_product_ids",_                                        "boost" : 1.0_                                      }_                                    }_                                  ],_                                  "adjust_pure_negative" : true,_                                  "boost" : 1.0_                                }_                              }_                            ],_                            "adjust_pure_negative" : true,_                            "boost" : 1.0_                          }_                        }_                      ],_                      "adjust_pure_negative" : true,_                      "boost" : 1.0_                    }_                  }_                ],_                "adjust_pure_negative" : true,_                "boost" : 1.0_              }_            }_          ],_          "adjust_pure_negative" : true,_          "boost" : 1.0_        }_      }_    ],_    "adjust_pure_negative" : true,_    "boost" : 1.0_  }_}]; nested: IllegalArgumentException[Fielddata is disabled on text fields by default. Set fielddata=true on [commerceAccountGroupIds_required_matches] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.]; } [Sanitized]
      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseFailure(AbstractSearchAsyncAction.java:293)
      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:133)
      	at org.elasticsearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:254)
      	at org.elasticsearch.action.search.InitialSearchPhase.onShardFailure(InitialSearchPhase.java:101)
      	at org.elasticsearch.action.search.InitialSearchPhase.access$100(InitialSearchPhase.java:48)
      	at org.elasticsearch.action.search.InitialSearchPhase$2.lambda$onFailure$1(InitialSearchPhase.java:222)
      	at org.elasticsearch.action.search.InitialSearchPhase.maybeFork(InitialSearchPhase.java:176)
      	at org.elasticsearch.action.search.InitialSearchPhase.access$000(InitialSearchPhase.java:48)
      	at org.elasticsearch.action.search.InitialSearchPhase$2.onFailure(InitialSearchPhase.java:222)
      	at org.elasticsearch.action.search.SearchExecutionStatsCollector.onFailure(SearchExecutionStatsCollector.java:73)
      	at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:51)
      	at org.elasticsearch.action.search.SearchTransportService$ConnectionCountingHandler.handleException(SearchTransportService.java:464)
      	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1130)
      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:1247)
      	at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1221)
      	at org.elasticsearch.transport.TaskTransportChannel.sendResponse(TaskTransportChannel.java:66)
      	at org.elasticsearch.action.support.HandledTransportAction$ChannelActionListener.onFailure(HandledTransportAction.java:112)
      	at org.elasticsearch.search.SearchService$2.onFailure(SearchService.java:347)
      	at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:341)
      	at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:335)
      	at org.elasticsearch.search.SearchService$4.doRun(SearchService.java:1082)
      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:723)
      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
      	at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41)
      	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      

      Reproduced on:

      Tomcat 9.0.17 + MySQL 5.7. Portal 7.2.10 DXP GA1 FP2

        Attachments

          Activity

            People

            Assignee:
            kristin.onias Kristin Onias
            Reporter:
            kristin.onias Kristin Onias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package