Project

General

Profile

Bug #8033

Avatar?id=6023&size=50x50 Avatar?id=6023&size=22x22

Exception in Framework

Added by Artur Hefczyc TigaseTeam 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Start date:
Due date:
% Done:

100%

Estimated time:

Description

After the exception the host for the framework was no longer available in the mobile client.

2018-08-03 19:02:56.514 [pool-2-thread-11]  ConnectionErrorReporter.handleConnected()  INFO: Connected to Tigase IoT Hub as 0d0a4032-5951-4b44-801f-f90b48a5e3be
2018-08-03 19:02:56.518 [EventBus-Thread-2]  ThreadSafeEventBus$2.run()            WARNING:
java.util.ConcurrentModificationException
    at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
    at java.util.ArrayList$Itr.next(ArrayList.java:851)
    at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1042)
    at tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaExtendableModule.getFeaturesWithExtensions(AbstractStanzaExtendableModule.java:58)
    at tigase.jaxmpp.core.client.xmpp.modules.chat.MessageModule.getFeatures(MessageModule.java:167)
    at tigase.jaxmpp.core.client.XmppModulesManager.getAvailableFeatures(XmppModulesManager.java:78)
    at tigase.jaxmpp.core.client.xmpp.modules.capabilities.CapabilitiesModule.calculateVerificationString(CapabilitiesModule.java:136)
    at tigase.jaxmpp.core.client.xmpp.modules.capabilities.CapabilitiesModule.onBeforePresenceSend(CapabilitiesModule.java:209)
    at tigase.jaxmpp.core.client.xmpp.modules.capabilities.CapabilitiesModule$1.onBeforePresenceSend(CapabilitiesModule.java:93)
    at tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceModule$BeforePresenceSendHandler$BeforePresenceSendEvent.dispatch(PresenceModule.java:399)
    at tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceModule$BeforePresenceSendHandler$BeforePresenceSendEvent.dispatch(PresenceModule.java:386)
    at tigase.jaxmpp.j2se.eventbus.ThreadSafeEventBus$2.run(ThreadSafeEventBus.java:81)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Associated revisions

Revision fff72b91 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam 5 months ago

#8033: added thread safety to ExtensionsChain implementation

History

#1 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam 5 months ago

  • Status changed from New to In QA
  • Assignee changed from Andrzej Wójcik to Artur Hefczyc
  • % Done changed from 0 to 100

I've found an issue in Jaxmpp library used by frameworks. One of its classes ExtensionsChain was not thread-safe and due to the way how it was used in Jaxmpp Bot Framework it could lead in some cases to the reported exception.

Now it is fixed in Jaxmpp and I've rebuilt the whole stack, so new version of the IoT framework containing this fix is already available.

#2 Avatar?id=6023&size=24x24 Updated by Artur Hefczyc TigaseTeam 4 months ago

  • Status changed from In QA to Closed

Also available in: Atom PDF