Unable to get push token. Getting error: 907135004, EXECUTE_TIMEOUT - huawei-mobile-services

I was able to get the token for push couple hours ago. After I reinstalled the application, I couldn't get the push token anymore and was getting error EXECUTE_TIMEOUT. According to HMS documentation, it suggested me to contact customer service. I'm unable to get registration token multiple times and don't know what is causing this to happen. My application code for getting the push token never changed, it worked before but not now.
Here is the log:
2021-05-10 15:37:45.969 29250-30669/com.myapp.push I/HMSSDK_PendingResultImpl: setResult:0
2021-05-10 15:37:45.973 29250-29250/com.myapp.push I/HMSSDK_BaseAdapter: baseCallBack.onComplete
2021-05-10 15:37:45.975 29250-29250/com.myapp.push I/HMSSDK_HmsClient: receive msg status_code:0, error_code907135004, api_name:push.gettoken, app_id:100000000|, pkg_name:com.myapp.push, session_id:*, transaction_id:100000000ttoken20210510153735889477123, resolution:null
2021-05-10 15:37:45.976 29250-29250/com.myapp.push E/HMSSDK_HmsInstanceIdEx: TokenTask failed, ErrorCode: 907135004
2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: com.huawei.hms.common.ApiException: 907135004: execute timeout
2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.opendevice.a.a(ErrorEnum.java:272)
2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.opendevice.i.doExecute(GetTokenTask.java:58)
2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.opendevice.i.doExecute(GetTokenTask.java:34)
2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.common.internal.TaskApiCall.onResponse(TaskApiCall.java:190)
2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager$1.onCallback(HuaweiApiManager.java:272)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.common.internal.HmsClient$a.a(HmsClient.java:100)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.common.internal.HmsClient$a.onComplete(HmsClient.java:122)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.adapter.BaseAdapter$BaseRequestResultCallback.a(BaseAdapter.java:277)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.adapter.BaseAdapter$BaseRequestResultCallback.onResult(BaseAdapter.java:252)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.adapter.BaseAdapter$BaseRequestResultCallback.onResult(BaseAdapter.java:175)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.support.api.PendingResultImpl$a.b(PendingResultImpl.java:490)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.support.api.PendingResultImpl$a.handleMessage(PendingResultImpl.java:467)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at android.os.Handler.dispatchMessage(Handler.java:110)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at android.os.Looper.loop(Looper.java:219)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8387)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
2021-05-10 15:37:45.975 29250-29250/com.myapp.push I/HMSSDK_HmsClient: receive msg status_code:0, error_code907135004, api_name:push.gettoken, app_id:100000000|, pkg_name:com.myapp.push, session_id:*, transaction_id:100000000ttoken20210510153735889477123, resolution:null 2021-05-10 15:37:45.976 29250-29250/com.myapp.push E/HMSSDK_HmsInstanceIdEx: TokenTask failed, ErrorCode: 907135004 2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: com.huawei.hms.common.ApiException: 907135004: execute timeout 2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.opendevice.a.a(ErrorEnum.java:272) 2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.opendevice.i.doExecute(GetTokenTask.java:58) 2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.opendevice.i.doExecute(GetTokenTask.java:34) 2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.common.internal.TaskApiCall.onResponse(TaskApiCall.java:190) 2021-05-10 15:37:45.978 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager$1.onCallback(HuaweiApiManager.java:272) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.common.internal.HmsClient$a.a(HmsClient.java:100) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.common.internal.HmsClient$a.onComplete(HmsClient.java:122) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.adapter.BaseAdapter$BaseRequestResultCallback.a(BaseAdapter.java:277) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.adapter.BaseAdapter$BaseRequestResultCallback.onResult(BaseAdapter.java:252) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.adapter.BaseAdapter$BaseRequestResultCallback.onResult(BaseAdapter.java:175) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.support.api.PendingResultImpl$a.b(PendingResultImpl.java:490) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.huawei.hms.support.api.PendingResultImpl$a.handleMessage(PendingResultImpl.java:467) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at android.os.Handler.dispatchMessage(Handler.java:110) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at android.os.Looper.loop(Looper.java:219) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at android.app.ActivityThread.main(ActivityThread.java:8387) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at java.lang.reflect.Method.invoke(Native Method) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) 2021-05-10 15:37:45.979 29250-30477/com.myapp.push W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)

This error code suggests that AIDL has a call timed out. Please try the steps as below:
Check whether your phone has internet access, verify that the network connection is stable and the notification function is enabled on the device.
Clear the app cache, HMS Core (APK) cache and restart the device.
Please verify that the token on the device is correct. You can send a message to the device from the console of AppGallery Connect. If the message was sent from the console but you still cannot receive it on the phone, the token has expired or the device configuration is incorrect. Please check the token and configure device permissions. If the message is successfully sent and received, we can conclude that the API parameters are set incorrectly.
Please check the format of the message body encapsulated on the server. You are advised to check the message body fields by referring to Sending Downlink Messages.

Related

SOAP Service Error: org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope

I just migrated my soap service from old server to new server and starts getting this error. Soap service is deployed on IIS. I have checked the WSDL on both servers and they are same.
W/System.err: org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <html>#1:7 in java.io.InputStreamReader#d6c3cee)
W/System.err: at org.kxml2.io.KXmlParser.require(KXmlParser.java:2125)
at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:128)
at org.ksoap2.transport.Transport.parseResponse(Transport.java:129)
W/System.err: at org.ksoap2.transport.HttpTransportSE.parseResponse(HttpTransportSE.java:304)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:276)
at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:118)
at com.prodserver.tfandroid.services.soap.TFService.getUserLogin(TFService.java:255)
at com.prodserver.tfandroid.ui.activity.LoginActivity$LoginAsyncTask.doInBackground(LoginActivity.java:234)
W/System.err: at com.prodserver.tfandroid.ui.activity.LoginActivity$LoginAsyncTask.doInBackground(LoginActivity.java:214)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)

Problem with Jboss EAP 7 server.log and application log

i have the following problem with jboss log and my application log. Some errors are write in server log in this way
15:46:16,834 ERROR [io.undertow.request] (default task-41) UT005023: Exception handling request to /fnsuap/cmd/home: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.conversation.impl.LockTimeoutException: Unable to acquire conversation lock after 30 seconds
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
....
And then are write in my application log in this way:
[09/06/20 03:46:15:015 CEST] ERROR stderr: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.conversation.impl.LockTimeoutException: Unable to acquire conversation lock after 30 seconds
[09/06/20 03:46:15:015 CEST] ERROR stderr: at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
[09/06/20 03:46:15:015 CEST] ERROR stderr: at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
...
So is like every line of stacktrace is a new error.
Why this happens? How can i solve this?
Use log4j1.2

java.security.KeyStoreException: java.security.NoSuchAlgorithmException: KeyStore jks implementation not found

In my application i am using xmpp and openfir for chat. Chat is working fine but in log i am getting below exception. I googled it I couldn't find an answer. Where should i implement jks
05-25 12:59:27.245 25643-26419/com.it.example D/SMACK: 12:59:27 PM SENT (161744330): <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
05-25 12:59:27.365 25643-26419/com.it.example D/SMACK: 12:59:27 PM RCV (161744330):
05-25 12:59:27.365 25643-26419/com.it.example W/System.err: java.security.KeyStoreException: java.security.NoSuchAlgorithmException: KeyStore jks implementation not found
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: at java.security.KeyStore.getInstance(KeyStore.java:119)
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: at org.jivesoftware.smack.ServerTrustManager.(ServerTrustManager.java:71)
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: at org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:858)
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:250)
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:46)
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:72)
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: Caused by: java.security.NoSuchAlgorithmException: KeyStore jks implementation not found
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: at org.apache.harmony.security.fortress.Engine.notFound(Engine.java:190)
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: at org.apache.harmony.security.fortress.Engine.getInstance(Engine.java:139)
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: at java.security.KeyStore.getInstance(KeyStore.java:116)
05-25 12:59:27.375 25643-26419/com.it.example W/System.err: ... 5 more

Bluemix: bms-samples-android-helloauthentication error

I'm trying to run sample BMS app for Google based authorization
https://github.com/ibm-bluemix-mobile-services/bms-samples-android-helloauthentication
It runs on Android Studio emulator after changing targetSdkVersion to 22 in build.gradle (I've got java.lang.SecurityException: Missing android.permission.GET_ACCOUNTS before the change)
I've got following error on my physical device after pressing "Ping Bluemix" button:
02-25 12:32:49.446 30033-31086/com.ibm.helloauthentication E/mfpsdk.AuthorizationProcessManager: AuthorizationProcessManager.handleAuthorizationFailure in AuthorizationProcessManager.java:426 :: authorization process failed
02-25 12:32:49.446 30033-31096/com.ibm.helloauthentication W/System.err: at com.android.org.conscrypt.OpenSSLX509Certificate.checkValidity(OpenSSLX509Certificate.java:216)
02-25 12:32:49.446 30033-31096/com.ibm.helloauthentication W/System.err: at com.ibm.mobilefirstplatform.clientsdk.android.security.internal.certificate.CertificatesUtility.checkValidityWithPublicKey(CertificatesUtility.java:59)
02-25 12:32:49.446 30033-31096/com.ibm.helloauthentication W/System.err: at com.ibm.mobilefirstplatform.clientsdk.android.security.internal.AuthorizationProcessManager.saveCertificateFromResponse(AuthorizationProcessManager.java:214)
02-25 12:32:49.446 30033-31096/com.ibm.helloauthentication W/System.err: ... 12 more
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: Get request to Bluemix failed: THROWNjava.lang.RuntimeException: Failed to save certificate from response
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.ibm.mobilefirstplatform.clientsdk.android.security.internal.AuthorizationProcessManager.saveCertificateFromResponse(AuthorizationProcessManager.java:222)
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.ibm.mobilefirstplatform.clientsdk.android.security.internal.AuthorizationProcessManager.access$100(AuthorizationProcessManager.java:51)
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.ibm.mobilefirstplatform.clientsdk.android.security.internal.AuthorizationProcessManager$1.handleAuthorizationSuccessResponse(AuthorizationProcessManager.java:133)
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.ibm.mobilefirstplatform.clientsdk.android.security.internal.AuthorizationProcessManager$InnerAuthorizationResponseListener.onSuccess(AuthorizationProcessManager.java:469)
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.ibm.mobilefirstplatform.clientsdk.android.security.internal.AuthorizationRequestAgent.processResponse(AuthorizationRequestAgent.java:388)
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.ibm.mobilefirstplatform.clientsdk.android.security.internal.AuthorizationRequestAgent.processResponseWrapper(AuthorizationRequestAgent.java:542)
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.ibm.mobilefirstplatform.clientsdk.android.security.internal.AuthorizationRequestAgent.onSuccess(AuthorizationRequestAgent.java:513)
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.ibm.mobilefirstplatform.clientsdk.android.core.api.internal.BaseRequest$1.onResponse(BaseRequest.java:419)
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:170)
02-25 12:32:49.451 30033-31096/com.ibm.helloauthentication E/MainActivity: at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
Any ideas?
Updated that sample to use the correct permissions handling so you should be able to run it at SDK 23+ assuming you grant the permission when prompted.
I am still unable to recreate your specific issue on a physical device, but for this type of failure I would suggest first verifying that a bad header hasn't been cached (resolved by uninstalling and reinstalling the application) and should that fail I would recommend removing the certificate from Bluemix and re-adding it to reset the permissions and grants associated with it.

