:exception=>java.lang.ClassCastException: org.jruby.RubyArray cannot be cast to org.jruby.RubyIO, :level=>:warn

Hi,

I am currently using HTTP_POLLER to get inputs into the following JSON_PARSER and I encountered the following errors :-

Error parsing json {:source=>"value", :raw=>[{"Type"=>"Roadwork", "Latitude"=>#BigDecimal:6a08d4d8,'0.13000136016810628E1',17(20), "Longitude"=>#BigDecimal:3ba29861,'0.10389068382210294E3',17(20), "Message"=>"(13/10)10:05 Roadworks on Mountbatten Road (towards City) after Tanjong Katong Road South. Avoid right lane."}, {"Type"=>"Roadwork", "Latitude"=>#BigDecimal:8f1d35,'0.12755468885705177E1',17(20), "Longitude"=>#BigDecimal:2c8da7e8,'0.10384895751623928E3',17(20), "Message"=>"(13/10)10:03 Roadworks on Maxwell Road (towards Marina View) after Shenton Way. Avoid left lane."}, {"Type"=>"Roadwork", "Latitude"=>#BigDecimal:7b65e357,'0.13203311989092505E1',17(20), "Longitude"=>#BigDecimal:37b3fbb,'0.10390504377795884E3',17(20), "Message"=>"(13/10)10:02 Roadworks on Jalan Eunos (towards Hougang) after Changi Road. Avoid right lane."}, {"Type"=>"Roadwork", "Latitude"=>#BigDecimal:5b4e2e11,'0.13615389353078684E1',17(20), "Longitude"=>#BigDecimal:f651174,'0.10370376397785842E3',17(20), "Message"=>"(13/10)10:02 Roadworks on KJE (towards PIE) before PIE(Tuas) Exit. Avoid lane 1."}, {"Type"=>"Roadwork", "Latitude"=>#BigDecimal:54e6870a,'0.12955039706256881E1',17(20), "Longitude"=>#BigDecimal:7e720521,'0.103887417516725E3',15(16), "Message"=>"(13/10)10:01 Roadworks on ECP (towards City) at Fort Rd Exit."}, {"Type"=>"Roadwork", "Latitude"=>#BigDecimal:47923888,'0.13428650489326706E1',17(20), "Longitude"=>#BigDecimal:27ac39a7,'0.10383761692359079E3',17(20), "Message"=>"(13/10)10:00 Roadworks on Thomson Road (towards SLE) after MacRitchie Reservoir. Avoid right lane."}, {"Type"=>"Vehicle breakdown", "Latitude"=>#BigDecimal:5cf2ac96,'0.13309490636997763E1',17(20), "Longitude"=>#BigDecimal:35df344c,'0.1038623992761848E3',16(20), "Message"=>"(13/10)10:07 Vehicle breakdown on CTE (towards AYE) after PIE(Changi) Exit."}, {"Type"=>"Vehicle breakdown", "Latitude"=>#BigDecimal:7f1e175c,'0.13294233500324433E1',17(20), "Longitude"=>#BigDecimal:36c18235,'0.1038419023811822E3',16(20), "Message"=>"(13/10)10:04 Vehicle breakdown on PIE (towards Tuas) after Thomson Rd Exit."}, {"Type"=>"Vehicle breakdown", "Latitude"=>#BigDecimal:6ad84f67,'0.13585774824187953E1',17(20), "Longitude"=>#BigDecimal:65730197,'0.10378196057705365E3',17(20), "Message"=>"(13/10)10:01 Vehicle breakdown on BKE (towards PIE) after Dairy Farm Rd Entrance."}], :exception=>java.lang.ClassCastException: org.jruby.RubyArray cannot be cast to org.jruby.RubyIO, :level=>:warn}

How can I resolve this issue?

Thanks.

What's your config look like?
What version?

Hi warkolm,

Thanks for replying.

Below is my config file :-

input {
http_poller {
urls => {
test1 => {
method => get
url => "http://datamall2.mytransport.sg/ltaodataservice/TrafficIncidents?"
headers => {
AccountKey => "xxxx"
UniqueUserID => "xxxx"
accept => "application/json"
}
}
}
interval => 10
}
}
filter {
mutate {
rename => {"odata.metadata" => "odata_metadata"}
}
json {
source => "value"
}
}
output {
stdout {
codec => rubydebug
}
}

Hi warkolm,

I am currently using version 2.4.

Thanks.