This issue was due to some additional dependency jars (
mqtt-client-0.4.0.jar, axis2-transport-mqtt-1.0.0.jar) that were present in
the setup. I was able to solve this issue after removing those jars.

Thanks.
Dilhasha

On Tue, Apr 4, 2017 at 6:31 PM, Fathima Dilhasha <[email protected]> wrote:

> Hi,
>
> I'm seeing the below exception when trying out the esb sample 272 at [1].
>
> [2017-04-04 18:13:31,202] ERROR - AsyncCallback *ClientId longer than 23
> characters*
> java.lang.IllegalArgumentException: ClientId longer than 23 characters
> at org.eclipse.paho.client.mqttv3.MqttAsyncClient.<init>(
> MqttAsyncClient.java:250)
> at org.eclipse.paho.client.mqttv3.MqttClient.<init>(MqttClient.java:222)
> at org.apache.axis2.transport.mqtt.MqttConnectionFactory.createMqttClient(
> MqttConnectionFactory.java:121)
> at org.apache.axis2.transport.mqtt.MqttConnectionFactory.createMqttClient(
> MqttConnectionFactory.java:102)
> at org.apache.axis2.transport.mqtt.MqttConnectionFactory.getMqttClient(
> MqttConnectionFactory.java:69)
> at org.apache.axis2.transport.mqtt.MqttSender.sendMessage(
> MqttSender.java:107)
> at org.apache.axis2.transport.base.AbstractTransportSender.invoke(
> AbstractTransportSender.java:112)
> at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocation
> Worker.run(AxisEngine.java:626)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
> I have tried:
>
>    - Change the org.eclipse.paho.client.mqttv3-1.1.0.jar
>    to org.eclipse.paho.client.mqttv3-1.1.1.jar
>    - Tried with both WSO2 Mb and mosquitto broker
>
> Still got the same error when sending message in the out sequence.
>
> [1] https://docs.wso2.com/display/ESB500/Sample+272%
> 3APublishing+and+Subscribing+using+WSO2+ESB%27s+MQ+Telemetry+Transport
>
> I appreciate your help in solving $subject.
>
> ​Thanks.
> Dilhasha​
>
> --
> Fathima Dilhasha
> Software Engineer - WSO2 Cloud
> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
> <%2B94%20%280%29%20773%20451194>
> [email protected]
>



-- 
Fathima Dilhasha
Software Engineer - WSO2 Cloud
Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
<%2B94%20%280%29%20773%20451194>
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to