解決MyEclipse10.7部署報錯拋空指針異常問題的方法
先對問題進行描述:
(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)了上述的錯誤按照如下的3個步驟解決:
1、首先關(guān)閉MyEclipse工作空間。
2、然后刪除工作空間下的 “/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs”
這個文件。在這個文件中存儲了一些部署項目的信息。刪了這個部署的項目的信息就沒有錯誤了。
3、重啟啟動MyEclipse即可解決了。 可愛的貓貓又出現(xiàn)了!
以上就是關(guān)于MyEclipse10.7部署報錯的解決方案,希望對大家的學(xué)習(xí)有所幫助。
- Eclipse中maven異常Updating Maven Project的統(tǒng)一解決方案
- java eclipse 出現(xiàn) xxx cannot be resolved to a type 錯誤解決方法
- 啟動 Eclipse 彈出 Failed to load the JNI shared library jvm.dll 錯誤的解決方法
- myeclipse中使用maven前常見錯誤及解決辦法
- Android開發(fā)中Eclipse報錯及對應(yīng)處理方法總結(jié)
- Eclipse引入jquery報錯如何解決
- jquery庫或JS文件在eclipse下報錯問題解決方法
- eclipse導(dǎo)入jquery包后報錯的解決方法
- Eclipse去除js(JavaScript)驗證錯誤
- 解決Eclipse/STS中出現(xiàn)Resource is out of sync with the file system的異常問題
相關(guān)文章
Mybatis如何實現(xiàn)InsertOrUpdate功能
這篇文章主要介紹了Mybatis如何實現(xiàn)InsertOrUpdate功能,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2022-05-05springboot2.x整合shiro權(quán)限框架的使用
這篇文章主要介紹了springboot2.x整合shiro權(quán)限框架的使用,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-09-09Mybatis一級緩存和結(jié)合Spring Framework后失效的源碼探究
這篇文章主要介紹了Mybatis一級緩存和結(jié)合Spring Framework后失效的源碼探究,本文給大家介紹的非常詳細,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-04-04