But if it works with Eclipse, shouldnt it be an Saros/I problem?

Holger Schmeisky; holge...@fu-berlin.de
Takustraße 9, Room 008, Freie Universität Berlin, 14195 Berlin
+49 176 64146306

Am 06.08.2014 12:39, schrieb srossb...@arcor.de:
> Hmm, seems the proxy of your OpenFire installation is not correctly 
> configured.
> At least you should be able to establish a Mediated Socks5 connection over 
> the proxy
> offered by your OpenFire installation.
>
>
> ----- Original Nachricht ----
> Von:     Holger Schmeisky <holge...@fu-berlin.de>
> An:      Stefan Rossbach <srossb...@arcor.de>, dpp-devel@lists.sourceforge.net
> Datum:   06.08.2014 11:59
> Betreff: Re: [DPP-Devel] Connection issues
>
>> Should be this one:
>>
>> <iq id="dXAQ2-19" to="dev2_bob_stf@holger-laptop/Saros"
>> from="dev1_alice_stf@holger-laptop/Saros" type="set">
>>     <query xmlns="http://jabber.org/protocol/bytestreams";
>> sid="saros-main-session:1274645315458956384" mode="tcp">
>>       <streamhost jid="proxy.holger-laptop" host="127.0.1.1" port="7777"/>
>>     </query>
>> </iq>
>>
>>
>> and
>>
>> <iq id="dXAQ2-19" to="dev1_alice_stf@holger-laptop/Saros"
>> from="dev2_bob_stf@holger-laptop/Saros" type="error">
>>     <query xmlns="http://jabber.org/protocol/bytestreams";
>> sid="saros-main-session:1274645315458956384" mode="tcp">
>>       <streamhost jid="proxy.holger-laptop" host="127.0.1.1" port="7777"/>
>>     </query>
>>     <error code="404" type="CANCEL">
>>       <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
>>       <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"
>> xml:lang="en">Could not establish socket with any provided host</text>
>>     </error>
>> </iq>
>>
>>
>>
>> and yes I am running a local OpenFire instance so I can test without
>> being online.
>>
>> Regards,
>> Holger
>>
>> Holger Schmeisky; holge...@fu-berlin.de
>> Takustraße 9, Room 008, Freie Universität Berlin, 14195 Berlin
>> +49 176 64146306
>>
>> Am 05.08.2014 14:57, schrieb Stefan Rossbach:
>>> 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.establish
>> Session(Socks5BytestreamManager.java:481)
>>>>
>>>>      at
>>>>
>> org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager.establish
>> Session(Socks5BytestreamManager.java:83)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.net.internal.Socks5Transport.establishResponseSession(S
>> ocks5Transport.java:646)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.net.internal.Socks5Transport$1.call(Socks5Transport.jav
>> a:108)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.net.internal.Socks5Transport$1.call(Socks5Transport.jav
>> a:105)
>>>>
>>>>      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>>>      at
>>>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
>> 45)
>>>>
>>>>      at
>>>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
>> 15)
>>>>
>>>>      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(Socks5Tra
>> nsport.java:460)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.net.internal.Socks5Transport.acceptRequest(Socks5Transp
>> ort.java:488)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport$1.incomingBytestreamRe
>> quest(ByteStreamTransport.java:77)
>>>>
>>>>      at
>>>>
>> org.jivesoftware.smackx.bytestreams.socks5.InitiationListener.processRequest
>> (InitiationListener.java:91)
>>>>
>>>>      at
>>>>
>> org.jivesoftware.smackx.bytestreams.socks5.InitiationListener.access$000(Ini
>> tiationListener.java:37)
>>>>
>>>>      at
>>>>
>> org.jivesoftware.smackx.bytestreams.socks5.InitiationListener$1.run(Initiati
>> onListener.java:63)
>>>>
>>>>      at
>>>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
>> 45)
>>>>
>>>>      at
>>>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
>> 15)
>>>>
>>>>      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(Soc
>> ks5Transport.java:607)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.connect(ByteStreamTran
>> sport.java:48)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.net.internal.DataTransferManager.connectInternal(DataTr
>> ansferManager.java:404)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.net.internal.DataTransferManager.connect(DataTransferMa
>> nager.java:285)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.core.invitation.IncomingSessionNegotiation.accept(Incom
>> ingSessionNegotiation.java:169)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.intellij.ui.wizards.JoinSessionWizard$2.run(JoinSession
>> Wizard.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.establish
>> Session(Socks5BytestreamManager.java:481)
>>>>
>>>>      at
>>>>
>> org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager.establish
>> Session(Socks5BytestreamManager.java:83)
>>>>
>>>>      at
>>>>
>> de.fu_berlin.inf.dpp.net.internal.Socks5Transport.establishBinaryChannel(Soc
>> ks5Transport.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