【問題一】
問題還原
:
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>
【問題二】
問題還原
:
這是我使用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依賴包
<!-- 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>