{"action":"opened","issue":{"url":"https://api.github.com/repos/aphyr/riemann/issues/509","labels_url":"https://api.github.com/repos/aphyr/riemann/issues/509/labels{/name}","comments_url":"https://api.github.com/repos/aphyr/riemann/issues/509/comments","events_url":"https://api.github.com/repos/aphyr/riemann/issues/509/events","html_url":"https://github.com/aphyr/riemann/issues/509","id":56684346,"number":509,"title":"Graphite UDP server gets ClassCastException","user":{"login":"benbc","id":128750,"avatar_url":"https://avatars.githubusercontent.com/u/128750?v=3","gravatar_id":"","url":"https://api.github.com/users/benbc","html_url":"https://github.com/benbc","followers_url":"https://api.github.com/users/benbc/followers","following_url":"https://api.github.com/users/benbc/following{/other_user}","gists_url":"https://api.github.com/users/benbc/gists{/gist_id}","starred_url":"https://api.github.com/users/benbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbc/subscriptions","organizations_url":"https://api.github.com/users/benbc/orgs","repos_url":"https://api.github.com/users/benbc/repos","events_url":"https://api.github.com/users/benbc/events{/privacy}","received_events_url":"https://api.github.com/users/benbc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-05T15:27:33Z","updated_at":"2015-02-05T15:27:33Z","closed_at":null,"body":"Hello\r\n\r\nI'm trying to use Riemann as a proxy in front of Graphite. At the moment I'm just passing straight through to Graphite. Here is my config:\r\n\r\n    (logging/init {:file \"/var/log/riemann/riemann.log\"})\r\n\r\n    (let [host \"0.0.0.0\"]\r\n      (graphite-server {:host host :protocol :tcp})\r\n      (graphite-server {:host host :protocol :udp}))\r\n\r\n    (streams\r\n      (graphite {:host \"127.0.0.1\" :port 2005}))\r\n\r\nThe TCP server works fine, but the UDP server gives this error every time it gets a message:\r\n\r\n    WARN [2015-02-05 15:25:21,698] defaultEventExecutorGroup-2-1 - riemann.transport.udp - UDP handler caught\r\n    io.netty.handler.codec.DecoderException: java.lang.RuntimeException: Graphite server parse error (java.lang.ClassCastException: io.netty.channel.socket.DatagramPacket cannot be cast to java.lang.CharSequence): #<DatagramPacket DatagramPacket(/172.28.128.1:51160 => /0:0:0:0:0:0:0:0:2003, UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 2048, cap: 2048))>\r\n            at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99)\r\n            at riemann.transport.graphite.proxy$io.netty.handler.codec.MessageToMessageDecoder$ff19274a.channelRead(Unknown Source)\r\n            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)\r\n            at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)\r\n            at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\r\n            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)\r\n            at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)\r\n            at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:166)\r\n            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)\r\n            at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)\r\n            at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)\r\n            at io.netty.channel.nio.AbstractNioMessageChannel$NioMessageUnsafe.read(AbstractNioMessageChannel.java:93)\r\n            at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)\r\n            at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)\r\n            at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)\r\n            at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)\r\n            at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)\r\n            at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n            at java.lang.Thread.run(Thread.java:745)\r\n    Caused by: java.lang.RuntimeException: Graphite server parse error (java.lang.ClassCastException: io.netty.channel.socket.DatagramPacket cannot be cast to java.lang.CharSequence): #<DatagramPacket DatagramPacket(/172.28.128.1:51160 => /0:0:0:0:0:0:0:0:2003, UnpooledUnsafeDirectByteBuf(ridx: 0, widx: 2048, cap: 2048))>\r\n            at riemann.transport.graphite$graphite_frame_decoder$fn__5167.invoke(graphite.clj:89)\r\n            at riemann.transport.graphite.proxy$io.netty.handler.codec.MessageToMessageDecoder$ff19274a.decode(Unknown Source)\r\n            at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89)\r\n            ... 18 more\r\n\r\nAny idea what is going wrong?\r\n\r\nThanks\r\n-Ben\r\n"}}