myeclipse:Could not create the view: An unexpected exception was thrown.解决方法

重新导入一个项目的时候出现无法创建表空间:

并出现错误:Could not create the view: An unexpected exception was thrown

且有空指针异常:

myeclipse:Could not create the view: An unexpected exception was thrown.解决方法

并且在Servers窗口中出现以下错误:

myeclipse:Could not create the view: An unexpected exception was thrown.解决方法

解决方法:

在工作目录下,找到路径workspace10\.metadata\.plugins\org.eclipse.core.runtime\.settings下的文件:

com.genuitec.eclipse.ast.deploy.core.prefs,

myeclipse:Could not create the view: An unexpected exception was thrown.解决方法

打开发现里面存有的是旧的项目信息,并非导入的项目信息,删除后重启myeclipse,会重新生成这个文件,并包含已导入的项目信息,且可以没有报错,可以运行