pSpaces / jSpace

Programming with Spaces in Java
MIT License
17 stars 12 forks source link

Implemented closeGate to resolve issue #6 #7

Closed dobau closed 6 years ago

dobau commented 6 years ago

Is that implemetation that you need?

OBS: I can did not execute TestSpaceRepository.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.jspace.tests.TestRemoteSpace
Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.233 sec <<< FAILURE! - in org.jspace.tests.TestRemoteSpace
testConcurrentKeep1(org.jspace.tests.TestRemoteSpace)  Time elapsed: 0.151 sec  <<< ERROR!
java.net.ConnectException: Connection refused (Connection refused)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at java.net.Socket.<init>(Socket.java:434)
    at java.net.Socket.<init>(Socket.java:211)
    at org.jspace.gate.KeepClientGate.open(KeepClientGate.java:83)
    at org.jspace.RemoteSpace.<init>(RemoteSpace.java:49)
    at org.jspace.RemoteSpace.<init>(RemoteSpace.java:54)
    at org.jspace.tests.TestRemoteSpace.testConcurrentKeep1(TestRemoteSpace.java:98)

testConnUse(org.jspace.tests.TestRemoteSpace)  Time elapsed: 0.002 sec  <<< ERROR!
java.net.ConnectException: Connection refused (Connection refused)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at java.net.Socket.<init>(Socket.java:434)
    at java.net.Socket.<init>(Socket.java:211)
    at org.jspace.gate.KeepClientGate.open(KeepClientGate.java:83)
    at org.jspace.RemoteSpace.<init>(RemoteSpace.java:49)
    at org.jspace.RemoteSpace.<init>(RemoteSpace.java:54)
    at org.jspace.tests.TestRemoteSpace.testConnUse(TestRemoteSpace.java:79)

testKeepUse(org.jspace.tests.TestRemoteSpace)  Time elapsed: 0.006 sec  <<< ERROR!
java.net.ConnectException: Connection refused (Connection refused)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at java.net.Socket.<init>(Socket.java:434)
    at java.net.Socket.<init>(Socket.java:211)
    at org.jspace.gate.KeepClientGate.open(KeepClientGate.java:83)
    at org.jspace.RemoteSpace.<init>(RemoteSpace.java:49)
    at org.jspace.RemoteSpace.<init>(RemoteSpace.java:54)
    at org.jspace.tests.TestRemoteSpace.testKeepUse(TestRemoteSpace.java:60)
albertolluch commented 6 years ago

Thanks a lot @dobau we will check this asap.