FATAL EXCEPTION: highpool[11] when send and receive payload using nearby connections API - google-nearby

I have an application android that using nearby connections API to communicate between 2 devices. But when i run in long time it throw an exception and restart service.
DeviceDoctorHandler Crash Hash: ad2abb125bf96bd465c5dbafb8140da7ddfbfd31
DeviceDoctorHandler Shushing crash.
DeviceDoctorHandler FATAL EXCEPTION: highpool[11]
DeviceDoctorHandler Process: com.google.android.gms.nearby.connection, PID: 31625
DeviceDoctorHandler java.util.ConcurrentModificationException
DeviceDoctorHandler at pj.a(:com.google.android.gms#11746430:24)
DeviceDoctorHandler at pj.a(:com.google.android.gms#11746430:14)
DeviceDoctorHandler at pj.put(:com.google.android.gms#11746430:3)
DeviceDoctorHandler at xvs.a(:com.google.android.gms#11746430:139)
DeviceDoctorHandler at xus.a(:com.google.android.gms#11746430:16)
DeviceDoctorHandler at xup.run(:com.google.android.gms#11746430:8)
DeviceDoctorHandler at mmu.run(:com.google.android.gms#11746430:26)
DeviceDoctorHandler at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
DeviceDoctorHandler at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
DeviceDoctorHandler at mse.run(:com.google.android.gms#11746430)
DeviceDoctorHandler at java.lang.Thread.run(Thread.java:762)
DeviceDoctorHandler
Can anyone help me
Many thanks!

Related

Exception in thread "main" java.net.ConnectException: Connection timed out flutter while developing apk?

I have been struck in this error while installing the app in the smart phone. I have also google the errors but none of them works.
Here is the given below the log of errors
Any Help would be appreciated and thanks in advance
Launching lib\main.dart on M2006C3MG in debug mode...
Running Gradle task 'assembleDebug'...
Exception in thread "main" java.net.ConnectException: Connection timed out: connect
at java.base/java.net.PlainSocketImpl.connect0(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.Socket.connect(Socket.java:609)
at java.base/java.net.Socket.connect(Socket.java:558)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:526)
at java.base/sun.net.www.http.HttpClient$1.run(HttpClient.java:524)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:523)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:564)
at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:373)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:212)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1208)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:189)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
at org.gradle.wrapper.Download.download(Download.java:44)
at org.gradle.wrapper.Install$1.call(Install.java:61)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Exception: Gradle task assembleDebug failed with exit code 1

WebSphere Liberty Server not starting up on MacOS

My Liberty Server was working fine a couple of days back but now I am getting some errors and the server is in "Started" state but the application is in "Stopped" state. When I checked the error logs, I could see that the application was not able to connect to Redis.
Some additional details about the environment:
Cisco VPN
IBM Cloud
Eclipse 2019-12 (4.14.0)
MacOS Monterey 12.4
Custom DNS set to (8.8.8.8) and Search domain is (ibm.com)
Redis is running on IBM Cloud
Redisson Java client for connecting to Redis
StackTrace of the error:
java.util.concurrent.RejectedExecutionException: event executor terminated
at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:932)
at io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:351)
at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:344)
at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:834)
at io.netty.util.concurrent.SingleThreadEventExecutor.execute0(SingleThreadEventExecutor.java:825)
at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:815)
at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:841)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:499)
at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)
at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:605)
at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPromise.java:96)
at io.netty.channel.group.DefaultChannelGroupFuture.setSuccess0(DefaultChannelGroupFuture.java:200)
at io.netty.channel.group.DefaultChannelGroupFuture.access$400(DefaultChannelGroupFuture.java:41)
at io.netty.channel.group.DefaultChannelGroupFuture$1.operationComplete(DefaultChannelGroupFuture.java:75)
at io.netty.channel.group.DefaultChannelGroupFuture$1.operationComplete(DefaultChannelGroupFuture.java:48)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)
at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)
at io.netty.util.concurrent.DefaultPromise.setSuccess0(DefaultPromise.java:605)
at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:104)
at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:84)
at io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChannel.java:1164)
at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:755)
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:731)
at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:620)
at io.netty.channel.nio.NioEventLoop.closeAll(NioEventLoop.java:772)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:529)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:750)
[err] com.ibm.srm.utils.cache.CacheException: Unable to connect to Redis server
[err] at com.ibm.srm.utils.cache.impl.RedissonConnector.connect(RedissonConnector.java:122)
[err] at com.ibm.srm.utils.cache.osgi.Activator.start(Activator.java:28)
[err] at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)
[err] at [internal classes]
[err] at java.security.AccessController.doPrivileged(Native Method)
[err] at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)
[err] at [internal classes]
[err] at java.security.AccessController.doPrivileged(Native Method)
[err] at org.apache.aries.subsystem.core.internal.BasicSubsystem.start(BasicSubsystem.java:321)
[err] at [internal classes]
[err] at com.ibm.ws.app.manager.esa.internal.DeploySubsystemAction.access$000(DeploySubsystemAction.java:75)
[err] at com.ibm.ws.app.manager.esa.internal.DeploySubsystemAction$2$1.run(DeploySubsystemAction.java:253)
[err] at [internal classes]
[err] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[err] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[err] at java.lang.Thread.run(Thread.java:750)
[err] Caused by: org.redisson.client.RedisConnectionException: Unable to connect to Redis server: <server-host:server-port removed for security reasons>
[err] at org.redisson.connection.pool.ConnectionPool$1.lambda$run$0(ConnectionPool.java:159)
[err] at org.redisson.misc.RedissonPromise.lambda$onComplete$0(RedissonPromise.java:183)
[err] at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)
[err] at [internal classes]
[err] at org.redisson.connection.pool.ConnectionPool.lambda$createConnection$1(ConnectionPool.java:295)
[err] at org.redisson.misc.RedissonPromise.lambda$onComplete$0(RedissonPromise.java:183)
[err] at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)
[err] at [internal classes]
[err] ... 1 more
[err] Caused by: io.netty.channel.ConnectTimeoutException: connection timed out: <server-host:server-port removed for security reasons>
[err] at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:261)
[err] at [internal classes]
[err] ... 8 more
[AUDIT ] CWWKT0017I: Web application removed (default_host): http://192.168.1.20:9080/srm/tsdqueries/
[AUDIT ] CWWKZ0022W: Application TSD has not started in 29.999 seconds.
[AUDIT ] CWWKF0012I: The server installed the following features: [appSecurity-2.0, beanValidation-1.1, cdi-1.2, distributedMap-1.0, ejbLite-3.2, el-3.0, httpWhiteboard-1.0, jaxb-2.2, jaxrs-2.0, jaxrsClient-2.0, jdbc-4.1, jndi-1.0, jpa-2.1, jpaContainer-2.1, jsf-2.2, json-1.0, jsonp-1.0, jsp-2.3, localConnector-1.0, managedBeans-1.0, osgiBundle-1.0, servlet-3.1, ssl-1.0, webProfile-7.0, websocket-1.1].
[AUDIT ] CWWKF0011I: The TS server started in 34.396 seconds.
TSD Query bundle stopped in 36.941 secs
TSD Query bundle initialized in 50.74 secs
Common-Utilities bundle stopped
[AUDIT ] CWWKZ0402E: A bundle exception was generated when trying to install the application TSD into an OSGi framework. The error text from the OSGi framework is: Exception in com.ibm.srm.utils.cache.osgi.Activator.start() of bundle Common-Utilities-Cache.
[AUDIT ] CWWKN2001A: HTTP Whiteboard context root removed: http://192.168.1.20:9080/osgi/http/TSD
[AUDIT ] CWWKZ0012I: The application TSD was not started.
I tried changing the "connectTimeout" property in the redis.properties file from 10000 to 20000 and it didn't work. Tried switching my networks also and still it did not work.
Edit: At times, I also get this error:
Unable to init enough connections amount! Only 4 of 5 were initialized. Redis server: <server-host:server-port removed for security reasons>

