It's not who you are underneath, it's what you do that defines you

Could not create the view: An unexpected exception was thrown

打开server窗口,发现显示:Could not create the view: An unexpected exception was thrown.

此处解决方法:

  关闭myeclipse
  删除文件workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs
  重新启动myeclipse即可
为了了解原因,需要做些工作:

  了解到:

  .metadata:保存当前工作空间的一些配置信息,Eclipse内所有改动都放在这个文件夹中。其中,workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings里面保存的是eclipse启动的配置

  菜单 “windows->preference”相关的数据大多在 .metadata\.plugins\org.eclipse.core.runtime\.settings 下。

  原因:应该是myeclipse未完全加载其中的配置信息造成的,可能是它读不出其中的配置信息,也可能是它解析其中的配置信息出了问题。由于这个本身不涉及工作空间中的其他控件的使用,只是无法创建server显示的信息,所以,可以删除后,在eclipse重启过程中,靠它自己重新新建。明显deploy是显示用途的信息配置。

posted @ 2016-12-09 15:47  金铭杰  阅读(214)  评论(0编辑  收藏  举报

Brick walls are there for a reason :they let us prove how badly we want things