Skip to content

Annoying error message on every eclipse startup if CF destination is not reachable #688

Closed
@MahatmaFatalError

Description

@MahatmaFatalError

Expected Behavior

The error popup (see Current Behavior) should not appear. Having it in the error log and in the tooltip is enough.
Bildschirmfoto 2021-09-16 um 22 54 54

From the error log:

java.io.IOException: java.lang.IllegalStateException: Timeout on blocking read for 45000 MILLISECONDS
	at org.springframework.ide.eclipse.boot.dash.cf.client.v2.ReactorUtils.get(ReactorUtils.java:68)
	at org.springframework.ide.eclipse.boot.dash.cf.client.v2.DefaultClientRequestsV2.getBuildpacks(DefaultClientRequestsV2.java:661)
	at org.springframework.ide.eclipse.boot.dash.cf.runtarget.CloudFoundryRunTarget.lambda$0(CloudFoundryRunTarget.java:90)
	at org.springsource.ide.eclipse.commons.livexp.core.LiveExpression.changed(LiveExpression.java:137)
	at org.springsource.ide.eclipse.commons.livexp.core.LiveExpression.refresh(LiveExpression.java:81)
	at org.springsource.ide.eclipse.commons.livexp.core.LiveVariable.setValue(LiveVariable.java:46)
	at org.springframework.ide.eclipse.boot.dash.cf.runtarget.CloudFoundryRunTarget.connect(CloudFoundryRunTarget.java:124)
	at org.springframework.ide.eclipse.boot.dash.cloudfoundry.RemoteBootDashModel.lambda$2(RemoteBootDashModel.java:77)
	at org.springframework.ide.eclipse.boot.dash.model.remote.RefreshStateTracker.call(RefreshStateTracker.java:80)
	at org.springframework.ide.eclipse.boot.dash.model.remote.RefreshStateTracker.lambda$3(RefreshStateTracker.java:123)
	at org.springsource.ide.eclipse.commons.frameworks.core.util.JobUtil$6.run(JobUtil.java:193)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.IllegalStateException: Timeout on blocking read for 45000 MILLISECONDS
	at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:117)
	at reactor.core.publisher.Mono.block(Mono.java:1687)
	at org.springframework.ide.eclipse.boot.dash.cf.client.v2.ReactorUtils.get(ReactorUtils.java:65)
	... 11 more
java.io.IOException: reactor.core.Exceptions$ReactiveException: reactor.netty.internal.shaded.reactor.pool.PoolAcquireTimeoutException: Pool#acquire(Duration) has been pending for more than the configured timeout of 45000ms
	at org.springframework.ide.eclipse.boot.dash.cf.client.v2.ReactorUtils.get(ReactorUtils.java:86)
	at org.springframework.ide.eclipse.boot.dash.cf.client.v2.DefaultClientRequestsV2.getServices(DefaultClientRequestsV2.java:325)
	at org.springframework.ide.eclipse.boot.dash.cf.ops.ServicesRefreshOperation.doCloudOp(ServicesRefreshOperation.java:54)
	at org.springframework.ide.eclipse.boot.dash.cf.ops.CloudOperation.runOp(CloudOperation.java:40)
	at org.springframework.ide.eclipse.boot.dash.cf.ops.CloudOperation.runOp(CloudOperation.java:1)
	at org.springframework.ide.eclipse.boot.dash.cf.ops.Operation.run(Operation.java:38)
	at org.springframework.ide.eclipse.boot.dash.cf.ops.OperationsExecution$2.run(OperationsExecution.java:55)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: reactor.core.Exceptions$ReactiveException: reactor.netty.internal.shaded.reactor.pool.PoolAcquireTimeoutException: Pool#acquire(Duration) has been pending for more than the configured timeout of 45000ms
	at reactor.core.Exceptions.propagate(Exceptions.java:366)
	at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:131)
	at reactor.core.publisher.Mono.block(Mono.java:1687)
	at org.springframework.ide.eclipse.boot.dash.cf.client.v2.ReactorUtils.get(ReactorUtils.java:83)
	... 7 more
	Suppressed: java.lang.Exception: #block terminated with an error
		at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:133)
		... 9 more
Caused by: reactor.netty.internal.shaded.reactor.pool.PoolAcquireTimeoutException: Pool#acquire(Duration) has been pending for more than the configured timeout of 45000ms
	at reactor.netty.internal.shaded.reactor.pool.AbstractPool$Borrower.run(AbstractPool.java:319)
	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Assembly trace from producer [reactor.core.publisher.MonoProcessor] :
	reactor.core.publisher.Mono.checkpoint(Mono.java:1862)
	org.cloudfoundry.reactor.tokenprovider.AbstractUaaTokenProvider.token(AbstractUaaTokenProvider.java:255)
Error has been observed at the following site(s):
	|_ Mono.checkpoint ⇢ at org.cloudfoundry.reactor.tokenprovider.AbstractUaaTokenProvider.token(AbstractUaaTokenProvider.java:255)
	|_ Mono.checkpoint ⇢ at org.cloudfoundry.reactor.client.v2.info.ReactorInfo.get(ReactorInfo.java:47)
	|_____ Mono.checkpoint ⇢ at org.cloudfoundry.reactor.tokenprovider.AbstractUaaTokenProvider.token(AbstractUaaTokenProvider.java:255)
	|_ Mono.checkpoint ⇢ at org.cloudfoundry.reactor.client.v2.organizations.ReactorOrganizations.list(ReactorOrganizations.java:199)
	|_ Flux.checkpoint ⇢ at org.cloudfoundry.operations.applications.DefaultApplications.list(DefaultApplications.java:330)
	|_ Flux.checkpoint ⇢ at org.cloudfoundry.operations.services.DefaultServices.listInstances(DefaultServices.java:284)
Stack trace:
		at reactor.netty.internal.shaded.reactor.pool.AbstractPool$Borrower.run(AbstractPool.java:319)
		at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
		at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
		at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
		at java.base/java.lang.Thread.run(Thread.java:834)

Current Behavior

Error message pops up with every start of eclipse.
Bildschirmfoto 2021-09-16 um 22 35 50

Context
To be honest, the message in the error popup doesn't really describe where it comes from and which action or component is related to it. So it is just annoying.

eclipse.buildId=4.12.0.202109130635

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions