ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
<forked VM failed with exit code 2>
<stdout last='20 lines'>
</stdout>
<stderr last='20 lines'>
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
Solution: run it by command instead of directly running the
MVN clean package
java-jar target/benchmarks. Jar at idea
If the Maven project generation JAR runtime prompts “No main listing properties”, the entry class (that is, the class where the main function resides) cannot be found
Modify the POm.xml file by adding the following configuration item to specify the entry class:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.jesper.jmh.FirstBenchmark</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
div>
Read More:
- About jmh running error: transport error 202: Connect failed: connection reused error solution
- curl: (7) Failed connect to localhost:9200; Connection refused
- error: \*1035 connect() failed (111: Connection refused) while connecting to upstream, client…..
- samba Error NT_STATUS_CONNECTION_REFUSED Failed to connect with SMB1 — no workgroup available
- Nginx reports 502 error, log connect() failed (111: Connection refused) while connecting to upstream. A personal effective solution
- 【MongoDB】 Failed to connect to 127.0.0.1:27017, reason: Connection refused
- Java connection SQL error, network error IO Exception:Connection refused :connect
- 【Synergy】Error:failed to connect to server:Connection was refused
- Failed to connect to 17.0.0.1 port 1080: Connection refused
- curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
- Solve the MAC terminal download error curl: (7) failed to connect to raw.githubusercontent.com port 443: Connection refused
- failed to connect to ‘192.168.199.143:5555‘: Connection refused
- solve java.net.ConnectException : Connection refused:connect report errors
- How to Fix java.net.ConnectException: Connection refused: connect
- Running Django manager.py report errors Error:111 connecting to 127.0.0.1:6379.connection refused
- error:Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused;error:couldn‘t ….
- hdfs 192.168.2.19:9000 failed on connection exception: java.net.ConnectException:Connection refused
- failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
- (20200916 Solved)Docker||redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused
- JMeter performance test monitoring server resource reported error: java.net.ConnectException : Connection refused: connect