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

GitHub | 4refr0nt | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Arguments checking

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

    GitHub comment 18#249322178

    GitHub | 7 months ago | arcoirislabs
    java.lang.IllegalArgumentException: Invalid topic length, should be in range[1, 65535]!

    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