UDP Proxy Exceptions

Markus DE HL7975 at gmx.de
Mon Sep 28 16:24:17 EDT 2009


Hi,

I'm trying to write a UDP proxy server, but it throws exceptions everytime
inbound tries to write to the client - receiving the messages seems to be no
problem - :

java.lang.NullPointerException: null address || null buffer
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:612)
	at
org.jboss.netty.channel.socket.oio.OioDatagramWorker.write(OioDatagramWorker.java:128)
	at
org.jboss.netty.channel.socket.oio.OioDatagramPipelineSink.eventSunk(OioDatagramPipelineSink.java:84)
	at org.jboss.netty.channel.Channels.write(Channels.java:895)
	at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:233)
	at
org.jboss.netty.channel.socket.oio.OioDatagramChannel.write(OioDatagramChannel.java:134)
	at
de.pred.udp.proxy.server.InboundHandler$OutboundHandler.messageReceived(InboundHandler.java:75)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:345)
	at
org.jboss.netty.channel.socket.oio.OioDatagramWorker.run(OioDatagramWorker.java:95)
	at
org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)

SOURCE:

http://pastebin.ca/1582972

Thanks for help!
-- 
View this message in context: http://n2.nabble.com/UDP-Proxy-Exceptions-tp3731694p3731694.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list