We're updating the issue view to help you get more done. 

Error at reconnection - no users are connected

Description

At reconnection time online users are not loaded. This error does not happen always, but I have seen it a couple of times.

How to reproduce:
1- Get connected
2- Cut the connection
3- Reestablish the connection
Result: No online users are seen
4- Restarting Spark it shows the online contacts.

The following errors appeared:
Mar 22, 2007 7:35:47 PM org.jivesoftware.spark.util.log.Log error
SEVERE: Connection closed on error.
java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:722)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:679)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.read1(BufferedReader.java:187)
at java.io.BufferedReader.read(BufferedReader.java:261)
at org.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:42)
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2947)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:2996)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1143)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1092)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:368)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
Mar 22, 2007 7:37:16 PM org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.NullPointerException
at org.jivesoftware.spark.ui.ContactList.updateUserPresence(ContactList.java:275)
at org.jivesoftware.spark.ui.ContactList.access$700(ContactList.java:96)
at org.jivesoftware.spark.ui.ContactList$19$4$1.run(ContactList.java:1637)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Mar 22, 2007 7:37:16 PM org.jivesoftware.spark.util.log.Log error
SEVERE:
java.lang.NullPointerException
at org.jivesoftware.spark.ui.ContactList.updateUserPresence(ContactList.java:275)
at org.jivesoftware.spark.ui.ContactList.access$700(ContactList.java:96)
at org.jivesoftware.spark.ui.ContactList$19$4$1.run(ContactList.java:1637)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Mar 22, 2007 7:38:54 PM org.jivesoftware.spark.util.log.Log error
SEVERE:
No response from the server.:
at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo(ServiceDiscoveryManager.java:410)
at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo(ServiceDiscoveryManager.java:379)
at org.jivesoftware.sparkimpl.plugin.gateways.transports.TransportUtils.isRegistered(TransportUtils.java:104)
at org.jivesoftware.sparkimpl.plugin.gateways.GatewayButton.handlePopup(GatewayButton.java:140)
at org.jivesoftware.sparkimpl.plugin.gateways.GatewayButton.access$000(GatewayButton.java:37)
at org.jivesoftware.sparkimpl.plugin.gateways.GatewayButton$1.mousePressed(GatewayButton.java:59)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
at java.awt.Component.processMouseEvent(Component.java:6035)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3983)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Many times this error
start - javax.sip.InvalidArgumentException: Cannot assign requested address: Can
not bind
javax.sip.InvalidArgumentException: Cannot assign requested address: Cannot bind

at gov.nist.javax.sip.SipStackImpl.createListeningPoint(SipStackImpl.jav
a:678)
at net.java.sipmack.sip.SipManager.start(SipManager.java:361)
at net.java.sipmack.softphone.SoftPhoneManager.createSoftPhone(SoftPhone
Manager.java:286)
at net.java.sipmack.softphone.SoftPhoneManager$2.run(SoftPhoneManager.ja
va:884)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: Cannot assign requested address: Cannot bind
at gov.nist.javax.sip.stack.UDPMessageProcessor.<init>(UDPMessageProcess
or.java:141)
at gov.nist.javax.sip.stack.SIPTransactionStack.createMessageProcessor(S
IPTransactionStack.java:1669)
at gov.nist.javax.sip.SipStackImpl.createListeningPoint(SipStackImpl.jav
a:659)
... 4 more

Environment

windows

Acceptance Test - Entry

None
Fixed

Assignee

Derek DeMoro

Reporter

Francisco Vives

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major
Configure