[sip-comm-dev] Trace possible duplicate connections


#1

I'm sending the following because it seems to contain tracing
information. I started SIP Communicator, it attempted to connect my
Google Talk and Jabber accounts, the exception got printed at some
point and when I looked at my accounts afterwards, they seemed
connected.

     [java] java.net.SocketException: Connection reset
     [java] at java.net.SocketInputStream.read(SocketInputStream.java:168)
     [java] at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
     [java] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
     [java] at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
     [java] at java.io.InputStreamReader.read(InputStreamReader.java:167)
     [java] at java.io.BufferedReader.read1(BufferedReader.java:185)
     [java] at java.io.BufferedReader.read(BufferedReader.java:261)
     [java] at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992)
     [java] at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
     [java] at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
     [java] at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
     [java] at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     [java] at
org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)
     [java] at
org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
     [java] at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
     [java] 12:21:36.814 SEVERE:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register().254
Error registering
     [java] Connection failed. No response from server.:
     [java] at
org.jivesoftware.smack.PacketReader.startup(PacketReader.java:119)
     [java] at
org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:614)
     [java] at
org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:573)
     [java] at
org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1007)
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:514)
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:249)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager$RegisterProvider.run(LoginManager.java:404)
     [java] 12:22:02.878 SEVERE:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin().492
Connection is not null and isConnected:false
     [java] java.lang.Exception: Trace possible duplicate connections
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:494)
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:249)
     [java] at
net.java.sip.communicator.plugin.reconnectplugin.ReconnectPluginActivator$ReconnectTask.run(ReconnectPluginActivator.java:732)
     [java] at java.util.TimerThread.mainLoop(Timer.java:512)
     [java] at java.util.TimerThread.run(Timer.java:462)

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hi,

thanks Lubo for reporting this. I've been seeing this myself lately as
I was testing multichats. I think I saw the problem and I've just
committed a change, hope it will help. If you spot again this message
report it again :slight_smile:

Thanks
damencho

···

On Mon, Jul 26, 2010 at 12:25 PM, Lubomir Marinov <lubo@sip-communicator.org> wrote:

I'm sending the following because it seems to contain tracing
information. I started SIP Communicator, it attempted to connect my
Google Talk and Jabber accounts, the exception got printed at some
point and when I looked at my accounts afterwards, they seemed
connected.

\[java\] java\.net\.SocketException: Connection reset
\[java\]     at java\.net\.SocketInputStream\.read\(SocketInputStream\.java:168\)
\[java\]     at sun\.nio\.cs\.StreamDecoder\.readBytes\(StreamDecoder\.java:264\)
\[java\]     at sun\.nio\.cs\.StreamDecoder\.implRead\(StreamDecoder\.java:306\)
\[java\]     at sun\.nio\.cs\.StreamDecoder\.read\(StreamDecoder\.java:158\)
\[java\]     at java\.io\.InputStreamReader\.read\(InputStreamReader\.java:167\)
\[java\]     at java\.io\.BufferedReader\.read1\(BufferedReader\.java:185\)
\[java\]     at java\.io\.BufferedReader\.read\(BufferedReader\.java:261\)
\[java\]     at org\.xmlpull\.mxp1\.MXParser\.fillBuf\(MXParser\.java:2992\)
\[java\]     at org\.xmlpull\.mxp1\.MXParser\.more\(MXParser\.java:3046\)
\[java\]     at org\.xmlpull\.mxp1\.MXParser\.parseProlog\(MXParser\.java:1410\)
\[java\]     at org\.xmlpull\.mxp1\.MXParser\.nextImpl\(MXParser\.java:1395\)
\[java\]     at org\.xmlpull\.mxp1\.MXParser\.next\(MXParser\.java:1093\)
\[java\]     at

org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)
[java] at
org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
[java] at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
[java] 12:21:36.814 SEVERE:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register().254
Error registering
[java] Connection failed. No response from server.:
[java] at
org.jivesoftware.smack.PacketReader.startup(PacketReader.java:119)
[java] at
org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:614)
[java] at
org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:573)
[java] at
org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1007)
[java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:514)
[java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:249)
[java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager$RegisterProvider.run(LoginManager.java:404)
[java] 12:22:02.878 SEVERE:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin().492
Connection is not null and isConnected:false
[java] java.lang.Exception: Trace possible duplicate connections
[java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:494)
[java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:249)
[java] at
net.java.sip.communicator.plugin.reconnectplugin.ReconnectPluginActivator$ReconnectTask.run(ReconnectPluginActivator.java:732)
[java] at java.util.TimerThread.mainLoop(Timer.java:512)
[java] at java.util.TimerThread.run(Timer.java:462)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi Damencho,

I created a new Jabber account and when it attempted to get online, it
output the following exception:

     [java] 11:24:25.577 SEVERE:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register().267
Error registering
     [java] XMPPError connecting to voipgw.u-strasbg.fr:5222.:
remote-server-error(502) XMPPError connecting to
voipgw.u-strasbg.fr:5222.
     [java] -- caused by: java.net.SocketException: Network is unreachable
     [java] at
org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:570)
     [java] at
org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1007)
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:523)
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:262)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager$RegisterProvider.run(LoginManager.java:404)
     [java] Nested Exception:
     [java] java.net.SocketException: Network is unreachable
     [java] at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
     [java] at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
     [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
     [java] at java.net.Socket.connect(Socket.java:529)
     [java] at java.net.Socket.connect(Socket.java:478)
     [java] at
org.jivesoftware.smack.proxy.DirectSocketFactory.createSocket(DirectSocketFactory.java:28)
     [java] at
org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:558)
     [java] at
org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1007)
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:523)
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:262)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager$RegisterProvider.run(LoginManager.java:404)

It seems like there was something wrong with the network. Anyway, I'm
writing to you because I immediately tried to set the account to
Available and it did connect but it also said:

     [java] 11:25:01.682 SEVERE:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin().501
Connection is not null and isConnected:false
     [java] java.lang.Exception: Trace possible duplicate connections
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:501)
     [java] at
net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:262)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager$RegisterProvider.run(LoginManager.java:404)

Best regards,
Lubo

···

On Mon, Jul 26, 2010 at 12:41 PM, Damian Minkov <damencho@sip-communicator.org> wrote:

If you spot again this message
report it again :slight_smile:

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net