Hi Asanka, As I went through the source, I have noticed that native transport port is not offsetting in side cassandra server component. Can you create a JIRA for this? I'll provide a pull request.
Thanks, Harsha On Fri, Jul 4, 2014 at 11:49 AM, Asanka Abeyweera <[email protected]> wrote: > Hi, > > I tried to run two instances of WSO2 MB 3.0.0-SNAPSHOT in the same > machine. I changed the offset value to 2 in carbon.xml file of the second > server. But when I started the second server after first one, I got the > following error. I think the error is due to the Cassandra server binding > to the same CQL port (9042). MB 3.0.0-SNAPSHOT uses the Cassandra Server > feature 4.3.0-SNAPSHOT. > > [2014-07-04 11:31:16,495] INFO > {org.wso2.carbon.andes.internal.QpidServiceComponent} - Activating > Carbonized Cassandra Server... > org.jboss.netty.channel.ChannelException: Failed to bind to: localhost/ > 127.0.0.1:9042 > at > org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272) > at org.apache.cassandra.transport.Server.run(Server.java:139) > at org.apache.cassandra.transport.Server.start(Server.java:100) > at > org.apache.cassandra.service.CassandraDaemon.start(CassandraDaemon.java:393) > at > org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:459) > at > org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:48) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.net.BindException: Address already in use > at sun.nio.ch.Net.bind0(Native Method) > at sun.nio.ch.Net.bind(Net.java:444) > at sun.nio.ch.Net.bind(Net.java:436) > at > sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) > at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) > at > org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193) > at > org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366) > at > org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290) > at > org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > ... 1 more > Exception encountered during startup: Failed to bind to: localhost/ > 127.0.0.1:9042 > [2014-07-04 11:31:18,136] INFO > {org.wso2.carbon.core.init.CarbonServerManager} - Shutdown hook > triggered.... > > > -- > Asanka Abeyweera > Software Engineer > WSO2 Inc. > > Phone: +94 712228648 > > -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
