Myeclipse启动后,server报Could not create the view: An unexpected exception was thrown.异常

原创 2015年11月18日 15:25:18

堆栈信息如下:

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)

解决方法:

根据错误原因分析,是工作空间D:\Workspaces\MyEclipse 10\.metadata\.plugins\org.eclipse.core.runtime\.settings

下文件com.genuitec.eclipse.ast.deploy.core.prefs内容显示,之前部署的项目不存在所引起的异常,删除该文件,重启MyEclipse,搞定。







版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

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

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

解决myeclipse错误:Could not create the view: An unexpected exception was thrown.

报错信息如下: at com.genuitec.eclipse.ast.deploy.core.DeploymentManager.loadFromPreferences(Unknown Sou...

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

MyEclipse版本: Version: 10.7 Build id: 10.7-20121026 在运行一段时间后 Servers面板就出现错误: 异常输出: java.lang.Nul...

Eclipse启动后Weblogic Servers报错 [Could not create the view: An unexpected exception was thrown.]

上次 java.lang.NullPointerException at com.bea.weblogic.eclipse.ui.views.WebLogicServerTreeContentPr...

Java进阶(二十九)Could not create the view: An unexpected exception was thrown

Could not create the view: An unexpected exception was thrown      在将web项目部署到tomcat时,控制台输出以下内容:     ...

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

今天打开Myeclipse10的时候,发现server窗口出现一堆问题,问题如标题,然后下方出现了一堆java.lang.NullPointerException的问题。 java.lang.Nul...

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

今天刚打开MyEclipse 就弹出错误提示框: 开始还以为是工作空间问题,重新设置了空间路径,重启后还是不行。。仔细看发现Services窗口报错 Could not create the ...

Could not find com.android.support:multidex;java.util.ZipException;UNEXPECTED TOP-LEVEL等异常解决;

ZipException这个是打包的时候抛出的异常,这个异常也是Multidex 引发的,具体的异常信息在studio的messages面板看到这个异常具体引起的原因:由于维护的是老项目,开始时项目中...
  • Andy_l1
  • Andy_l1
  • 2017年08月01日 16:16
  • 381

org.hibernate.exception.GenericJDBCException: could not load an entity:

2015-12-14 16:35:27,116 http-bio-8080-exec-8 [ERROR](JDBCExceptionReporter.java,72) - Bad format for...

Could not Create the Java Virtual Machine or Unhandled Event Loop Exception

本来配置maven环境,自己的eclipse版本比较老,打开windows-preference-maven下的功能比同学的少,就从室友那儿copy了新版的eclipse,打开几次后,随便点击编辑页面...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Myeclipse启动后,server报Could not create the view: An unexpected exception was thrown.异常
举报原因:
原因补充:

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