Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created May 17, 2016 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frogermcs/cd122a7ff35d07f9820271f27df60345 to your computer and use it in GitHub Desktop.
Save frogermcs/cd122a7ff35d07f9820271f27df60345 to your computer and use it in GitHub Desktop.
private void setupExactTarget() {
try {
ETPush.readyAimFire(new ETPushConfig.Builder(this)
.setEtAppId(getString(R.string.exact_target_app_id))
.setAccessToken(getString(R.string.exact_target_accessToken))
.setGcmSenderId(getString(R.string.GCM_SENDER_ID))
.setAnalyticsEnabled(true)
.setLogLevel(Log.VERBOSE)
.build()
);
} catch (ETException e) {
e.printStackTrace();
Crashlytics.logException(e);
}
}
FATAL EXCEPTION: AsyncTask #1
Process: com.azimo.sendmoney.debug1, PID: 24805
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference
at com.google.android.gms.gcm.GcmListenerService.zzo(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.zza(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818
ETPushReceiver.onReceive()
Action: et_push_app_in_background
Class: com.exacttarget.etpushsdk.ETPushService
FATAL EXCEPTION: AsyncTask #1
Process: com.azimo.sendmoney.debug1, PID: 28486
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference
at com.google.android.gms.gcm.GcmListenerService.zzo(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.zza(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
D/~!ETPush: Pausing as a result of callback? 'true'
D/~!ETPush: activityResumedThread is not running. So continue with pausing activity.
D/~!ETPush: 242886269 resuming started...
D/~!ETPush: Set Alarm for 15 seconds from now to handle background work.
D/~!ETPush: Save time for onResume() to determine if in foreground.
D/~!ETPush: 242886269 pausing done...
V/~!ud: Verifying encryption key ...
V/~!ud: Encryption test successful.
D/~!uf: New instance of ETSqliteOpenHelper.
D/~!Registration: Platform: "Android", platformVersion: "6.0.1"
D/~!Registration: hwid: motorola Nexus 6
D/~!uk: Debug determination failed with Exception [com.azimo.sendmoney.a.BuildConfig] and so set to: true
D/~!Registration: Registration() initialization complete
D/~!ETPush: ETPush singleton getInstance initialization completed.
D/~!ETPush: Google Device w/Google Play Services v8487000
D/~!ETPush: Looking for com.google.android.c2dm.intent.RECEIVE Intent Filter w/Category com.azimo.sendmoney.debug1
I/~!ETPush: Receivers Info Size: 2, Receiver Class Name: com.exacttarget.etpushsdk.ETPushReceiver, Package Name: com.azimo.sendmoney.debug1
I/~!ETPush: ActivityInfo Name: com.google.android.gms.gcm.GcmReceiver, ActivityInfo Package: com.azimo.sendmoney.debug1
I/~!ETPush: ActivityInfo Name: com.exacttarget.etpushsdk.ETPushReceiver, ActivityInfo Package: com.azimo.sendmoney.debug1
D/~!ETPush: Receiver com.exacttarget.etpushsdk.ETPushReceiver Found
D/~!ETPush: Looking for android.intent.action.PACKAGE_REPLACED Intent Filter w/Scheme package
I/~!ETPush: Receivers Info Size: 9, Receiver Class Name: com.exacttarget.etpushsdk.ETPushReceiver, Package Name: com.azimo.sendmoney.debug1
I/~!ETPush: ActivityInfo Name: com.android.providers.contacts.PackageIntentReceiver, ActivityInfo Package: com.android.providers.contacts
I/~!ETPush: ActivityInfo Name: com.android.musicfx.Compatibility$Receiver, ActivityInfo Package: com.android.musicfx
I/~!ETPush: ActivityInfo Name: com.google.apps.dots.android.app.receiver.FirstInstallNotificationReceiver, ActivityInfo Package: com.google.android.apps.magazines
I/~!ETPush: ActivityInfo Name: com.google.android.apps.cloudprint.printdialog.receivers.UpgradeBroadcastReceiver, ActivityInfo Package: com.google.android.apps.cloudprint
I/~!ETPush: ActivityInfo Name: com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher, ActivityInfo Package: com.google.android.googlequicksearchbox
I/~!ETPush: ActivityInfo Name: com.google.android.gms.chimera.GmsIntentOperationService$PersistentExternalReceiver, ActivityInfo Package: com.google.android.gms
I/~!ETPush: ActivityInfo Name: com.google.android.gms.gass.chimera.PackageChangeBroadcastReceiver, ActivityInfo Package: com.google.android.gms
I/~!ETPush: ActivityInfo Name: com.google.android.gms.gcm.nts.SchedulerReceiver, ActivityInfo Package: com.google.android.gms
I/~!ETPush: ActivityInfo Name: com.exacttarget.etpushsdk.ETPushReceiver, ActivityInfo Package: com.azimo.sendmoney.debug1
D/~!ETPush: Receiver com.exacttarget.etpushsdk.ETPushReceiver Found
D/~!ETPush: Looking for com.azimo.sendmoney.debug1.MESSAGE_OPENED Intent Filter
I/~!ETPush: Receivers Info Size: 1, Receiver Class Name: com.exacttarget.etpushsdk.ETPushReceiver, Package Name: com.azimo.sendmoney.debug1
I/~!ETPush: ActivityInfo Name: com.exacttarget.etpushsdk.ETPushReceiver, ActivityInfo Package: com.azimo.sendmoney.debug1
D/~!ETPush: Receiver com.exacttarget.etpushsdk.ETPushReceiver Found
D/~!ETPush: Looking for android.intent.action.AIRPLANE_MODE Intent Filter
I/~!ETPush: Receivers Info Size: 2, Receiver Class Name: com.exacttarget.etpushsdk.ETPushReceiver, Package Name: com.azimo.sendmoney.debug1
I/~!ETPush: ActivityInfo Name: com.android.cellbroadcastreceiver.CellBroadcastReceiver, ActivityInfo Package: com.android.cellbroadcastreceiver
I/~!ETPush: ActivityInfo Name: com.exacttarget.etpushsdk.ETPushReceiver, ActivityInfo Package: com.azimo.sendmoney.debug1
D/~!ETPush: Receiver com.exacttarget.etpushsdk.ETPushReceiver Found
D/~!ETPush: Looking for android.intent.action.ACTION_SHUTDOWN Intent Filter
I/~!ETPush: Receivers Info Size: 3, Receiver Class Name: com.exacttarget.etpushsdk.ETPushReceiver, Package Name: com.azimo.sendmoney.debug1
I/~!ETPush: ActivityInfo Name: com.android.sprint.lifetimedata.LifetimeDataReceiver, ActivityInfo Package: com.android.sprint.lifetimedata
I/~!ETPush: ActivityInfo Name: com.facebook.battery.monitor.ContinuousBatteryMonitorService$BroadcastReceiver, ActivityInfo Package: com.facebook.katana
I/~!ETPush: ActivityInfo Name: com.exacttarget.etpushsdk.ETPushReceiver, ActivityInfo Package: com.azimo.sendmoney.debug1
D/~!ETPush: Receiver com.exacttarget.etpushsdk.ETPushReceiver Found
D/~!ETPush: checking classes for onEvent.
D/~!ETPush: confirmed classes for onEvent.
D/~!ETPush: checking classes for setDatabaseIds.
D/~!ETPush: confirmed classes for setDatabaseIds.
D/~!ETPush: checking classes for setId.
D/~!ETPush: confirmed classes for setId.
D/~!ETAnalytics: readyAimFire()
D/~!EventBus: Registering com.exacttarget.etpushsdk.ETAnalytics with ET EventBus
D/~!EventBus: Registering complete com.exacttarget.etpushsdk.ETAnalytics with ET EventBus
D/~!ETAnalytics: ETAnalytics readyAimFire() completed.
D/~!ETPush: readyAimFire() initialization completed
D/~!ETPush: 122949074 resuming started...
D/~!ETPush: Cancelling activityPausedPendingIntent
D/~!EventBus: Registering com.exacttarget.etpushsdk.ETPush with ET EventBus
D/~!EventBus: Registering complete com.exacttarget.etpushsdk.ETPush with ET EventBus
D/~!EventBus: post(ReadyAimFireInitCompletedEvent event) with ET EventBus
D/~!EventBus: post(ReadyAimFireInitCompletedEvent event) complete with ET EventBus
D/~!ETPush: Current time: 1463475845589 Pause time: 1463475835533
D/~!ETPush: 122949074 will notify that app came into foreground...
D/~!EventBus: postSticky(BackgroundEvent event)
D/~!EventBus: post(BackgroundEvent event) with ET EventBus
D/~!ETAlarmManager: Resetting REGISTRATION Alarm Interval to 1.00 minute(s).
D/~!EventBus: Invoking com.exacttarget.etpushsdk.ETAnalytics.onEvent() with BackgroundEvent
D/~!ETAnalytics: App is now in foreground.
D/~!ETAlarmManager: Resetting REGISTRATION Alarm Active Flag to FALSE
D/~!ETAlarmManager: HARD RESET for REGISTRATION Alarm.
V/~!uh: Verifying Google Play Services ...
D/~!ETAnalytics: isCountingTimeInApp: true
D/~!EventBus: Invoking com.exacttarget.etpushsdk.ETPush.onEvent() with BackgroundEvent
D/~!ETPush: The application is coming into the foreground.
D/~!ETPush: Checking for pending registration data.
D/~!dh: Counting pending registrations.
D/~!dh: There are 1 pending registrations.
V/~!uh: Google Play Services is available and meets or exceeds the minimum required version.
D/~!ETPush: We have pending registration data to send.
D/~!ETAlarmManager: Resetting REGISTRATION Alarm Interval to 1.00 minute(s).
D/~!ETAlarmManager: Resetting REGISTRATION Alarm Active Flag to FALSE
D/~!ETAlarmManager: HARD RESET for REGISTRATION Alarm.
D/~!ETAlarmManager: No pending REGISTRATION Alarm. Setting one up ...
D/~!ETAlarmManager: REGISTRATION Alarm will wake up in 1.00 minute(s).
D/~!ETAlarmManager: REGISTRATION Alarm set.
D/~!ETAlarmManager: Next REGISTRATION Alarm interval will be 2.00 minute(s) unless successfully sent & processed.
D/~!EventBus: post(BackgroundEvent event) complete with ET EventBus
D/~!ETPush: pause_time_key removed
D/~!ETPush: 122949074 resuming done...
D/~!ETPush: sendInternalRegistration()
D/~!ETPush: activityPaused() finished. So continue with resuming activity.
D/~!ETPush: activityResumed() finished. So continue with pausing activity.
D/~!ETPush: Create Registration if we have a SystemToken.
D/~!ETPush: Creating Registration ...
D/~!dh: Counting pending registrations.
D/~!dh: There are 1 pending registrations.
D/~!ETPush: There are saved Registrations. Delete all rows.
D/~!ETPush: 122949074 resuming started...
D/~!ETPush: activityResume thread started
D/~!dh: Counting pending registrations.
D/~!dh: There are 1 pending registrations.
D/~!ETPush: There are saved Registrations. Create Alarm (if needed) to send them.
D/~!ETAlarmManager: REGISTRATION Send Pending ...
D/~!ETPush: Set Alarm for 15 seconds from now to handle background work.
D/~!ETPush: 242886269 resuming started...
D/~!ETPush: Cancelling activityPausedPendingIntent
D/~!ETPush: Current time: 1463475845634 Pause time: -1
D/~!ETPush: 242886269 will notify that app came into foreground...
D/~!EventBus: postSticky(BackgroundEvent event)
D/~!EventBus: post(BackgroundEvent event) with ET EventBus
D/~!EventBus: Invoking com.exacttarget.etpushsdk.ETAnalytics.onEvent() with BackgroundEvent
D/~!ETAnalytics: App is now in foreground.
D/~!ETPush: Save time for onResume() to determine if in foreground.
D/~!ETPush: 122949074 pausing done...
D/~!ETAnalytics: isCountingTimeInApp: true
D/~!EventBus: Invoking com.exacttarget.etpushsdk.ETPush.onEvent() with BackgroundEvent
D/~!ETPush: The application is coming into the foreground.
D/~!ETPush: Checking for pending registration data.
D/~!dh: Counting pending registrations.
D/~!dh: There are 1 pending registrations.
D/~!ETPush: We have pending registration data to send.
D/~!ETAlarmManager: Resetting REGISTRATION Alarm Interval to 1.00 minute(s).
D/~!ETAlarmManager: Resetting REGISTRATION Alarm Active Flag to FALSE
D/~!ETAlarmManager: HARD RESET for REGISTRATION Alarm.
D/~!ETAlarmManager: No pending REGISTRATION Alarm. Setting one up ...
D/~!ETAlarmManager: REGISTRATION Alarm will wake up in 1.00 minute(s).
D/~!ETAlarmManager: REGISTRATION Alarm set.
D/~!ETAlarmManager: Next REGISTRATION Alarm interval will be 2.00 minute(s) unless successfully sent & processed.
D/~!EventBus: post(BackgroundEvent event) complete with ET EventBus
D/~!ETPush: 242886269 resuming done...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment