Error registering plugin, Pipeline aborted due to error (<TypeError: can't dup Fixnum>), Failed to execute action

Any help on this?
Same error
[2018-04-25T11:34:31,810][ERROR][logstash.agent ] Pipeline aborted due to error {:exception=>#<TypeError: can't dup Fixnum>, :backtrace=>["org/jruby/RubyKernel.java:2029:in dup'", "/xxxx/xxxx/elastic/logstash-5.2.1/vendor/jruby/lib/ruby/1.9/date/format.rb:833:in_parse'", master/lib/logstash/plugin_mixins/value_tracking.rb:87:in `set_value'",