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

Key android.intent.extra.ALARM_COUNT expected Integer but value was a java.lang.Long #15

Closed
jpwsutton opened this issue Mar 1, 2016 · 4 comments
Labels

Comments

@jpwsutton
Copy link
Contributor

migrated from Bugzilla #467954
status UNCONFIRMED severity normal in component MQTT-Android for 1.2
Reported in version unspecified on platform Other
Assigned to: James Sutton

Original attachment names and IDs:

On 2015-05-22 01:51:10 -0400, Guillermo Casanova wrote:

Created attachment 253655
Bug stacktrace

Paho android service AlarmPingSender class method on onReceive of the AlarmReceiver gets served a Long object but it expects an Integer. Check out the attached stacktrace.

On 2015-08-17 06:29:27 -0400, Ian Craggs wrote:

Assigning to James

On 2015-09-02 05:43:01 -0400, James Sutton wrote:

That's very strange.. I've had a dig through and everything I can find points to that value being an Integer, it's managed by the Android Alarm manager so I don't think it can be anything that the Android Mqtt Service is doing..

The only thing I could find that seems to match this is an issue on another Android OS project: mendhak/gpslogger#337

You're not using a Moto G by any chance are you?

They have a fix which looks like it will work, but it's likely that we would have to rely on you to make sure that it is fixed.(mendhak/gpslogger@SHA: 9ae9f295d218b5b89dce3e554e04207c1fc673d7)

On 2015-09-02 06:23:23 -0400, Guillermo Casanova wrote:

Hi James,

I mostly use a Moto G, that's correct. I will take a look at the fix you linked, thanks a lot.

On 2015-11-18 04:30:57 -0500, James Sutton wrote:

Hi Guillermo,

Did this work for you? If so it might be good to add it to the Android service properly so that Paho isn't broken on the Moto G.

@jpwsutton jpwsutton added the bug label Mar 1, 2016
@marciogranzotto
Copy link

I have the same problem when using my application on a Moto X 2014. However when I run it on a Galaxy S5, it does not throw this exception.

Any news on this?

@jpwsutton
Copy link
Contributor Author

The fix is pretty simple, I didn't get conformation that this worked so had left it be (as it was impossible for me to test without a Moto G).

As this is affecting more models of phones I'll pop the change into Develop today and you'll be able to test it out in the 1.0.3-SNAPSHOT build tomorrow.

Wondering what on earth makes certain Motorola phones behave this way....

jpwsutton added a commit to jpwsutton/paho.mqtt.android that referenced this issue May 18, 2016
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
jpwsutton added a commit that referenced this issue May 19, 2016
* Making sure that the service is build as a full project

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Changing build to ensure that service is built first

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Moving Lib copy to after clean

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Resolving issue #15 by adding support for Motorola Phones

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
jpwsutton added a commit that referenced this issue May 19, 2016
* Making sure that the service is build as a full project

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Changing build to ensure that service is built first

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Moving Lib copy to after clean

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Resolving issue #15 by adding support for Motorola Phones

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Updating Readme

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Removing build badge

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
jpwsutton added a commit that referenced this issue May 31, 2016
* Making sure that the service is build as a full project

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Changing build to ensure that service is built first

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Moving Lib copy to after clean

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Resolving issue #15 by adding support for Motorola Phones

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Updating Readme

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Removing build badge

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Adding Subscribe calls with IMqttMessageListener

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>

* Adding Travis-ci build badge to readme

Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
@jpwsutton
Copy link
Contributor Author

@marciogranzotto Has this resolved the issue for you, can I close it?

@marciogranzotto
Copy link

@jpwsutton sorry for the late reply. It it resolved the issue! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants