MyEclipse启动后,server出显空指针异常问题

时间:2022-09-26 20:35:01

错误:(部分)

java.lang.NullPointerException
 at com.genuitec.eclipse.ast.deploy.core.Deployment.<init>(Unknown Source)
 at com.genuitec.eclipse.ast.deploy.core.ModuleDeployment.<init>(Unknown Source)
 at com.genuitec.eclipse.ast.deploy.core.WebDeployment.<init>(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.<init>(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)


此外,Manage Deployments按钮失效,server窗口打不开。

产生原因可能是项目部署时出的问题。目前还在学习中。

解决方案:

  1.关闭MyEclipse

  2.打开MyEclipse的工作空间

  3.删除.metadata\.plugins\org.eclipse.core.runtime\.settings下的com.genuitec.eclipse.ast.deploy.core.prefs

   相对路径可直接复制粘贴:     MyEclipse\.metadata\.plugins\org.eclipse.core.runtime\.settings\com.genuitec.eclipse.ast.deploy.core.prefs

  4.重启MyEclipse

即可