netty在linux上报错,高手帮帮忙!
Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:844
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:296)
at com.cndw.core.socket.SecurityServer.init(SecurityServer.java:46)
at com.cndw.street.StreetServer.start(StreetServer.java:47)
... 5 more
错误信息就是这些了
log4j:WARN Continuable parsing error 40 and column 23
log4j:WARN An element with the identifier "debug" must appear in the document.
log4j:ERROR No appender named [debug] could be found.
log4j:WARN No appenders could be found for logger (com.cndw.dao.jade.core.JadeDaoProcessor).
log4j:WARN Please initialize the log4j system properly.
2011-05-24 18:00:33.654 INFO net.spy.memcached.MemcachedConnection: Added {QA sa=/127.0.0.1:11215, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to
connect queue
2011-05-24 18:00:33.658 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@2de3e7d2
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:844
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:296)
at com.cndw.core.socket.SecurityServer.init(SecurityServer.java:46)
at com.cndw.street.StreetServer.start(StreetServer.java:47)
... 5 more
Caused by: java.net.SocketException: Permission denied
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74)
at org.jboss.netty.channel.Channels.bind(Channels.java:671)
at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:170)
at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:342)
at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:190)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:80)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90)
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:275)
... 7 more
24/05/2011 18:00:36 29098 jsvc.exec error: Cannot start daemon
24/05/2011 18:00:36 29097 jsvc.exec error: Service exit with a return value of 5
[解决办法]
这个是问题:
Caused by: java.net.SocketException: Permission denied
难道启用了 Java 2 Security?