# Logstash json codec Failed to load class

**URL:** <https://discuss.elastic.co/t/logstash-json-codec-failed-to-load-class/33589>\
**Category:** Logstash\
**Created:** [November 3, 2015, 3:08am UTC](https://discuss.elastic.co/t/logstash-json-codec-failed-to-load-class/33589 "2015-11-03T03:08:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![treehouse](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@treehouse](https://discuss.elastic.co/u/treehouse)\
**Post date:** [November 3, 2015, 3:08am UTC](https://discuss.elastic.co/t/logstash-json-codec-failed-to-load-class/33589/1 "2015-11-03T03:08:14Z")

</div>

Hey guys

i have a tcp output here and when i try to use a json\* codec my logstash instance dies with error

```
LogStash::Json::GeneratorError: Failed to load class 'org.jruby.RubyObject$Access4JacksonDeserializer45931591': com.fasterxml.jackson.module.afterburner.ser.BeanPropertyAccessor

```

here is my config

```
input {
	stdin {}
	courier{
		port => 4546
		transport => "tls"
		ssl_certificate => "/root/log-courier.crt"
		ssl_key => "/root/log-courier.key"
	}
}

filter { }

output {
	stdout { codec => rubydebug }

	tcp {
		mode => "client"
		host => "172.31.6.186"
		port => 4545
		codec => "json_lines"
	}    
}

```

Anyone know what's going on here ? thanks!

---

<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:** [July 6, 2017, 5:24am UTC](https://discuss.elastic.co/t/logstash-json-codec-failed-to-load-class/33589/2 "2017-07-06T05:24:26Z")

</div>


