# Gradle assemble error

**URL:** <https://discuss.elastic.co/t/gradle-assemble-error/324198>\
**Category:** Elasticsearch\
**Created:** [January 30, 2023, 8:18am UTC](https://discuss.elastic.co/t/gradle-assemble-error/324198 "2023-01-30T08:18:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkkim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mkkim/32/116505_2.png) [@mkkim](https://discuss.elastic.co/u/mkkim)\
**Post date:** [January 30, 2023, 8:18am UTC](https://discuss.elastic.co/t/gradle-assemble-error/324198/1 "2023-01-30T08:18:16Z")

</div>

* * *

[kor]  
안녕하세요, 저는 한국인입니다.  
저는 엘라스틱서치에 사용자 사전을 이용한 노리 플러그인을 이용하고자 합니다.  
다음 링크를 참고해서 사용하고 있었습니다.  
([https://github.com/jimczi/nori/blob/master/how-to-custom-dict.asciidoc](https://github.com/jimczi/nori/blob/master/how-to-custom-dict.asciidoc))  
하지만 elasticsearch를 git pull한 후 gradle assemble을 할 때 다음과 같은 에러가 발생합니다.  
"""  
A problem occurred configuring project ':plugins:analysis-nori'.

> java.lang.NullPointerException (no error message)  
> """

또는  
"""  
Cannot invoke "java.lang.Comparable.compareTo(Object)" because the return value of "java.util.function.Function.apply(Object)" is null  
"""

파일의 수정사항은 위의 링크와 같이 수정하였고 버전은 제 것과 같이 수정하였습니다.  
테스트로 elasticsearch 7.17.3으로 해봤으나 해당 버전은 정상작동하고 7.17.4부터 위와 같은 에러가 발생합니다.

도움을 주시면 감사하겠습니다.

제가 사용하는 버전은 다음과 같습니다  
Ubuntu == 22.04  
elasticsearch == 7.17.7  
lucene == 8.11.1  
mecab == mecab of 0.996/ko-0.9.2  
gradle == 7.5.1  
java(openjdk) == 17.0.5  
ant == 1.10.11

* * *

[eng]  
Hello, I am Korean.  
I would like to use Nori plug-in using user dictionary for Elastic Search.  
I was using it by referring to the following link.  
([https://github.com/jimczi/nori/blob/master/how-to-custom-dict.asciidoc](https://github.com/jimczi/nori/blob/master/how-to-custom-dict.asciidoc))  
However, the following error occurs when performing a gradle assembly after git pulling elasticsearch.  
"""  
A problem occurred configuring project ':plugins:analysis-nori'.

> java.lang.NullPointerException (no error message)  
> """

Or  
"""  
Cannot invoke "java.lang.Comparable.compareTo(Object)" because the return value of "java.util.function.Function.apply(Object)" is null  
"""

I modified the file as shown in the link above and revised the version as shown in mine.  
I tried elasticsearch 7.17.3 as a test, but this version works fine and the above error occurs from 7.17.4.

I'd appreciate your help.

The versions I use are as follows.  
Ubuntu == 22.04  
elasticsearch == 7.17.7  
lucene == 8.11.1  
mecab == mecab of 0.996/ko-0.9.2  
gradle == 7.5.1  
java(openjdk) == 17.0.5  
ant == 1.10.11

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 27, 2023, 8:18am UTC](https://discuss.elastic.co/t/gradle-assemble-error/324198/2 "2023-02-27T08:18:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
