Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] java client disconnect while registering

I also think an exception thrown from MqttCallback will cause the connection to shutdown is NOT reasonable.
and also refer to this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=443142

and developers should handle the exception inside the MqttCallback, but not throw it.


Best Regards,
Bin Zhang(张斌)
--------------------------------------------------------------------------------------------
WebSphere MQ, IBM China Software Development Lab
Notes:   Bin BJ Zhang/China/IBM
E-Mail:  zhbinbj@xxxxxxxxxx
Address: Ring Building 3F, ZhongGuanCun Software Park,

DongBeiWang West Road No.8, Haidian District, Beijing, 100193, China
-------------------------------------------------------------------------------------------


Inactive hide details for Mathieu GRENET ---10/13/2014 10:31:22 PM---Hello, I just realized that my messageArrived implementatiMathieu GRENET ---10/13/2014 10:31:22 PM---Hello, I just realized that my messageArrived implementation threw an exeption

From: Mathieu GRENET <mathieu@xxxxxxxxxxxx>
To: General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Date: 10/13/2014 10:31 PM
Subject: Re: [paho-dev] java client disconnect while registering
Sent by: paho-dev-bounces@xxxxxxxxxxx





Hello,
I just realized that my messageArrived implementation threw an exeption
while parsing payload.
I did not expect that it would break the connection, but it does.
Correct parsing did the trick.
Thank you for helping.

Mathieu

Le 13/10/2014 15:29, Ian Craggs a écrit :
> Hello Mathieu,
>
> is there any log message from Mosquitto to explain this?
>
> Can you subscribe to Mosquitto successfully with other applications
> and receive the messages your Android application is publishing?
>
> Ian
>
>
> On 10/11/2014 11:20 AM, Mathieu GRENET wrote:
>> Hello,
>> I try to implement a solution using mqtt on android (4.4)
>> I can connect, and publish it stay connected with no problem.
>> but I cannot get subscribing to work.
>> Every time i try to "client.subscribe" it fires lostconnection, and
>> i'm actually disconnected.
>> The broquer is latest mosquitto windows (1.3.5)
>> jav library is org.eclipse.paho.client.mqttv3-1.0.0.jar
>>
>> anyone did ever get that ?
>> Thank you
>>
>> Mgth
>>
>> _______________________________________________
>> paho-dev mailing list
>> paho-dev@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or
>> unsubscribe from this list, visit
>>
https://dev.eclipse.org/mailman/listinfo/paho-dev
>

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev


GIF image


Back to the top