๐ป Programming
jackson.core ์ค๋ฅ (java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonStreamContext.<init>(II)V)
์ผ์ด์น
2019. 7. 24. 10:23
java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonStreamContext.<init>(II)V
์ ์ค๋ฅ๋ jackson-core ๋ฒ์ ๊ณผ jackson-bind ๋ฒ์ ์ด ์๋ก ๋ค๋ฅผ ๊ฒฝ์ฐ ๋ฐ์ํ ๊ฐ๋ฅ์ฑ์ด ๋๋ค.
์ค๋ฅ๋ฐ์์์ธ
๋ฉ์ด๋ธ ํ๋ก์ ํธ์์ ์ผ๋ถ ์์กด์ฑ(dependency)์ ์ ๊ท๋ก ์ถ๊ฐํ์ ๋, ํด๋น dependency๊ฐ jackson-core์ 2.8.0๋ฒ์ ์ ํฌํจํ๊ณ ์์๋ค. ๊ธฐ์กด์ jackson-core, jackson-databind ๋ฒ์ ์ 2.9.0 ์ ์ฌ์ฉํ๋๋ก ์์กด์ฑ์ ๊ด๋ฆฌํ๊ณ ์์๋๋ฐ ์ ๊ท ์ถ๊ฐ ์์กด์ฑ์ด jackson-core 2.8.0 ๋ฒ์ ์ ํฌํจํ๊ณ ์์ด ์ฑ ๊ธฐ๋ ์ 2.8.0๋ฒ์ ์ด ๋ฌผ๋ ค์ฌ๋ผ๊ฐ๋ฉด์ ๋ฐ์ํ์๋ค.
์ค๋ฅํด๊ฒฐ๋ฐฉ๋ฒ
์ ๊ท๋ก ์ถ๊ฐํ ์์กด์ฑ์ ์๋์ ๊ฐ์ด exclusion ์ฒ๋ฆฌํจ.
<dependency>
<groupId>com.internetitem</groupId>
<artifactId>logback-elasticsearch-appender</artifactId>
<version>1.6</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
</exclusions>
</dependency>
์ฐธ๊ณ ์๋ฃ : ๊นํ jackson-core ์ด์