Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One of two CloudConnections sometimes fails to connect and never tries to reconnect #2679

Closed
alebianchin opened this issue Feb 20, 2020 · 0 comments · Fixed by #2680
Closed

Comments

@alebianchin
Copy link
Contributor

alebianchin commented Feb 20, 2020

Describe the bug
If you have two different CloudConnections sometimes at startup one of them can't connect and throws this Exception :

java.lang.IllegalArgumentException: no NetworkModule installed for scheme "ssl" of URI "ssl://broker-sbx.everyware.io:8883"
        at org.eclipse.paho.client.mqttv3.internal.NetworkModuleService.validateURI(NetworkModuleService.java:70)
        at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:454)
        at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:320)
        at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(MqttAsyncClient.java:315)
        at org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport.setupMqttSession(MqttDataTransport.java:978)
        at org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport.connect(MqttDataTransport.java:291)
        at org.eclipse.kura.core.data.DataServiceImpl$2.run(DataServiceImpl.java:606)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

To Reproduce
It is not easy to reproduce this issue since it rarely happens.
Steps to reproduce the behavior:

  1. Create two CloudConnections
  2. Create a WireGraph with two publisher using each of the Connection
  3. Reboot
  4. Sometimes you will see the error at startup.

Expected behavior
The calling thread should not die and try to reconnect after, instead it get killed by an uncatched RuntimeException thrown by paho.

Target Environment (please complete the following information):

  • Kura 4.1
@alebianchin alebianchin changed the title Data One of two CloudConnections sometimes fails to connect and never tries to reconnect Feb 20, 2020
MMaiero pushed a commit that referenced this issue Feb 26, 2020
MMaiero pushed a commit that referenced this issue Mar 23, 2020
@MMaiero MMaiero mentioned this issue Mar 27, 2020
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant