java.lang.IllegalArgumentException: Invalid topic length, should be in range[1, 65535]!

GitHub | 4refr0nt | 4 months ago
  1. 0

    Arguments checking

    GitHub | 4 months ago | 4refr0nt
    java.lang.IllegalArgumentException: Invalid topic length, should be in range[1, 65535]!
  2. 0

    GitHub comment 18#249322178

    GitHub | 4 months ago | arcoirislabs
    java.lang.IllegalArgumentException: Invalid topic length, should be in range[1, 65535]!
  3. 0
    This happened when I tried to insert an empty list of elements to a collection.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    This error is caused by malformed HTTP request. You are trying to access unsecured page through https.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid topic length, should be in range[1, 65535]!

      at org.eclipse.paho.client.mqttv3.MqttTopic.validate()
    2. org.eclipse.paho
      MqttAsyncClient.subscribe
      1. org.eclipse.paho.client.mqttv3.MqttTopic.validate(MqttTopic.java:158)
      2. org.eclipse.paho.client.mqttv3.MqttAsyncClient.subscribe(MqttAsyncClient.java:823)
      3. org.eclipse.paho.client.mqttv3.MqttAsyncClient.subscribe(MqttAsyncClient.java:783)
      3 frames
    3. com.arcoirislabs.plugin
      CordovaMqTTPlugin$3.run
      1. com.arcoirislabs.plugin.mqtt.CordovaMqTTPlugin.subscribe(CordovaMqTTPlugin.java:273)
      2. com.arcoirislabs.plugin.mqtt.CordovaMqTTPlugin.access$200(CordovaMqTTPlugin.java:24)
      3. com.arcoirislabs.plugin.mqtt.CordovaMqTTPlugin$3.run(CordovaMqTTPlugin.java:76)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:135)
      4. android.app.ActivityThread.main(ActivityThread.java:5264)
      4 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:900)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:695)
      2 frames