idea生成单元测试后运行报错:java.net.ConnectException: Connection refused:

从官网下载了一个最新的idea(2017.1.4 community),多一个一个类写了一个单元测试,测试代码都没写,然后运行测试,竟然报错,报错为Error connecting to 127.0.0.1:54305; reason: Connection refused: no further information: /127.0.0.1:54305

不知道链接54305端口是干什么的。有没有谁遇到过。

完整错误 :

Error:Abnormal build process termination:
"E:\Program Files\Java\jdk1.8.0_131\bin\java" -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=G:/idea_workspace/sd -Dpreload.config.path=C:/Users/Administrator.PKQWYFHRHGMW4BF/.IdeaIC2017.1/config/options -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=8825408310847103471 -Dfile.encoding=GBK -Djps.file.types.component.name=CommunityFileTypes -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IdeaIC2017.1 "-Didea.home.path=E:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.1.4" -Didea.config.path=C:\Users\Administrator.PKQWYFHRHGMW4BF\.IdeaIC2017.1\config -Didea.plugins.path=C:\Users\Administrator.PKQWYFHRHGMW4BF\.IdeaIC2017.1\config\plugins -Djps.log.dir=C:/Users/Administrator.PKQWYFHRHGMW4BF/.IdeaIC2017.1/system/log/build-log "-Djps.fallback.jdk.home=E:/Program Files/Java/jdk1.8.0_131" -Djps.fallback.jdk.version=1.8.0_131 -Dio.netty.noUnsafe=true -Djava.io.tmpdir=C:/Users/Administrator.PKQWYFHRHGMW4BF/.IdeaIC2017.1/system/compile-server/sd_5776e480/_temp_ -Djps.backward.ref.index.builder=true -Dkotlin.incremental.compilation.experimental=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"C:\Users\Administrator.PKQWYFHRHGMW4BF\AppData\Local\Temp\kotlin-idea-3976143378709142469-is-running\" -classpath "E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/jps-launcher.jar;E:/Program Files/Java/jdk1.8.0_131/lib/tools.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/optimizedFileManager.jar" org.jetbrains.jps.cmdline.Launcher "E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/netty-all-4.1.9.Final.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/jdom.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/log4j.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/asm-all.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/resources_en.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/jps-builders-6.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/protobuf-2.5.0.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/util.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/annotations.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/oromatcher.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/jps-model.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/nanoxml-2.2.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/idea_rt.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/jna-platform.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/jgoodies-forms.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/trove4j.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/javac2.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/jna.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/snappy-in-java-0.5.1.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/forms_rt.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/jps-builders.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/openapi.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/commons-io-2.2.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/commons-lang-2.6.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-base-services-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-base-services-groovy-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-cli-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-core-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-logging-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-messaging-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-model-core-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-model-groovy-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-native-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-process-services-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-resources-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-tooling-api-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-tooling-extension-api.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-tooling-extension-impl.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-version-info-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-wrapper-3.3.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/guava-jdk5-17.0.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/jansi-1.14.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/kryo-2.22.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/minlog-1.2.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-freebsd-amd64-libcpp-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-freebsd-amd64-libstdcpp-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-freebsd-i386-libcpp-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-freebsd-i386-libstdcpp-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-linux-amd64-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-linux-amd64-ncurses5-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-linux-amd64-ncurses6-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-linux-i386-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-linux-i386-ncurses5-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-linux-i386-ncurses6-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-osx-amd64-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-osx-i386-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-windows-amd64-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/native-platform-windows-i386-0.12.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/objenesis-1.2.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/reflectasm-1.07.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/resources_en.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/gson-2.5.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/jarutils.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/ant/lib/ant-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/devkit/lib/devkit-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/uiDesigner/lib/jps/ui-designer-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/Groovy/lib/groovy-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/Groovy/lib/groovy-rt-constants.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/eclipse/lib/eclipse-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/eclipse/lib/common-eclipse-util.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/maven/lib/maven-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/maven/lib/aether-dependency-resolver.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/maven/lib/aether-1.1.0-all.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/maven/lib/maven-aether-provider-3.3.9-all.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/maven/lib/plexus-utils-2.0.6.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/gradle/lib/gradle-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/jps/android-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/jps/android-gradle-jps.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/android-common.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/android-rt.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/sdk-common.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/repository.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/sdklib.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/common.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/jarutils.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/layoutlib-api.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/android/lib/manifest-merger.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/Kotlin/lib/kotlin-runtime.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/Kotlin/lib/kotlin-reflect.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/Kotlin/lib/kotlin-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/Kotlin/lib/kotlin-android-extensions-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/Kotlin/lib/kotlin-android-extensions-compiler-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/javaFX/lib/javaFX-jps-plugin.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/plugins/javaFX/lib/common-javaFX-plugin.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 54305 d42785f9-9b68-461c-9adf-6828c47efae8 C:/Users/Administrator.PKQWYFHRHGMW4BF/.IdeaIC2017.1/system/compile-server
Build process started. Classpath: E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/jps-launcher.jar;E:/Program Files/Java/jdk1.8.0_131/lib/tools.jar;E:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2017.1.4/lib/optimizedFileManager.jar
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Error connecting to 127.0.0.1:54305; reason: Connection refused: no further information: /127.0.0.1:54305
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:54305
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:352) at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:612) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:559) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:476) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused: no further information ... 15 moreExiting.

时间: 2024-10-29 07:58:52

idea生成单元测试后运行报错:java.net.ConnectException: Connection refused:的相关文章

Python首次安装后运行报错(0xc000007b)的解决方法

最近在安装完Python后运行发现居然报错了,错误代码是0xc000007b,于是通过往上查找发现是因为首次安装Python缺乏VC++库的原因,下面通过这篇文章看看如何解决这个问题吧. 错误提示如下: 其实这是一个挺常见的系统报错,缺乏VC++库. 我安装的是python3.5.2,这个版本需要的vc版本是2015的了,下载:Microsoft Visual C++ 2015 update 3 安装完后发现就正常了: 总结 通过以上的方法就能轻松解决首次安装Python后运行报错的问题,希望本

启动storm之后浏览器访问报错,org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused)

原因是zookeeper没有启动 Internal Server Error org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused) at org.apache.thrift7.transport.TSocket.open(TSocket.java:183) at org.apache.thrift7.transport

com.microsoft.sqlserver.jdbc.SQLServerException: 到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection refused: connect

问题描述:最简单的数据库连接报错,到主机  的 TCP/IP 连接失败.(win 7 操作系统) 错误信息: com.microsoft.sqlserver.jdbc.SQLServerException: 到主机  的 TCP/IP 连接失败. java.net.ConnectException: Connection refused: connect package sqlconnect; import java.sql.*; public class sqlconnect { public

tomcat停止失败 java.net.ConnectException: Connection refused

今天遇到个很郁闷的问题,使用catalina.sh stop 或者 shutdown.sh 关闭tomcat总是失败,总提示连接超时. 开始以为是自己tomcat配置的问题,重新部署上没更改过配置的tomcat,结果依然是失败. 后来使用telnet 127.0.0.1 到shutdown的端口 发现失败: tomcat停止的时候将SHUTDOWN指令发送给127.0.0.1:8005端口执行: 问题原来出在自己之前测试的时候把配置有127.0.0.1 IP的lo网卡给禁用了: 启用lo网卡,然

java.net.ConnectException: Connection refused

所出问题:java.net.ConnectException: Connection refused 报错项目:Zookeeper+AMQ 错误原因:Zookeeper集群在启动时会链接各个节点并根据选举算法选出leader,所以顺序启动时会报java.net.ConnectException: Connection refused 错误 解决办法:全部节点启动完就没事了,忽略即可.

Lein: Exception in thread "Thread-3" java.net.ConnectException: Connection refused

leiningen Leiningen是你的主要工具, 它用于: 启动一个 REPL 下载+安装类库 运行你的程序 启动一个服务器, 运行你所写的webapps 安装 brew install leiningen 打开repl lein repl 12345678910111213 lein replnREPL server started on port 50438 on host 127.0.0.1 - nrepl://127.0.0.1:50438REPL-y 0.3.5, nREPL 0

Call From master/192.168.128.135 to master:8485 failed on connection exception: java.net.ConnectException: Connection refused

hadoop集群搭建了ha,初次启动正常,最近几天启动时偶尔发现,namenode1节点启动后一段时间(大约10几秒-半分钟左右),namenode1上namenode进程停掉,查看日志: 1 2017-08-28 21:54:37,617 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: slave1/192.168.128.136:8485. Already tried 9 time(s); retry policy

Caused by: java.net.ConnectException: Call From master/192.168.199.130 to master:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.

1:安装好hive,准备启动的时候出现下面的错误(由于hive是基于Hadoop的,所以必须先将你的集群启动起来,我就是没有启动集群,直接启动hive导致的错误): 1 [[email protected] bin]# ./hive 2 3 Logging initialized using configuration in jar:file:/home/hadoop/soft/apache-hive-1.2.1-bin/lib/hive-common-1.2.1.jar!/hive-log4j

JedisConnectionException: java.net.ConnectException: Connection refused

出现问题 我遇到的一个问题,在连接redis的时候出现了错误!错误如下: JedisConnectionException: java.net.ConnectException: Connection refused 看错误是 连接被拒绝,网上查了报这个错误的相关解决方案,没有一个可以解决的! 问题就是上面的报错的问题,先说明一下我出现这个问题的背景或者环境吧. 环境说明 redis集群部署在 A(10.102.1.2)服务器上部署,我在B(10.102.1.1)服务器上进行应用的部署,代码中配