1. 程式人生 > >MyEclipse 部署報錯,拋空指標異常的解決辦法

MyEclipse 部署報錯,拋空指標異常的解決辦法

 某些情況下MyEclipse 可能無法開啟 MyEclipse Servers檢視,試圖開啟檢視將導致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) 





原因:你有一個積極的部署不再在您的工作區的一個專案,該專案可能被關閉或刪除您的工作區。 解決方案:
如果你是無法恢復使用選項1,請使用這個:
1)關閉MyEclipse

2)刪除檔案:
/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs 3)重新啟動MyEclipse
原因:你有一個積極的部署不再在您的工作區的一個專案,該專案可能被關閉或刪除您的工作區。 解決方案:
如果你是無法恢復使用選項1,請使用這個:
1)關閉MyEclipse

2)刪除檔案:
/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs 3)重新啟動MyEclipse

相關推薦

MyEclipse 部署指標異常解決辦法

 某些情況下MyEclipse 可能無法開啟 MyEclipse Servers檢視,試圖開啟檢視將導致NPE將被記錄。Could not create the view: An unexpected exception was thrown. java.lang.Nul

自建工具類引用service層或dao層介面指標異常解決辦法之一

問題描述:想要建一個工具類進行資料同步,其中要用到service層或dao層的資料查詢介面,正常構建工具類,用@Autowired註解匯入service層。在專案測試時報空指標異常,發現是service層介面注入失敗。 解決方法:將你的工具類變成spring容器:1.將

netty的DISCARD服務我是這個樣子解決

我在學習netty時,練習的是DISCARD服務,在netty裡面,丟棄服務就是Server端不去對Client端傳送資料進行處理,直接進行釋放,為了展示效果,我添加了部分反饋程式碼,以下是我的程式碼, Client端 package com.nettyTest.Nett

abp 使用OAuthBearerAuthenticationOptions物件裡屬性AccessTokenFormat對應的Protect方法指標異常解決方法

由於要自己要在自定義的service類定義一個和登陸相關的介面,所有需要模仿api下面的AccountController登陸並返回ticket,但是對應的AccessTokenFormat老是報空指標異常,下面說說我做的步驟以及解決方法。   abp原有Api解決方案下面的使用程

Activity被回收導致被繫結Fragment呼叫getActivity()指標異常

當系統記憶體不足,Fragment的宿主Activity被回收的時候,Fragment的例項並沒有隨之被回收。Activity被系統回收時,會主動呼叫onSaveInstance()方法來儲存檢視層(

工作總結之----IE使用ajax上傳檔案其他瀏覽器正常問題解決過程

錯誤資訊: 嚴重: Servlet.service() for servlet [springMVC] in context with path [] threw exception [Request processing failed; nested exceptio

Maven+SSM查詢不到資料也不會返回值為null 解決方案

錯誤問題 當我使用Maven+SSM寫登入案例的時候,mybatis的對映檔案中的sql直接放在navicat中能查詢出值,但是程式中的返回值卻是null,控制檯也不會報錯,沒有錯誤資訊的提示。 解決方案 首先檢查配置檔案 <?xml vers

butterknife繫結後使用view還是會指標解決辦法

butterknife的正確用法 遇到問題:用butterknife註解繫結控制元件,在ButterKnife.bind(this)之後使用view的時候仍然報空指標,我按照如下設定解決了問題; 1、在專案下的build.gradle中的dependen

實際開發中Eclipse匯入的專案上紅色感嘆號jar包無無缺失兩種解決方案

  【問題】在換了幾個工作區間後,今天部署公司的專案,專案上顯示個紅色感嘆號,problem顯示找不到jar包,我就Build Path下jar包,選中專案,然後右鍵,選擇build bath ----

Linux環境下 升級Python的pip導致pip命令不可用ImportError: cannot import name main解決辦法

首先進入根目錄,在 usr/bin 目錄下 找到 pip 檔案。(如果是在虛擬環境中,則需要去對應的虛擬環境中查詢對應的 pip 檔案) 開啟pip檔案顯示程式碼如下: # -*- coding: ut

foxmail勾選SSLV23和SSL3收郵件(SSLV2正常)的解決辦法

ssl連接錯誤 errorCode 服務器不支持ssl 問題現象:foxmail客戶端工具勾選SSLV3和SSLV23收不到郵件(SSLV2沒問題),報“ssl連接錯誤, errorCode: 5”和“服務器不支持ssl,請檢查服務器配置, errorCode: 1”錯誤。問題排查:排查maillog

eclipse提交程式碼git checkout conflict with files 的解決辦法

昨天下班的時候提交git程式碼,提交的時候沒有勾選自動生成的日誌檔案,感覺上傳上去沒有什麼用處。然後回家的時候更新了一下程式碼,重新提價了一次。今天再次來到公司更新程式碼的時候報錯,記錄一下,是如何解決的。 1.選中專案郵件 team->Synhronize  workspace,就發現

VUE專案在IE下“ReferenceError: Promise未定義”的解決辦法

VUE專案在IE下報錯“ReferenceError: Promise未定義”的解決辦法 問題原因: IE一些低版本的瀏覽器對於ES6語法不支援 Promise是es6語法裡為了解決非同步函式多重巢狀的問題(回撥地獄) 說明: 或許你並不沒有使用Promise,但是有可

Tomcat java.net.connectexception:拒絕連線 解決辦法

tomcat java.net.ConnectException: Connection refused 1,描述在一次配置新工程專案,修改Tomcat server.xml後,執行shutdow.sh指令碼關閉伺服器,提示出現如下錯誤:tomcat java.net.Co

win10安裝PowerDesigner16.5:An error[-5001 ... 的解決辦法

在安裝PowerDesigner16.5時,點選exe安裝程式時報如下錯誤: 這是因為我先前安裝PowerDesigner失敗導致PowerDesigner的登錄檔遺留在電腦內,電腦以為我已經啟動

maven中引入驅動Missing artifact本地引用jar解決辦法

這裡就拿ojdbc14來介紹;在maven中央庫中查詢ojdbc,發現最新的版本是10.2.0.4.0,然後在maven專案中引入ojdbc,發現報錯Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0;現中央庫中明明是有的,

django 開發中接入第三方模組雲通訊時, 程式 顯示{'172001':'網路錯誤'} 的解決辦法

在測試中, 發現在傳送簡訊驗證碼的時候,一直報錯{'172001':'網路錯誤'},網上翻閱資料,原因大概是python在開啟一個 https 連結時,會驗證一次 SSL 證書。而當目標網站使用的是自簽名的證書時就會丟擲此異常。 解決辦法就是 在sms.py中,新增下列程式

javascript:ReferenceError: $ is not defined解決辦法

js報錯:ReferenceError: $ is not defined。 在執行重新整理專案介面時,通過瀏覽器控制檯發現錯誤ReferenceError: $ is not defined,如下圖所示: 部分介面程式碼如下: 解決方法: 我們不難發現script位置有問題,因

給ViewPager設定adapter出現指標異常 解決

問題描述: TopNewsAdapter topNewsAdapter = new TopNewsAdapter(); System.out.println("11111111" + topNewsAdapter == null);// 返回false,表明topNew

【Scrapy】Scrapy在Python3下:“cannot import name '_win32stdio'”解決辦法

由於之前都是在Python2的環境下用的Scrapy,然後最近在用Python3的環境,今天試著用Scrapy啟動一個爬蟲的時候居然報錯。 操作 scrapy crawl demo 報錯資訊 Traceback (most recent