services报错:Could not create the view: An unexpected exception was thrown.

原创 2016年02月16日 10:40:51

今天刚打开MyEclipse 就弹出错误提示框:

开始还以为是工作空间问题,重新设置了空间路径,重启后还是不行。。仔细看发现Services窗口报错

Could not create the view: An unexpected exception was thrown.

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)
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.<init>(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.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:4317)
at org.eclipse.ui.internal.WorkbenchPage$18.runWithException(WorkbenchPage.java:3359)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.genuitec.pulse.eclipse.launcher.Main.main(Main.java:110)

第一感觉应该是初始化工作空间的时候出的问题,试着删除工作空间下.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非正常关闭,出现错误

问题: 电脑突然断电,myeclipse非正常关闭,“Package Explorer”非正常显示,出现错误“Could not create the view: An unexpected exc...
  • partner4java
  • partner4java
  • 2013年05月29日 00:23
  • 19504

Could not create the view: An unexpected exception was thrown.,myeclipse10非正常关闭,出现错误

问题: myeclipse非正常关闭,“Package Explorer”非正常显示,出现错误“Could not create the view: An unexpected exception ...
  • u012373815
  • u012373815
  • 2015年03月17日 14:15
  • 2804

Could not create the view: An unexpected exception was thrown,MyEclipse非正常关闭出现错误

MyEcli
  • u010800530
  • u010800530
  • 2015年01月08日 10:54
  • 903

MyEclipse10 Servers窗口出现“Could not create the view: An unexpected exception was thrown”解决办法

今天打开MyEclipse10,Servers突然出现“Could not create the view: An unexpected exception was thrown”,一个意想不到的异常...
  • u013046097
  • u013046097
  • 2016年02月26日 19:28
  • 1505

Could not create the view: An unexpected exception was thrown.问题解决

今天打开Myeclipse10的时候,发现server
  • shuangzixing520
  • shuangzixing520
  • 2014年06月27日 10:44
  • 64116

Myeclipse编辑器中server服务窗口出现Could not create the view: An unexpected exception was thrown

在我们非正常关闭计算机或者台式电脑突然断电,而当前的计算机中的myeclipse正在运行中,当下次启动计算机时,计算机可能会出现Could not create the view: An unexpe...
  • ZhiyouWu
  • ZhiyouWu
  • 2016年03月31日 11:08
  • 2726

MyEclipse启动:Could not create the view: An unexpected exception was thrown.

最近启动MyEclipse,Servers视窗出现Could not create the view: An unexpected exception was thrown,解决完记录一下。 经过网...
  • wang18734782352
  • wang18734782352
  • 2017年08月11日 09:07
  • 163

MyEclipse Servers视窗出现“Could not create the view: An unexpected exception was thrown”错误解决办法

RT: 打开所在的wordspace文件夹,在下面子文件夹 .metadata\.plugins\org.eclipse.core.runtime\.settings 下面 删除 com....
  • oney139
  • oney139
  • 2013年09月08日 11:54
  • 12934

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

!删除$工作空间\.metadata\.plugins\org.eclipse.core.runtime\.settings\com.genuitec.eclipse.ast.deploy.core....
  • ZDY2017
  • ZDY2017
  • 2018年02月16日 16:31
  • 12

myEclipse 打不开struts-config.xml 报Could not open the editor: An unexpected exception was thrown 错误(转载)

出现错误如下:提示错误信息:Could not open the editor: An unexpected exception was thrown. java.lang.NullPointerEx...
  • jyd63
  • jyd63
  • 2014年02月26日 09:20
  • 723
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:services报错:Could not create the view: An unexpected exception was thrown.
举报原因:
原因补充:

(最多只允许输入30个字)