解决MyEclipse10.7部署报错抛空指针异常问题的方法
程序员文章站
2024-03-08 14:24:22
先对问题进行描述:
(1)在myeclipse servers视图在myeclipse 10.7.0在某些情况下,可能无法打开。 试图打开视图将导致npe将被记录。...
先对问题进行描述:
(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部署报错的解决方案,希望对大家的学习有所帮助。