错误汇总Connected to the target VM, address: ‘127.0.0.1:XXXX‘, transport: ‘socket‘

【问题一】

问题还原:

spring boot maven 报错 connected to the target VM, address: ‘127.0.0.1:28481’, transport: ‘socket’

1.spring boot maven 报错 connected to the target VM, address: '127.0.0.1:28481', transport: 'socket'

**问题描述:**idea 直接运行 springbootAplication 启动类,无法启动web项目,也没有报错信息。

解决办法 :

1. 由于项目意外关闭,资源没有释放。结束系统的 java 进程。

2.引入依赖包。
<dependency>
      <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-web</artifactId>
</dependency>

【问题二】

问题还原:

1.这是我使用Junit4测试所写的代码时爆的一个错,  Connected to the target VM, address: '127.0.0.1:55606', transport: 'socket';

问题描述
原来Junit4中的测试方法的方法名首字母不能大写!!!

解决方案:

1 修改测试方法的方法名,`首字母小写`

【问题三】

问题还原

1. idea DEBUG报错:Connected to the target VM, address: ‘127.0.0.1:4405‘, transport: ‘socket‘

解决方案

1.查找出占用进程id,
2.杀死进程
cmd 输入
命令:
1.netstat -ano|findstr 4405
2.taskkill -f -pid 7986(7896为查询到的进程数)

【问题五】

问题还原:

1.Disconnected from the target VM, address: '127.0.0.1:62893', transport: 'socket'

问题描述:
网上说是由于 IDEA 与 Maven 的版本不兼容造成的上述问题
解决方案:

1.在网上看到说是不兼容问题,如果之前用的好好的,突然出现这个问题的话,可以按如下操作进行:
2.Maven Package->刷新按钮

【问题六】

问题还原:

java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosTicket(Ljavax/security/auth/Subject;)Z
Connected to the target VM, address: '127.0.0.1:56813', transport: 'socket'

问题描述:
缺少一个jar依赖包
解决方案:

添加hadoop-common的jar依赖包
<!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common -->
<dependency>
    <groupId>org.apache.hadoop</groupId>
    <artifactId>hadoop-common</artifactId>
    <version>2.7.5</version>
</dependency>
  • 3
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值