Works fine on debug and profile mode, not works on release mode

The app works fine on debug and profile mode but not on release mode. When I click the button "listen to voice" it crashes. In debug and profile mode, I click it and there is no problem. I run my app with this: flutter run --release and I see this error:
E/AndroidRuntime(24397): FATAL EXCEPTION: main
E/AndroidRuntime(24397): Process: com.konukcustudio.sprien, PID: 24397
E/AndroidRuntime(24397): java.lang.IllegalStateException: Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core'
E/AndroidRuntime(24397): at g.a.x1.p.a(Unknown Source:4)
E/AndroidRuntime(24397): at g.a.x1.q.h(Unknown Source:55)
E/AndroidRuntime(24397): at g.a.x1.q.b(Unknown Source:0)
E/AndroidRuntime(24397): at g.a.x1.e.a(Unknown Source:16)
E/AndroidRuntime(24397): at g.a.y1.a.a(Unknown Source:15)
E/AndroidRuntime(24397): at g.a.y1.a.a(Unknown Source:5)
E/AndroidRuntime(24397): at g.a.d0.a(Unknown Source:41)
E/AndroidRuntime(24397): at g.a.a.a(Unknown Source:3)
E/AndroidRuntime(24397): at g.a.d.a(Unknown Source:22)
E/AndroidRuntime(24397): at g.a.c.a(Unknown Source:0)
E/AndroidRuntime(24397): at g.a.d.a(Unknown Source:12)
E/AndroidRuntime(24397): at g.a.c.a(Unknown Source:0)
E/AndroidRuntime(24397): at c.c.a.a.g.a(Unknown Source:139)
E/AndroidRuntime(24397): at c.c.a.a.b.onMethodCall(Unknown Source:706)
E/AndroidRuntime(24397): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(Unknown Source:17)
E/AndroidRuntime(24397): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(Unknown Source:57)
E/AndroidRuntime(24397): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(Unknown Source:4)
E/AndroidRuntime(24397): at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(24397): at android.os.MessageQueue.next(MessageQueue.java:326)
E/AndroidRuntime(24397): at android.os.Looper.loop(Looper.java:181)
E/AndroidRuntime(24397): at android.app.ActivityThread.main(ActivityThread.java:7050)
E/AndroidRuntime(24397): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(24397): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
E/AndroidRuntime(24397): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Hi this problem has already been discussed here
just
add these as dependencies (check latest version too)
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.6'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.6'
Sometimes in 'debug' mode errors are shown as warnings.
Please provide the log and a bit of code when performing the same function when in ' --debug ' mode.

