【问题一】
问题还原:
spring boot maven 报错 connected to the target VM, address: ‘127.0.0.1:28481’, transport: ‘socket’
问题描述:idea 直接运行 springbootAplication 启动类,无法启动web项目,也没有报错信息。
解决办法 :
- 由于项目意外关闭,资源没有释放。结束系统的 java 进程。
2.引入依赖包。
org.springframework.boot
spring-boot-starter-web
【问题二】
问题还原:
这是我使用Junit4测试所写的代码时爆的一个错, Connected to the target VM, address: ‘127.0.0.1:55606’, transport: ‘socket’;
问题描述:
原来Junit4中的测试方法的方法名首字母不能大写!!!
解决方案:
修改测试方法的方法名,首字母小写
【问题三】
问题还原:
Connected to the target VM, address: ‘127.0.0.1:63073’, transport: ‘socket’
问题描述:
意就是连接不上目标虚拟机了
解决方案:
检查数据库连接配置是否正确,如果确认无误,
清除grails编译文件: 执行grails clean命令.
【问题四】
问题还原:
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为查询到的进程数)
【问题五】
问题还原:
Disconnected from the target VM, address: ‘127.0.0.1:62893’, transport: ‘socket’
问题描述:
网上说是由于 IDEA 与 Maven 的版本不兼容造成的上述问题
解决方案:
在网上看到说是不兼容问题,如果之前用的好好的,突然出现这个问题的话,可以按如下操作进行:
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依赖包
org.apache.hadoop hadoop-common 2.7.5参考文章:https://www.codeleading.com/article/60502537281/
我遇到的具体情况:
IDEA异常关闭,再次启动后,debug后,提示Connected to the target VM, address: ‘127.0.0.1:62995‘, transport: ‘socket‘
按照上面的办法关闭调java相关的所有进程,然后重启就可以了。