Well next time I recommend to RTFM :P

         connectionService
             .configure(Saros.NAMESPACE, Saros.RESOURCE, false, false, 8888,
                 null, null, true, null, 80, true);


     /**
      * Configures the service. Must be at least called once before
      * {@link #connect} is called.
      *
      * @param namespace
      *            the namespace of the feature (plugin)
      * @param resource
      *            the resource qualifier for a running connection
      * @param enableDebug
      *            true to show Smack Debug Window upon XMPP connection
      * @param proxyEnabled
      *            true to enable Socks5Proxy
      * @param proxyPort
      *            Socks5Proxy port
      * @param proxyAddresses
      *            collection of addresses (either host name or ip 
address) for
      *            the local Socks5 proxy, if <code>null</code> the 
addresses
      *            will be determined automatically at proxy start
      * @param gatewayDeviceID
      *            the USN of a UPNP compatible gateways device to 
perform port
      *            mapping on or <code>null</code>
      * @param useExternalGatewayDeviceAddress
      *            if <code>true</code> the external (ip) address of the 
gateway
      *            will be included into the Socks5 proxy addresses
      * @param stunServer
      *            STUN server address or <code>null</code> if STUN 
discovery
      *            should not be performed
      * @param stunPort
      *            STUN server port if 0 the default stun port will be used
      */


The problem is that:

1. You do not a Socks5 Proxy at all
2. You have still the Socks5 Transport enabled which would result in 
Mediated Socks5 connections but:

It seems you are using your own XMPP server which have no Socks5 proxies 
configured and so you have to
wait up to 30 seconds as no proxy is given.

What makes me wonder is that it takes 30 seconds as there should be no 
proxy at all.

Can you please enable the Smack Debug Window and mail the IQ Stanza that 
contains the StreamHosts ?


On 05.08.2014 14:16, Holger Schmeisky wrote:
> Hi,
>
> when I connect two IntelliJ instances, I get the following exception on
> the host:
>
>
> WARN  14:10:40,829 [pool-4-thread-1] (Socks5Transport.java:425)
> [SOCKS5Transport] Couldn't accept request but still trying to establish
> a response connection: Could not establish socket with any provided host
> ERROR 14:10:40,904 [pool-4-thread-1] (Socks5Transport.java:454) An error
> occured while establishing a response connection
> item-not-found(404) Could not establish socket with any provided host
>       at
> org.jivesoftware.smack.util.SyncPacketSend.getReply(SyncPacketSend.java:54)
>       at
> org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager.establishSession(Socks5BytestreamManager.java:481)
>       at
> org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager.establishSession(Socks5BytestreamManager.java:83)
>       at
> de.fu_berlin.inf.dpp.net.internal.Socks5Transport.establishResponseSession(Socks5Transport.java:646)
>       at
> de.fu_berlin.inf.dpp.net.internal.Socks5Transport$1.call(Socks5Transport.java:108)
>       at
> de.fu_berlin.inf.dpp.net.internal.Socks5Transport$1.call(Socks5Transport.java:105)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>       at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:744)
> ERROR 14:10:40,905 [pool-4-thread-1] (ByteStreamTransport.java:105)
> could not establish bytestream connection to
> dev2_bob_stf@holger-laptop/Saros
> java.io.IOException: [SOCKS5Transport] Neither connection could be
> established.
>       at
> de.fu_berlin.inf.dpp.net.internal.Socks5Transport.acceptNewRequest(Socks5Transport.java:460)
>       at
> de.fu_berlin.inf.dpp.net.internal.Socks5Transport.acceptRequest(Socks5Transport.java:488)
>       at
> de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport$1.incomingBytestreamRequest(ByteStreamTransport.java:77)
>       at
> org.jivesoftware.smackx.bytestreams.socks5.InitiationListener.processRequest(InitiationListener.java:91)
>       at
> org.jivesoftware.smackx.bytestreams.socks5.InitiationListener.access$000(InitiationListener.java:37)
>       at
> org.jivesoftware.smackx.bytestreams.socks5.InitiationListener$1.run(InitiationListener.java:63)
>       at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:744)
>
>
> and then this one on the invitee:
>
>
>
> ERROR 14:11:10,833 [Thread-6] (DataTransferManager.java:407)
> dev1_alice_stf@holger-laptop/Saros failed to connect using
> XMPP-Socks5-Transport: [SOCKS5Transport] waiting for a response session
> timed out (30000ms) and could not establish a connection from this side,
> too:
> java.io.IOException: [SOCKS5Transport] waiting for a response session
> timed out (30000ms) and could not establish a connection from this side,
> too:
>       at
> de.fu_berlin.inf.dpp.net.internal.Socks5Transport.establishBinaryChannel(Socks5Transport.java:607)
>       at
> de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.connect(ByteStreamTransport.java:48)
>       at
> de.fu_berlin.inf.dpp.net.internal.DataTransferManager.connectInternal(DataTransferManager.java:404)
>       at
> de.fu_berlin.inf.dpp.net.internal.DataTransferManager.connect(DataTransferManager.java:285)
>       at
> de.fu_berlin.inf.dpp.core.invitation.IncomingSessionNegotiation.accept(IncomingSessionNegotiation.java:169)
>       at
> de.fu_berlin.inf.dpp.intellij.ui.wizards.JoinSessionWizard$2.run(JoinSessionWizard.java:140)
>       at de.fu_berlin.inf.dpp.util.ThreadUtils$1.run(ThreadUtils.java:38)
>       at java.lang.Thread.run(Thread.java:744)
> Caused by: item-not-found(404) Could not establish socket with any
> provided host
>       at
> org.jivesoftware.smack.util.SyncPacketSend.getReply(SyncPacketSend.java:54)
>       at
> org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager.establishSession(Socks5BytestreamManager.java:481)
>       at
> org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager.establishSession(Socks5BytestreamManager.java:83)
>       at
> de.fu_berlin.inf.dpp.net.internal.Socks5Transport.establishBinaryChannel(Socks5Transport.java:525)
>
>
> Then it takes about a minute and the two instances are connected. This
> does not happen when connecting to Eclipse. Does anybody have a guess
> what this is?
>
> Regards,
> Holge
>
>


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
DPP-Devel mailing list
DPP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-devel

Reply via email to