zoukankan      html  css  js  c++  java
  • MyEclipse常见错误

    1.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.PartPane.setVisible(PartPane.java:313)

         这个问题的出现是在启动myeclipse之后出现的,这时还没有启动tomcat,因此可以排除tomcat中项目代码问题。应该是myeclipse在初始化工作空间workspace 的时候出的问题。

         仔细看下错误发现有一条 at com.genuitec.eclipse.ast.deploy.core.Deployment.这个错误,于是到工作空间下面的.metadata.pluginsorg.eclipse.core.runtime.settings目录下面找到了名称为at com.genuitec.eclipse.ast.deploy的prefs文件,打开文件一开,哈哈,原来里面都是原来的一些项目信息,怪不得会报java.lang.NullPointerException错误呢。果断将此文件删除,重启myeclipse10问题解决。

  • 相关阅读:
    UVA 10480 Sabotage (最大流最小割)
    bzoj2002 [Hnoi2010]Bounce 弹飞绵羊 (分块)
    poj3580 SuperMemo (Splay+区间内向一个方向移动)
    bzoj1500: [NOI2005]维修数列 (Splay+变态题)
    hdu3436 Queue-jumpers(Splay)
    hdu4710 Balls Rearrangement(数学公式+取模)
    hdu1890 Robotic Sort (splay+区间翻转单点更新)
    zoj2112 Dynamic Rankings (主席树 || 树套树)
    poj3581 Sequence (后缀数组)
    notepa++ Emmet的安装方法
  • 原文地址:https://www.cnblogs.com/yangang2013/p/5387934.html
Copyright © 2011-2022 走看看