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 ์ด์Šˆ