incubator-s4-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raghavendar TS <raghav280...@gmail.com>
Subject S4-Port already in use exception
Date Fri, 05 Oct 2012 07:27:10 GMT
Hi
I have an application where I have 2 nodes and 2 apapters.this is my
clusters.xml file
<config version="-1">
  <cluster name="s4" type="s4" mode="unicast">
    <node>
      <partition>0</partition>
      <machine>localhost</machine> <!-- used only in red button mode -->
      <port>5077</port>
      <taskId>s4node-0</taskId>
    </node>
    <node>
      <partition>1</partition>
      <machine>localhost</machine> <!-- used only in red button mode -->
      <port>5078</port>
      <taskId>s4node-1</taskId>
    </node>
  </cluster>
  <cluster name="client-adapter" type="s4" mode="unicast">
    <node>
      <partition>0</partition>
      <machine>localhost</machine> <!-- used only in red button mode -->
      <taskId>client-adapter-0</taskId>
      <port>6077</port>
    </node>
    <node>
      <partition>1</partition>
      <machine>localhost</machine> <!-- used only in red button mode -->
      <taskId>client-adapter-1</taskId>
      <port>6078</port>
    </node>
  </cluster>
</config>

I able to start the 2 nodes and 1 adapter.when I start the 2nd adapter I
get the following exception.I even tried using some other ports 5079,5080
etc.Even that is not working


Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'genericStub' defined in URL
[file:/home/ericsson/Desktop/app/s4/build/s4-image/s4-core/conf/default/client-stub-conf.xml]:
Error setting property values; nested exception is
org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property
'connectionPort' threw exception; nested exception is
java.net.BindException: Address already in use
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140)
    at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:106)
    at io.s4.client.Adapter.main(Adapter.java:371)
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property
'connectionPort' threw exception; nested exception is
java.net.BindException: Address already in use
    at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
    at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276)
    ... 16 more


How to solve this problem?

Thankyou

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message