Internal Exception: org.postgresql.util.PSQLException: Connection to localhost:8461 refused

While starting a Spring boot application I am getting the following error org.postgresql.util.PSQLException SQL Exception State : 08001. See the complete logs below
I have tried restarting the postgres server using systemctl restart postgresql-9.6 and the application worked fine then but I am not able to figure out why it occurred in first place.
2019-06-26 12:03:24 IST +0530 INFO com.entrust.cm.utils.ApplicationConfig:110 - sslfactory : org.postgresql.ssl.NonValidatingFactory
2019-06-26 12:03:24 IST +0530 ERROR com.entrust.cm.utils.ApplicationConfig:176 - Error while creating Database: Connection to localhost:8461 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
2019-06-26 12:03:24 IST +0530 ERROR com.entrust.cm.utils.ApplicationConfig:211 - Error while creating Schema : {}; Code : {} Connection to localhost:8461 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. : SQL Exception State : 08001
2019-06-26 12:03:24 IST +0530 WARN com.entrust.cm.utils.ApplicationConfig:79 - Search base already set
2019-06-26 12:03:25 IST +0530 INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean:415 - Initialized JPA EntityManagerFactory for persistence unit 'entityManagerFactory'
2019-06-26 12:03:25 IST +0530 INFO org.hibernate.validator.internal.util.Version:21 - HV000001: Hibernate Validator 6.0.3.Final
2019-06-26 12:03:26 IST +0530 WARN org.springframework.web.context.support.XmlWebApplicationContext:554 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'enrollmentFilerDaoImpl': Unsatisfied dependency expressed through field 'componentManagementDaoImpl'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'componentManagementDaoImpl' defined in com.entrust.cm.utils.ApplicationConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.entrust.cm.dao.ComponentManagementDaoImpl]: Factory method 'componentManagementDaoImpl' threw exception; nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.0.v20170811-d680af5): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: Connection to localhost:8461 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Error Code: 0
2019-06-26 12:03:26 IST +0530 ERROR org.springframework.web.servlet.DispatcherServlet:533 - Context initialization failed
I am not able to get do the Root cause analysis of this error.

What causes wildfly memcached error and what is the solution?

14:13:54,515 ERROR [stderr] (Memcached IO over {MemcachedConnection to /172.16.0.63:11211 /172.16.0.66:11211 /172.16.0.68:11211}) 2017-10-20 14:13:54.515 INFO net.spy.memcached.MemcachedConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl#19f3d5d5
14:13:54,516 ERROR [stderr] (Memcached IO over {MemcachedConnection to /172.16.0.63:11211 /172.16.0.66:11211 /172.16.0.68:11211}) 2017-10-20 14:13:54.516 INFO net.spy.memcached.MemcachedConnection: Reconnecting due to failure to connect to {QA sa=/172.16.0.68:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
14:13:54,516 ERROR [stderr] (Memcached IO over {MemcachedConnection to /172.16.0.63:11211 /172.16.0.66:11211 /172.16.0.68:11211}) java.net.ConnectException: Connection timed out: no further information