question

tassine avatar image
tassine asked

onRegistrationError SERVICE_NOT_AVAILABLE

Hi everybody, I have some problems just after enable my apps, I got onRegistrationError SERVICE_NOT_AVAILABLE. Also, I get theses Errors Exceptions: [ADM][Register]Error contacting server. 08-02 14:44:15.044: E/ADM(22262): com.amazon.dcp.sso.NoCredentialsException: SSO Could not fetch credentials 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.sso.CentralDcpAuthenticationMethod.getAuthenticationBundle(CentralDcpAuthenticationMethod.java:159) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.sso.AuthenticationMethod.authenticateConnection(AuthenticationMethod.java:72) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.sso.AuthenticatedHttpURLConnection.onConnectionRequested(AuthenticatedHttpURLConnection.java:103) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.sso.AuthenticatedHttpURLConnection.connect(AuthenticatedHttpURLConnection.java:198) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.sso.AuthenticatedHttpsURLConnection.connect(AuthenticatedHttpsURLConnection.java:171) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionWrapper.connect(ConnectionWrapper.java:326) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.LoggingURLConnection.connect(LoggingURLConnection.java:82) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionEstablisherWithExternalConnectionFactory.doEstablishConnectionWithBody(ConnectionEstablisherWithExternalConnectionFactory.java:115) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionEstablisherWithExternalConnectionFactory.access$100(ConnectionEstablisherWithExternalConnectionFactory.java:18) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionEstablisherWithExternalConnectionFactory$1.onBodyAvailable(ConnectionEstablisherWithExternalConnectionFactory.java:96) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionWithBufferedOutput.processBody(ConnectionWithBufferedOutput.java:46) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionWithBufferedOutput.access$000(ConnectionWithBufferedOutput.java:15) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionWithBufferedOutput$1.close(ConnectionWithBufferedOutput.java:22) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.StreamHelpers.closeStream(StreamHelpers.java:50) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionEstablisherWithRetry.establishConnectionWithTimeout(ConnectionEstablisherWithRetry.java:190) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionEstablisherWithRetry.doEstablishConnectionWithBody(ConnectionEstablisherWithRetry.java:110) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionEstablisherWithRetry.access$100(ConnectionEstablisherWithRetry.java:23) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionEstablisherWithRetry$1.onBodyAvailable(ConnectionEstablisherWithRetry.java:96) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionWithBufferedOutput.processBody(ConnectionWithBufferedOutput.java:46) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionWithBufferedOutput.access$000(ConnectionWithBufferedOutput.java:15) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.iuc.ConnectionWithBufferedOutput$1.close(ConnectionWithBufferedOutput.java:22) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.StreamHelpers.closeStream(StreamHelpers.java:50) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.device.messaging.PrivateADMRegistrationService.sendRegistrationRequest(PrivateADMRegistrationService.java:761) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.device.messaging.PrivateADMRegistrationService.makeRequest(PrivateADMRegistrationService.java:578) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.device.messaging.PrivateADMRegistrationService.access$300(PrivateADMRegistrationService.java:58) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.device.messaging.PrivateADMRegistrationService$4.run(PrivateADMRegistrationService.java:260) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.DCPLog$Config.runWithThreadLocalTag(DCPLog.java:260) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.DCPLog.runWithThreadLocalTag(DCPLog.java:161) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.device.messaging.PrivateADMRegistrationService.protectedOnHandleIntent(PrivateADMRegistrationService.java:255) 08-02 14:44:15.044: E/ADM(22262): at com.amazon.dcp.framework.AmazonIntentService.onHandleIntent(AmazonIntentService.java:21) 08-02 14:44:15.044: E/ADM(22262): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) 08-02 14:44:15.044: E/ADM(22262): at android.os.Handler.dispatchMessage(Handler.java:99) 08-02 14:44:15.044: E/ADM(22262): at android.os.Looper.loop(Looper.java:137) 08-02 14:44:15.044: E/ADM(22262): at android.os.HandlerThread.run(HandlerThread.java:60) 08-02 14:44:15.132: I/WifiManager(22262): WiFi lock 0 released for com.amazon.dcp.framework.iuc.ConnectionEstablisherWithConnectivityEnforcement. 08-02 14:44:15.233: E/ADMSampleMessenger(10678): SampleADMMessageHandler:onRegistrationError SERVICE_NOT_AVAILABLE 08-02 14:44:15.252: D/PhoneWindow(10678): inside getOptionsPanelGravity 08-02 14:44:15.252: D/PhoneWindow(10678): gravity is : 8388693 08-02 14:44:15.442: E/ActivityThread(22262): Service com.amazon.device.messaging.PrivateADMRegistrationService has leaked ServiceConnection com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager$CredentialManagerServiceConnection@41180038 that was originally bound here 08-02 14:44:15.442: E/ActivityThread(22262): android.app.ServiceConnectionLeaked: Service com.amazon.device.messaging.PrivateADMRegistrationService has leaked ServiceConnection com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager$CredentialManagerServiceConnection@41180038 that was originally bound here 08-02 14:44:15.442: E/ActivityThread(22262): at android.app.LoadedApk$ServiceDispatcher. (LoadedApk.java:1024) 08-02 14:44:15.442: E/ActivityThread(22262): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:918) 08-02 14:44:15.442: E/ActivityThread(22262): at android.app.ContextImpl.bindService(ContextImpl.java:1156) 08-02 14:44:15.442: E/ActivityThread(22262): at android.content.ContextWrapper.bindService(ContextWrapper.java:387) 08-02 14:44:15.442: E/ActivityThread(22262): at com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager.synBindService(AmazonCredentialManager.java:409) 08-02 14:44:15.442: E/ActivityThread(22262): at com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager.access$2(AmazonCredentialManager.java:375) 08-02 14:44:15.442: E/ActivityThread(22262): at com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager$BindAndDoTask.doInBackground(AmazonCredentialManager.java:527) 08-02 14:44:15.442: E/ActivityThread(22262): at com.amazon.identity.auth.device.authorization.api.AmazonCredentialManager$BindAndDoTask.doInBackground(AmazonCredentialManager.java:1) 08-02 14:44:15.442: E/ActivityThread(22262): at com.amazon.identity.auth.device.authorization.api.AbstractCredentialManagerAsyncTask.doInBackground(AbstractCredentialManagerAsyncTask.java:1) 08-02 14:44:15.442: E/ActivityThread(22262): at android.os.AsyncTask$2.call(AsyncTask.java:264) 08-02 14:44:15.442: E/ActivityThread(22262): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 08-02 14:44:15.442: E/ActivityThread(22262): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 08-02 14:44:15.442: E/ActivityThread(22262): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 08-02 14:44:15.442: E/ActivityThread(22262): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 08-02 14:44:15.442: E/ActivityThread(22262): at java.lang.Thread.run(Thread.java:856) someone can help me , please!
amazon device messaging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ethertree avatar image
ethertree answered
Just in case it's related to your problem I found the reason I was getting the SERVICE_NOT_AVAILABLE error was I had not yet registered the device with an Amazon account. I did not get your NoCredentialsException, but that might be down to the specific device you are using (I am using a Kindle Fire HD just now). That exception does suggest the registrationId has no Amazon account to attach to.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bipin@Amazon avatar image
Bipin@Amazon answered
It looks like your device has no credentials. com.amazon.dcp.sso.NoCredentialsException: SSO Could not fetch credentials >>>>> error occurs when the device or emulator is not registered. Pull down the notification bar, choose more option, Go to My accounts and register the device. Let us know, if this solves the issue.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.