Project

General

Profile

Bug #2106

IntelliJ z2-plugin throws exception when pinging z2

Added by Udo Offermann about 3 years ago. Updated about 3 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
z2-base-tools-eclipsoid
Target version:
-
Start date:
15.09.2021
Due date:
% Done:

0%

Estimated time:
origin:

Description

The "Test connection" feature on the z2-plugin preference pane throws an exception when the server is not reachable.
IntelliJ catches the exception and treats it as a plugin problem.
The exception itself is ok, but it must not be propagated to the IDE.

z2-resolve failed

com.zfabrik.intellij.z2plugin.remote.ConnectionException: Server http://localhost:8080/eclipsoid/sync may be down or the connection settings are wrong.
    at com.zfabrik.intellij.z2plugin.remote.ConnectionResult.<init>(ConnectionResult.java:24)
    at com.zfabrik.intellij.z2plugin.remote.Z2HttpClient$HttpConnection.getConnectionResult(Z2HttpClient.java:193)
    at com.zfabrik.intellij.z2plugin.remote.Z2HttpClient.request(Z2HttpClient.java:114)
    at com.zfabrik.intellij.z2plugin.z2sync.Z2ResolverService$Z2ResolvingSession.sync(Z2ResolverService.java:97)
    at com.zfabrik.intellij.z2plugin.z2sync.ResolveZ2Action$ResolveTask.resolve(ResolveZ2Action.java:85)
    at com.zfabrik.intellij.z2plugin.z2sync.Z2Mutex.runMutuallyExcluded(Z2Mutex.java:40)
    at com.zfabrik.intellij.z2plugin.z2sync.ResolveZ2Action$ResolveTask.run(ResolveZ2Action.java:60)
    at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:450)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:117)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:510)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:243)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:183)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:170)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:243)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
    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.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
    at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
    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.openServer(HttpClient.java:569)
    at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:859)
    at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
    at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
    at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
    at com.zfabrik.intellij.z2plugin.remote.Z2HttpClient$HttpConnection.request(Z2HttpClient.java:171)
    at com.zfabrik.intellij.z2plugin.remote.Z2HttpClient.lambda$request$1(Z2HttpClient.java:95)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:265)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    ... 7 more
#1

Updated by Udo Offermann about 3 years ago

  • Subject changed from IntelliJ z2-plugin throws excpeption when pinging z2 to IntelliJ z2-plugin throws exception when pinging z2
#2

Updated by Udo Offermann about 3 years ago

  • Status changed from New to Feedback

Also available in: Atom PDF