Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

java.net.BindException: Address already in use: no further information

Hi

I am using DotNet Build 6.6.2_b3100
I have 2 member async replication cluster.

This is what I am trying to do in code.
Registering for notifications and then making a read multiple to read the data from space.
No change in service.config has default binding port.
Any pointers would be great.

Exception

java.rmi.RemoteException: Failed to execute read multiple operation on clustered proxy. Cluster-Schema: async_replicated, load-balancing policy: local-space, Fail-over enabled.
Reason: No available member found.
Members availability status replicatedgroup">group: asyncreplicatedgroup


DevBEDcontainer1:DevBED : jini://*/DevBEDcontainer1/DevBED?groups=DevBED&ignoreValidation=true&totalmembers=2,0&schema=cache&clusterschema=asyncreplicated&mirror=false&id=1&state=started - AVAILABLE
DevBEDcontainer2:DevBED : jini://*/DevBEDcontainer2/DevBED?groups=DevBED&ignoreValidation=true&totalmembers=2,0&schema=cache&clusterschema=asyncreplicated&mirror=false&id=1&state=started - AVAILABLE
; nested exception is:
    java.rmi.ConnectException: Connect Failed; nested exception is:
    java.net.BindException: Address already in use: no further information ---> java.rmi.RemoteException
java.rmi.RemoteException: Failed to execute read multiple operation on clustered proxy. Cluster-Schema: async_replicated, load-balancing policy: local-space, Fail-over enabled.
Reason: No available member found.
Members availability status replicatedgroup">group: asyncreplicatedgroup


DevBEDcontainer1:DevBED : jini://*/DevBEDcontainer1/DevBED?groups=DevBED&ignoreValidation=true&totalmembers=2,0&schema=cache&clusterschema=asyncreplicated&mirror=false&id=1&state=started - AVAILABLE
DevBEDcontainer2:DevBED : jini://*/DevBEDcontainer2/DevBED?groups=DevBED&ignoreValidation=true&totalmembers=2,0&schema=cache&clusterschema=asyncreplicated&mirror=false&id=1&state=started - AVAILABLE
; nested exception is:
    java.rmi.ConnectException: Connect Failed; nested exception is:
    java.net.BindException: Address already in use: no further information
com.j_spaces.core.cluster.JSpaceClusteredProxy.prepareForMethodCall(JSpaceClusteredProxy.java:1176)
com.j_spaces.core.cluster.JSpaceClusteredProxy.readMultipleBasic(JSpaceClusteredProxy.java:2351)
com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(ClusterSpaceReadMultipleActionListener.java:72)
com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(ClusterSpaceReadMultipleActionListener.java:30)
com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(ClusterSpaceReadMultipleActionListener.java:23)
com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:610)
com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:599)
com.j_spaces.core.client.GSIterator.extractHistory(GSIterator.java:443)
com.j_spaces.core.client.GSIterator.<init>(GSIterator.java:280)
com.gigaspaces.serialization.pbs.executers.gsiterator.Construct.execute(Construct.java:45)
com.gigaspaces.serialization.pbs.executers.AbstractPbsExecutersBundle.execute(AbstractPbsExecutersBundle.java:148)
com.gigaspaces.serialization.pbs.executers.PbsExecuter.executeCommand(PbsExecuter.java:124)

InnerException: java.rmi.ConnectException
java.rmi.ConnectException: Connect Failed; nested exception is:
    java.net.BindException: Address already in use: no further information
com.gigaspaces.lrmi.nio.CPeer.connect(CPeer.java:168)
com.gigaspaces.lrmi.ConnectionPool.getConnection(ConnectionPool.java:53)
com.gigaspaces.lrmi.ConnPoolInvocationHandler.invoke(ConnPoolInvocationHandler.java:44)
com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:381)
com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:369)
$Proxy16.ping(Unknown Source)
com.j_spaces.core.lrmi.LRMIRemoteSpaceImpl.ping(LRMIRemoteSpaceImpl.java:189)
com.j_spaces.core.cluster.connectivity.SpacesConnectionManager.findRemoteSpace(SpacesConnectionManager.java:422)
com.j_spaces.core.cluster.connectivity.SpacesConnectionManager.connect(SpacesConnectionManager.java:355)
com.j_spaces.core.cluster.JSpaceClusteredProxy.getLBRemoteJSpace(JSpaceClusteredProxy.java:1450)
com.j_spaces.core.cluster.JSpaceClusteredProxy.prepareForMethodCall(JSpaceClusteredProxy.java:1059)
com.j_spaces.core.cluster.JSpaceClusteredProxy.readMultipleBasic(JSpaceClusteredProxy.java:2351)
com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(ClusterSpaceReadMultipleActionListener.java:72)
com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(ClusterSpaceReadMultipleActionListener.java:30)
com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(ClusterSpaceReadMultipleActionListener.java:23)
com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:610)
com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:599)
com.j_spaces.core.client.GSIterator.extractHistory(GSIterator.java:443)
com.j_spaces.core.client.GSIterator.<init>(GSIterator.java:280)
com.gigaspaces.serialization.pbs.executers.gsiterator.Construct.execute(Construct.java:45)
com.gigaspaces.serialization.pbs.executers.AbstractPbsExecutersBundle.execute(AbstractPbsExecutersBundle.java:148)
com.gigaspaces.serialization.pbs.executers.PbsExecuter.executeCommand(PbsExecuter.java:124)

InnerException: java.net.BindException
java.net.BindException: Address already in use: no further information
sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:527)
sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:100)
com.gigaspaces.lrmi.nio.CPeer.createChannel(CPeer.java:209)
com.gigaspaces.lrmi.nio.CPeer.connect(CPeer.java:148)
com.gigaspaces.lrmi.ConnectionPool.getConnection(ConnectionPool.java:53)
com.gigaspaces.lrmi.ConnPoolInvocationHandler.invoke(ConnPoolInvocationHandler.java:44)
com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(DynamicSmartStub.java:381)
com.gigaspaces.lrmi.DynamicSmartStub.invoke(DynamicSmartStub.java:369)
$Proxy16.ping(Unknown Source)
com.j_spaces.core.lrmi.LRMIRemoteSpaceImpl.ping(LRMIRemoteSpaceImpl.java:189)
com.j_spaces.core.cluster.connectivity.SpacesConnectionManager.findRemoteSpace(SpacesConnectionManager.java:422)
com.j_spaces.core.cluster.connectivity.SpacesConnectionManager.connect(SpacesConnectionManager.java:355)
com.j_spaces.core.cluster.JSpaceClusteredProxy.getLBRemoteJSpace(JSpaceClusteredProxy.java:1450)
com.j_spaces.core.cluster.JSpaceClusteredProxy.prepareForMethodCall(JSpaceClusteredProxy.java:1059)
com.j_spaces.core.cluster.JSpaceClusteredProxy.readMultipleBasic(JSpaceClusteredProxy.java:2351)
com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.readMultiple(ClusterSpaceReadMultipleActionListener.java:72)
com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(ClusterSpaceReadMultipleActionListener.java:30)
com.j_spaces.core.cluster.action.ClusterSpaceReadMultipleActionListener.onAction(ClusterSpaceReadMultipleActionListener.java:23)
com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:610)
com.j_spaces.core.client.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:599)
com.j_spaces.core.client.GSIterator.extractHistory(GSIterator.java:443)
com.j_spaces.core.client.GSIterator.<init>(GSIterator.java:280)
com.gigaspaces.serialization.pbs.executers.gsiterator.Construct.execute(Construct.java:45)
com.gigaspaces.serialization.pbs.executers.AbstractPbsExecutersBundle.execute(AbstractPbsExecutersBundle.java:148)
com.gigaspaces.serialization.pbs.executers.PbsExecuter.executeCommand(PbsExecuter.java:124)

Thanks
Venkat

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2009-01-20 10:01:33 -0500

venkatg's avatar

updated 2013-08-08 09:52:00 -0500

jaissefsfex's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

Ok found the issue. It was using javaToNet.dll from 6.6.1. I got 6.6.1 installed on that machine

I thought specifying 6.6.2 runtime in app.config should pick new version. Then I doubted why is that in first place finding the space. Found 6.6.2 Gigaspaces.Core.dll in path. Thanks for the help.

-Venkat

answered 2009-01-20 10:21:38 -0500

venkatg's avatar
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-01-20 10:01:33 -0500

Seen: 1,028 times

Last updated: Jan 20 '09