码迷,mamicode.com
首页 > 系统相关 > 详细

关于MyEclipse 10.7 部署报错,抛空指针异常的解决办法

时间:2014-09-27 12:03:29      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:关于myeclipse 10.7 部署报   抛空指针异常的解决办法   异常   


(1)MyEclipse Servers视图在MyEclipse 10.7.0在某些情况下,可能无法打开。 试图打开视图将导致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) 
. 

如下所示:

bubuko.com,布布扣

bubuko.com,布布扣

(2)如果出现了上述的错误按照如下的3个步骤解决: 

1、首先关闭MyEclipse工作空间。 


2、然后删除工作空间下的 “/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs” 


这个文件。在这个文件中存储了一些部署项目的信息。删了这个部署的项目的信息就没有错误了。 


3、重启启动MyEclipse即可解决了。 可爱的猫猫又出现了!

bubuko.com,布布扣

关于MyEclipse 10.7 部署报错,抛空指针异常的解决办法

标签:关于myeclipse 10.7 部署报   抛空指针异常的解决办法   异常   

原文地址:http://blog.csdn.net/xlgen157387/article/details/39609511

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!