Wildfly with java 11 startup error javax.net.ssl - ssl

I am using java 11 and wildfly 23 - however when i try to start it up i get the below error.
17:30:36,489 ERROR [stderr] (MSC service thread 1-4) javax.net.ssl|DEBUG|13|MSC service thread 1-4| |SSLCipher.java:437|jdk.tls.keyLimits: entry = AES/GCM/NoPadding KeyUpdate 2^37. AES/GCM/NOPADDING:KEYUPDATE = 137438953472
I have configured the security realm with keystore and password as below.
<security-realm name="secRealm">
<server-identities>
<ssl>
<keystore provider="${javax.net.ssl.keyStoreType}" path="${javax.net.ssl.keyStore}" keystore-password="${javax.net.ssl.keyStorePassword}" alias="testcert"/>
</ssl>
</server-identities>
</security-realm>
I am not sure what is causing the error - however, i suspect that i might need to import certs into jdk 11 security.
Also is it possible to specify trustStore and trustStorePassword on wildfly standalone xml ?
I have also tried to specify the truststore on startup jvm options, standalone.conf
#
# Specify options to pass to the Java VM.
#
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms512m -Xmx1024m -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m -Djava.net.preferIPv4Stack=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStore=path -Djavax.net.ssl.trustStorePassword=password -Djavax.net.debug=all"
else
echo "JAVA_OPTS already set in environment; overriding default settings with values: $JAVA_OPTS"
fi
However i keep getting the same or similar error
AST|TransportContext.java:313|Fatal (INTERNAL_ERROR): problem unwrapping net record (
2021-09-15 14:33:49,430 ERROR [stderr] (default I/O-6) "throwable" : {
2021-09-15 14:33:49,430 ERROR [stderr] (default I/O-6) javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
2021-09-15 14:33:49,430 ERROR [stderr] (default I/O-6) at java.base/sun.security.ssl.SSLEngineInputRecord.bytesInCompletePacket(SSLEngineInputRecord.java:146)
2021-09-15 14:33:49,430 ERROR [stderr] (default I/O-6) at java.base/sun.security.ssl.SSLEngineInputRecord.bytesInCompletePacket(SSLEngineInputRecord.java:64)
2021-09-15 14:33:49,430 ERROR [stderr] (default I/O-6) at java.base/sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:548)
2021-09-15 14:33:49,430 ERROR [stderr] (default I/O-6) at java.base/sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:443)
2021-09-15 14:33:49,430 ERROR [stderr] (default I/O-6) at java.base/sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:422)
2021-09-15 14:33:49,430 ERROR [stderr] (default I/O-6) at io.undertow.core#2.2.5.Final//io.undertow.protocols.ssl.SslConduit.doUnwrap(SslConduit.java:762)
2021-09-15 14:33:49,431 ERROR [stderr] (default I/O-6) at io.undertow.core#2.2.5.Final//io.undertow.protocols.ssl.SslConduit.read(SslConduit.java:587)
2021-09-15 14:33:49,431 ERROR [stderr] (default I/O-6) at org.jboss.xnio#3.8.4.Final//org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127)
2021-09-15 14:33:49,431 ERROR [stderr] (default I/O-6) at io.undertow.core#2.2.5.Final//io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:158)
2021-09-15 14:33:49,431 ERROR [stderr] (default I/O-6) at io.undertow.core#2.2.5.Final//io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
2021-09-15 14:33:49,431 ERROR [stderr] (default I/O-6) at io.undertow.core#2.2.5.Final//io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:162)
2021-09-15 14:33:49,431 ERROR [stderr] (default I/O-6) at io.undertow.core#2.2.5.Final//io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:100)
2021-09-15 14:33:49,431 ERROR [stderr] (default I/O-6) at io.undertow.core#2.2.5.Final//io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:57)
2021-09-15 14:33:49,431 ERROR [stderr] (default I/O-6) at org.jboss.xnio#3.8.4.Final//org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
2021-09-15 14:33:49,431 ERROR [stderr] (default I/O-6) at org.jboss.xnio#3.8.4.Final//org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:291)
2021-09-15 14:33:49,432 ERROR [stderr] (default I/O-6) at org.jboss.xnio#3.8.4.Final//org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:286)
2021-09-15 14:33:49,432 ERROR [stderr] (default I/O-6) at org.jboss.xnio#3.8.4.Final//org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
2021-09-15 14:33:49,432 ERROR [stderr] (default I/O-6) at org.jboss.xnio#3.8.4.Final//org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
2021-09-15 14:33:49,432 ERROR [stderr] (default I/O-6) at org.jboss.xnio#3.8.4.Final//org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
2021-09-15 14:33:49,432 ERROR [stderr] (default I/O-6) at org.jboss.xnio.nio#3.8.4.Final//org.xnio.nio.QueuedNioTcpServer2.acceptTask(QueuedNioTcpServer2.java:178)
2021-09-15 14:33:49,432 ERROR [stderr] (default I/O-6) at org.jboss.xnio.nio#3.8.4.Final//org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)
2021-09-15 14:33:49,432 ERROR [stderr] (default I/O-6) at org.jboss.xnio.nio#3.8.4.Final//org.xnio.nio.WorkerThread.run(WorkerThread.java:479)}

Related

com.android.ddmlib.InstallException: An established connection was aborted by the software in host machine

I am getting this error while trying to test a React Native project on a physical device (Redmi Note 10) using yarn from VSCode terminal.
Note 1: Previous versions of the app has been tested numerous times on the same device before, successfully.
Note 2: The current version of the app is running (read: yielding expected results while testing) on a different device (Samsung Galaxy 21A).
Here's the error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: An established connection was aborted by the software in your host machine
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 7s
at makeError ([app_folder]\node_modules\execa\index.js:174:9)
at [app_folder]\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async runOnAllDevices ([app_folder]\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction ([app_folder]\node_modules\#react-native-community\cli\build\index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Here's the partial stack trace:
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
[Device]: Error during Sync: An established connection was aborted by the software in your host machine
Unable to install [app_folder]\android\app\build\outputs\apk\debug\app-debug.apk
com.android.ddmlib.InstallException: An established connection was aborted by the software in your host machine
at com.android.ddmlib.internal.DeviceImpl.installPackage(DeviceImpl.java:1150)
at com.android.ddmlib.internal.DeviceImpl.installPackage(DeviceImpl.java:1112)
at com.android.ddmlib.internal.DeviceImpl.installPackage(DeviceImpl.java:1101)
at com.android.build.gradle.internal.testing.ConnectedDevice.installPackage(ConnectedDevice.java:127)
at com.android.build.gradle.internal.tasks.InstallVariantTask.install(InstallVariantTask.java:159)
at com.android.build.gradle.internal.tasks.InstallVariantTask.lambda$doTaskAction$1(InstallVariantTask.java:96)
at com.android.builder.testing.api.DeviceProvider.use(DeviceProvider.java:53)
at com.android.build.gradle.internal.tasks.InstallVariantTask.doTaskAction(InstallVariantTask.java:91)
at com.android.build.gradle.internal.tasks.NonIncrementalTask$taskAction$$inlined$recordTaskAction$1.invoke(BaseTask.kt:63)
at com.android.build.gradle.internal.tasks.Blocks.recordSpan(Blocks.java:51)
at com.android.build.gradle.internal.tasks.NonIncrementalTask.taskAction(NonIncrementalTask.kt:94)
at java.base#11.0.8/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base#11.0.8/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base#11.0.8/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base#11.0.8/java.lang.reflect.Method.invoke(Method.java:566)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
at org.gradle.api.internal.tasks.execution.TaskExecution$2.run(TaskExecution.java:239)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:224)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:207)
at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:190)
at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:168)
at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:89)
at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:40)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:53)
at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:50)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:50)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:40)
at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:68)
at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:38)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:36)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:29)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:61)
at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:42)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:60)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:27)
at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:188)
at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:75)
at org.gradle.internal.Either$Right.fold(Either.java:175)
at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59)
at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:73)
at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:48)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:38)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:27)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:109)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:56)
at java.base#11.0.8/java.util.Optional.orElseGet(Optional.java:369)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:56)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:73)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:44)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:89)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:50)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:114)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:57)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:76)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:50)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:93)
at java.base#11.0.8/java.util.Optional.orElseGet(Optional.java:369)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:93)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:43)
at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:31)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:40)
at org.gradle.api.internal.tasks.execution.TaskExecution$3.withWorkspace(TaskExecution.java:284)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:40)
at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:44)
at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:33)
at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:76)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:142)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:131)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:74)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:402)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:389)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:382)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:368)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at java.base#11.0.8/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base#11.0.8/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:61)
at java.base#11.0.8/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
at java.base/sun.nio.ch.SocketDispatcher.write0(Native Method)
at java.base/sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:113)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:79)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:50)
at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:466)
at com.android.ddmlib.AdbHelper.write(AdbHelper.java:1126)
at com.android.ddmlib.SyncService.doPushFile(SyncService.java:711)
at com.android.ddmlib.SyncService.pushFile(SyncService.java:427)
at com.android.ddmlib.internal.DeviceImpl.syncPackageToDevice(DeviceImpl.java:1234)
at com.android.ddmlib.internal.DeviceImpl.installPackage(DeviceImpl.java:1134)
... 134 more

Expo EAS build failing when compiling Expo (Expo Managed app)

I'm trying to compile my React Native app built using Expo (Expo managed workflow), and it keeps failing with this error
> Task :expo-application:compileReleaseKotlin FAILED
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (15, 21): Unresolved reference: core
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (16, 21): Unresolved reference: core
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (17, 21): Unresolved reference: core
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (18, 21): Unresolved reference: core
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (19, 21): Unresolved reference: core
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (20, 21): Unresolved reference: core
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (27, 58): Unresolved reference: ExportedModule
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (27, 84): Unresolved reference: RegistryLifecycleListener
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (28, 32): Unresolved reference: ModuleRegistry
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (29, 34): Unresolved reference: ActivityProvider
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (32, 3): 'getName' overrides nothing
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (36, 3): 'onCreate' overrides nothing
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (36, 41): Unresolved reference: ModuleRegistry
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (38, 50): Unresolved reference: ActivityProvider
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (42, 3): 'getConstants' overrides nothing
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (65, 4): Unresolved reference: ExpoMethod
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (66, 41): Unresolved reference: Promise
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (78, 4): Unresolved reference: ExpoMethod
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (79, 39): Unresolved reference: Promise
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (91, 4): Unresolved reference: ExpoMethod
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationModule.kt: (92, 40): Unresolved reference: Promise
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationPackage.kt: (4, 21): Unresolved reference: core
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationPackage.kt: (5, 21): Unresolved reference: core
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationPackage.kt: (7, 28): Unresolved reference: BasePackage
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationPackage.kt: (8, 3): 'createExportedModules' overrides nothing
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationPackage.kt: (8, 62): Unresolved reference: ExportedModule
[stderr] e: /root/workingdir/build/node_modules/expo-application/android/src/main/java/expo/modules/application/ApplicationPackage.kt: (9, 49): Unresolved reference: ExportedModule
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':expo-application:compileReleaseKotlin'.
[stderr] > Compilation error. See log for more details
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 3m 44s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
204 actionable tasks: 204 executed
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.
My package.json:
{
"name": "igas",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"#expo-google-fonts/poppins": "^0.1.0",
"#react-native-async-storage/async-storage": "^1.15.14",
"#react-native-community/masked-view": "^0.1.11",
"#react-native-community/netinfo": "^7.1.7",
"#react-navigation/native": "^6.0.6",
"#react-navigation/stack": "^6.0.11",
"axios": "^0.24.0",
"expo": "^44.0.0",
"expo-app-loading": "^1.3.0",
"expo-camera": "^12.1.0",
"expo-splash-screen": "^0.14.1",
"expo-status-bar": "^1.2.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "^0.66.4",
"react-native-dropdown-picker": "^5.2.3",
"react-native-elements": "^3.4.2",
"react-native-gesture-handler": "~2.1.0",
"react-native-reanimated": "^2.3.1",
"react-native-safe-area-context": "^3.3.2",
"react-native-screens": "~3.10.1",
"react-native-scroll-lazy": "^1.0.1",
"react-native-side-menu-updated": "^1.3.2",
"react-native-tab-view": "^2.15.2",
"react-native-unimodules": "^0.14.10",
"react-native-vector-icons": "^8.0.0",
"react-redux": "^7.2.6",
"redux": "^4.1.2",
"redux-thunk": "^2.4.1"
},
"devDependencies": {
"#babel/core": "^7.12.9"
},
"private": true
}
Tried updating all packages (project was previously on Expo SDK 42, updated to SDK 44).
When running expo upgrade some packages didn't update, so I had to do it by hand.
Make sure to check
Custom "main" entry point in package.json is not yet supported
From this article
https://docs.expo.dev/build-reference/migrating/

Is acquire(time,unit) method expected to return false when zookeeper is not available?seems that it would hang up

InterProcessMutex zLock=new InterProcessMutex(curatorFramework,lockPath);
zlock.acquire(time,unit);
just a simple example. I try to test the Network jitter problem, so I start the service,connect zookeeper and start the curator client, and then disable the network.
after that, I create a request which would call the zlock.acquire(time,unit).
It shows that the request return error response at least 1min later.
to debug the codes,the program stop in "createsTheLock" method.
In fact, I guess the expectation is to return false when zookeeper is not available.
Thanks for answerring the question!
update the question:
It's the base setting:
RetryPolicy retryPolicy=new ExponentialBackoffRetry(1000,3);
CuratorFramework curatorFramework= CuratorFrameworkFactory.builder().connectionTimeoutMs(15000).sessionTimeoutMs(60000).connectString(CommonConstant.ZK_CONNECT_HOSTS).retryPolicy(retryPolicy).build();
and it's the log:
2020-08-09 10:27:12.582 INFO 91181 --- [224.71.42:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server 10.224.71.42/10.224.71.42:2181. Will not attempt to authenticate using SASL (unknown error)
2020-08-09 10:27:12.582 ERROR 91181 --- [224.71.42:2181)] o.apache.zookeeper.ClientCnxnSocketNIO : Unable to open socket to 10.224.71.42/10.224.71.42:2181
2020-08-09 10:27:12.582 INFO 91181 --- [224.71.42:2181)] org.apache.zookeeper.ClientCnxn : Socket error occurred: 10.224.71.42/10.224.71.42:2181: Network is unreachable
2020-08-09 10:27:13.456 ERROR 91181 --- [tor-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl : Background operation retry gave up
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.apache.zookeeper.KeeperException.create(KeeperException.java:102) ~[zookeeper-3.5.6.jar:3.5.6]
at org.apache.curator.framework.imps.CuratorFrameworkImpl.checkBackgroundRetry(CuratorFrameworkImpl.java:851) [curator-framework-5.1.0.jar:5.1.0]
at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:999) [curator-framework-5.1.0.jar:5.1.0]
at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:952) [curator-framework-5.1.0.jar:5.1.0]
at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:66) [curator-framework-5.1.0.jar:5.1.0]
at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:342) [curator-framework-5.1.0.jar:5.1.0]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_241]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_241]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_241]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_241]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_241]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_241]
2020-08-09 10:27:13.457 ERROR 91181 --- [tor-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl : Background retry gave up
org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:981) [curator-framework-5.1.0.jar:5.1.0]
at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:952) [curator-framework-5.1.0.jar:5.1.0]
at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:66) [curator-framework-5.1.0.jar:5.1.0]
at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:342) [curator-framework-5.1.0.jar:5.1.0]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_241]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_241]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_241]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_241]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_241]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_241]
2020-08-09 10:27:14.684 INFO 91181 --- [26.102.59:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server 10.226.102.59/10.226.102.59:2181. Will not attempt to authenticate using SASL (unknown error)
2020-08-09 10:27:14.684 ERROR 91181 --- [26.102.59:2181)] o.apache.zookeeper.ClientCnxnSocketNIO : Unable to open socket to 10.226.102.59/10.226.102.59:2181
2020-08-09 10:27:14.684 INFO 91181 --- [26.102.59:2181)] org.apache.zookeeper.ClientCnxn : Socket error occurred: 10.226.102.59/10.226.102.59:2181: Network is unreachable
The request just hang up until 59s later, then return response;

Unable to Initialize InitialContext in JBoss AS 7.1

I am unable to initialize InitialContext and lookup for a string. Here is my code snippet :
java.util.Hashtable env = new java.util.Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.remote.client.InitialContextFactory");
env.put("java.naming.provider.url","remote://localhost:4447");
env.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
try
{
if(env != null)
ic = new InitialContext(env);
else
ic = new InitialContext();
this.connectionFactory = (ConnectionFactory)ic.lookup("java:/ConnectionFactory");
this.queue = (javax.jms.Queue)ic.lookup("java:jboss/exported/jms/queue/test");
}catch(Exception e){
e.printStackTrace();
}
Always ic is being null and I am getting Exception NullPointer Exception.
Can anyone tell me where the wrong I have done or any configuration? Any suggestion/advice are acceptable.
EDIT :1
20:19:01,678 ERROR [stderr] (http-localhost-127.0.0.1-8080-5)
javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory
org.jboss.naming.remote.client.InitialContextFactory from classloader
ModuleClassLoader for Module "deployment.TRH_SAS_V2.war:main" from Service Module
Loader
20:19:01,682 ERROR [stderr] (http-localhost-127.0.0.1-8080-5)
at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:64)
20:19:01,684 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
20:19:01,686 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
20:19:01,688 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at javax.naming.InitialContext.init(Unknown Source)
20:19:01,690 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at javax.naming.InitialContext.<init>(Unknown Source)
It looks like you don't have the InitialContextFactory class on your classpath. The jar you need will be in the bin/client directory of your JBoss installation. See this link for details : https://docs.jboss.org/author/display/AS72/JNDI+Reference

How can I use Apache cxf-2.4.8.jar as dependency of my war project and not exo.ws.rest.core-2.3.3-GA that is installed in of JBoss 7?

I am migrating to GateIn 3.6( JBOSS7) . The following error occurs since my project war have a dependancy with exo.ws.rest.core-2.3.3-GA since it is deployed in JBOSS7(GateIn3.6)
Caused by: java.lang.reflect.InvocationTargetException
18:36:02,711 ERROR [stderr] (http--0.0.0.0-8087-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at java.lang.reflect.Method.invoke(Method.java:597)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:457)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) ... 302 more
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) Caused by: org.apache.cxf.jaxrs.client.ClientWebApplicationException: java.lang.NullPointerException
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:839)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:816)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:743)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:717)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:344)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:469)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.services.WorkflowProcessService.getBusinessRuleList(WorkflowProcessService.java:489)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.services.WorkflowProcessService$$FastClassByCGLIB$$b715c2f2.invoke()
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.services.WorkflowProcessService$$EnhancerByCGLIB$$14154f1.getBusinessRuleList()
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.view.bean.BusinessRuleBean.getBusinessRuleList(BusinessRuleBean.java:69)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) ... 307 more
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) Caused by: java.lang.NullPointerException
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.(ResponseImpl.java:217)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.clone(ResponseImpl.java:284)
18:36:02,727 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.AbstractClient.setResponseBuilder(AbstractClient.java:381)
18:36:02,742 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:829)
18:36:02,742 ERROR [stderr] (http--0.0.0.0-8087-1) ... 322 more
expecting a solution...
As I can see in gatein pom.xml the version of exo.ws used by Gatein 3.6.x is
<org.exoplatform.ws.version>2.3.4-GA</org.exoplatform.ws.version>
So I think upgrading your dependency on exo.ws could resolve your problem.
Romain