Communication with jmdns.jar

I am using jmdns library to discover mDNS service advertise by other devices in network. I am using Android 4.2. I have downloaded demo application from jmdns official website and AndroidDnssdDiscoveryEclipse application is getting crashed at..
jmdns = JmDNS.create();
Here is the log..
07-25 18:15:57.343: W/dalvikvm(26977): threadid=1: thread exiting with uncaught exception (group=0x41526930)
07-25 18:16:11.703: D/dalvikvm(26977): Debugger has detached; object registry had 480 entries
07-25 18:16:11.703: I/dalvikvm(26977): ignoring registerObject request in thread=1
07-25 18:16:11.703: I/dalvikvm(26977): ignoring registerObject request in thread=1
07-25 18:16:11.726: E/AndroidRuntime(26977): FATAL EXCEPTION: main
07-25 18:16:11.726: E/AndroidRuntime(26977): java.lang.NoClassDefFoundError: javax.jmdns.JmDNS
07-25 18:16:11.726: E/AndroidRuntime(26977): at com.heeere.android.dnssdtuto.DnssdDiscovery.setUp(DnssdDiscovery.java:44)
07-25 18:16:11.726: E/AndroidRuntime(26977): at com.heeere.android.dnssdtuto.DnssdDiscovery.access$0(DnssdDiscovery.java:38)
07-25 18:16:11.726: E/AndroidRuntime(26977): at com.heeere.android.dnssdtuto.DnssdDiscovery$1.run(DnssdDiscovery.java:27)
07-25 18:16:11.726: E/AndroidRuntime(26977): at android.os.Handler.handleCallback(Handler.java:725)
07-25 18:16:11.726: E/AndroidRuntime(26977): at android.os.Handler.dispatchMessage(Handler.java:92)
07-25 18:16:11.726: E/AndroidRuntime(26977): at android.os.Looper.loop(Looper.java:137)
07-25 18:16:11.726: E/AndroidRuntime(26977): at android.app.ActivityThread.main(ActivityThread.java:5061)
07-25 18:16:11.726: E/AndroidRuntime(26977): at java.lang.reflect.Method.invokeNative(Native Method)
07-25 18:16:11.726: E/AndroidRuntime(26977): at java.lang.reflect.Method.invoke(Method.java:511)
07-25 18:16:11.726: E/AndroidRuntime(26977): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
07-25 18:16:11.726: E/AndroidRuntime(26977): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
07-25 18:16:11.726: E/AndroidRuntime(26977): at dalvik.system.NativeStart.main(Native Method)
07-25 18:16:11.796: D/dalvikvm(26977): GC_CONCURRENT freed 237K, 13% free 2560K/2932K, paused 5ms+9ms, total 80ms
07-25 18:21:11.921: I/Process(26977): Sending signal. PID: 26977 SIG: 9
Here (jmdns.jar not working on android 4.0 or later), it is mentioned that jmdns.jar does not work with Android 4.0 or later but I have used ZeroConf Browser (uses jmdns) on my device and works perfectly.
While debugging application I have found that my application can not find jmdns.jar file. I have not done anything to jmdns.jar file accept I have removed original jmdns.jar file(1kb) from application directory and in place of it I have put jmdns.jar file(200kb) which comes along with download.
I had the same problem.
jmsdn-3.4.1.jar downloaded from SourceForge.net was compiled not for Dalvik vm (Android).
I solved dowloading source files from SourceForge.net and rebuild jmdns.jar to use with Android projets.