解决MyEclipse10.7部署报错抛空指针异常问题的方法
作者:徐刘根
这篇文章主要介绍了解决MyEclipse10.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)
如下所示:
(2)如果出现了上述的错误按照如下的3个步骤解决:
1、首先关闭MyEclipse工作空间。
2、然后删除工作空间下的 “/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs”
这个文件。在这个文件中存储了一些部署项目的信息。删了这个部署的项目的信息就没有错误了。
3、重启启动MyEclipse即可解决了。 可爱的猫猫又出现了!
以上就是关于MyEclipse10.7部署报错的解决方案,希望对大家的学习有所帮助。
您可能感兴趣的文章:
- Eclipse中maven异常Updating Maven Project的统一解决方案
- java eclipse 出现 xxx cannot be resolved to a type 错误解决方法
- 启动 Eclipse 弹出 Failed to load the JNI shared library jvm.dll 错误的解决方法
- myeclipse中使用maven前常见错误及解决办法
- Android开发中Eclipse报错及对应处理方法总结
- Eclipse引入jquery报错如何解决
- jquery库或JS文件在eclipse下报错问题解决方法
- eclipse导入jquery包后报错的解决方法
- Eclipse去除js(JavaScript)验证错误
- 解决Eclipse/STS中出现Resource is out of sync with the file system的异常问题