解決MyEclipse10.7部署報(bào)錯(cuò)拋空指針異常問題的方法
先對(duì)問題進(jìn)行描述:
(1)在MyEclipse Servers視圖在MyEclipse 10.7.0在某些情況下,可能無法打開。 試圖打開視圖將導(dǎo)致NPE將被記錄。
Could not create the view: An unexpected exception was thrown. java.lang.NullPointerException at com.genuitec.eclipse.ast.deploy.core.Deployment.(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.WebDeployment.(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.Deployment.create(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.loadFromPreferences(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.init(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.getDefault(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.ui.ServerTreeViewer$ServerTreeContentProvider.inputChanged(Unknown Source) at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:276) at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690) at com.genuitec.eclipse.ast.deploy.core.ui.ServerTreeViewer.(Unknown Source) at com.genuitec.eclipse.ast.deploy.core.ui.ServerView.createPartControl(Unknown Source) at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375) at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313) at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:534) at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180) at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270) at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473) at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245) at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:662) at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:570) at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:568)
如下所示:
(2)如果出現(xiàn)了上述的錯(cuò)誤按照如下的3個(gè)步驟解決:
1、首先關(guān)閉MyEclipse工作空間。
2、然后刪除工作空間下的 “/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs”
這個(gè)文件。在這個(gè)文件中存儲(chǔ)了一些部署項(xiàng)目的信息。刪了這個(gè)部署的項(xiàng)目的信息就沒有錯(cuò)誤了。
3、重啟啟動(dòng)MyEclipse即可解決了。 可愛的貓貓又出現(xiàn)了!
以上就是關(guān)于MyEclipse10.7部署報(bào)錯(cuò)的解決方案,希望對(duì)大家的學(xué)習(xí)有所幫助。
- Eclipse中maven異常Updating Maven Project的統(tǒng)一解決方案
- java eclipse 出現(xiàn) xxx cannot be resolved to a type 錯(cuò)誤解決方法
- 啟動(dòng) Eclipse 彈出 Failed to load the JNI shared library jvm.dll 錯(cuò)誤的解決方法
- myeclipse中使用maven前常見錯(cuò)誤及解決辦法
- Android開發(fā)中Eclipse報(bào)錯(cuò)及對(duì)應(yīng)處理方法總結(jié)
- Eclipse引入jquery報(bào)錯(cuò)如何解決
- jquery庫(kù)或JS文件在eclipse下報(bào)錯(cuò)問題解決方法
- eclipse導(dǎo)入jquery包后報(bào)錯(cuò)的解決方法
- Eclipse去除js(JavaScript)驗(yàn)證錯(cuò)誤
- 解決Eclipse/STS中出現(xiàn)Resource is out of sync with the file system的異常問題
相關(guān)文章
SpringBoot使用Interceptor攔截器的實(shí)例
這篇文章主要介紹了SpringBoot使用Interceptor攔截器的相關(guān)知識(shí),本文通過實(shí)例代碼給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2023-03-03java中l(wèi)ambda表達(dá)式簡(jiǎn)單用例
讓我們從最簡(jiǎn)單的例子開始,來學(xué)習(xí)如何對(duì)一個(gè)string列表進(jìn)行排序。我們首先使用Java 8之前的方法來實(shí)現(xiàn)2016-09-09java實(shí)現(xiàn)寫入并保存txt文件的代碼詳解
在本篇文章里小編給大家整理了關(guān)于java實(shí)現(xiàn)寫入并保存txt文件的代碼實(shí)例內(nèi)容,需要的朋友們可以參考學(xué)習(xí)下。2020-02-02Mybatis如何實(shí)現(xiàn)InsertOrUpdate功能
這篇文章主要介紹了Mybatis如何實(shí)現(xiàn)InsertOrUpdate功能,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2022-05-05springboot2.x整合shiro權(quán)限框架的使用
這篇文章主要介紹了springboot2.x整合shiro權(quán)限框架的使用,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-09-09Mybatis一級(jí)緩存和結(jié)合Spring Framework后失效的源碼探究
這篇文章主要介紹了Mybatis一級(jí)緩存和結(jié)合Spring Framework后失效的源碼探究,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-04-04