0 Replies Latest reply on Jul 24, 2018 5:54 AM by jackmk

    cause: java.net.BindException: Cannot assign requested address: Datagram send failed


      I am a student who aspires to be a developer in Korea.



      I learned jgroups while studying ehcache and jgroup with spring-boot



      I am trying to copy / distribute the cache to two computers.



      However, I have not been able to improve my progress because I have problems while trying.



      I would like to get help for this.



      I entered dependency in pom.xml as follows.























      And ehcache.xml is as follows.


      <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"


              <diskStore path="java.io.tmpdir/one" />





                              propertySeparator="::" />


              <cache name="serverResourceInfoCache" maxEntriesLocalHeap="1000"

                          eternal="false" timeToIdleSeconds="1000" timeToLiveSeconds="1000"





                              properties="replicateAsynchronously=true, replicatePuts=true,

                              replicateUpdates=true, replicateUpdatesViaCopy=false,

                              replicateRemovals=true" />




      Finally, jgroups_tcp.xml looks like this



              <TCP bind_addr="" bind_port = "7800" loopback="true"/>

              <TCPPING timeout = "3000"

                          initial_hosts = " [7800], [7800]"

                          port_range = "10"

                          num_initial_members = "3"/>

              <VERIFY_SUSPECT timeout = "1500"/>

              <pbcast.NAKACK use_mcast_xmit = "false" gc_lag = "100"

                          retransmit_timeout = "300,600,1200,2400,4800"

                          discard_delivered_msgs = "true"/>

              <pbcast.STABLE stability_delay = "1000" desired_avg_gossip = "50000" max_bytes = "400000"/>

              <pbcast.GMS print_local_addr = "true" join_timeout = "5000" shun = "false" view_bundling = "true"/>





      However, when I rotate both of them, the following error keeps appearing





      I've looked up this error and tried several ways, but I can not finish it.

      I would appreciate it if you could give me a good way.