mirror of
https://github.com/ushahidi/SMSSync.git
synced 2026-04-25 15:55:57 +03:00
[GH-ISSUE #163] readLogs Producer is registered mutlitple times in two different classes #125
Labels
No labels
Bug report
Code improvement
Concern
Feature request
Feature request
Good first issue to work on
In progress
Needs info
Question
Ready
Translation
User Experience
User Experience
Website
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SMSSync#125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Briar503 on GitHub (May 7, 2014).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/163
Getting the following exception when running intermittently:
java.lang.IllegalArgumentException: Producer method for type boolean found on type class org.addhen.smssync.services.AutoSyncScheduledService, but already registered by type class org.addhen.smssync.services.SmsReceiverService.
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2275)
at android.app.ActivityThread.access$1600(ActivityThread.java:127)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4512)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:561)
at dalvik.system.NativeStart.main(Native Method)
This exception is causing the App to crash
@eyedol commented on GitHub (May 8, 2014):
Yes, that will potentially cause the app to crash.
@z-br commented on GitHub (May 8, 2014):
Any suggestions on how to fix? This is very reproducible. We just had to put exception traps around the register calls.
@eyedol commented on GitHub (May 8, 2014):
@gregpassmore this is actually supposed to be
readLog()notreadLogs()so rename it toreadLog()in AutoSyncScheduledService. I'll refactor this later on.@KamilKalfas commented on GitHub (May 22, 2014):
Is someone working on this ?
@eyedol commented on GitHub (May 23, 2014):
@KamilKalfas I don't think so. You can take it.
@KamilKalfas commented on GitHub (May 29, 2014):
@ubiquill, @gregpassmore could you write me a repro steps ?
@eyedol renaming this method in both services ('CheckTaskScheduledService', 'AutoSyncScheduledService') should be enough to fix this ?
@eyedol commented on GitHub (May 29, 2014):
@KamilKalfas yes it should.
@KamilKalfas commented on GitHub (May 29, 2014):
Fixed in PR #172