Transferred from: http://blog.csdn.net/shuangzixing520/article/details/35225105
When I opened Myeclipse10 today, I found a bunch of problems in the server window, such as the title, and then a bunch of java.lang.NullPointerException problems on the bottom.
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)
This problem occurs after starting MyEclipse, when Tomcat is not started, so you can troubleshoot project code problems in Tomcat. It's supposed to be myeclipse when initializing the workspace workspace.
Out of the question.
Look carefully at the error found that there is an at com.genuitec.eclipse.ast.deploy.core.Deployment. This error, so go to the D:\Workspaces\.metadata\.plugins\ under the work space The Org.eclipse.core.runtime\.settings directory below finds a name called at Com.genuitec.eclipse.ast.deploy prefs file, open the file, haha, the original inside are some of the original project information, no wonder it will be reported java.lang.NullPointerException error. Decisively delete this file, restart Myeclipse10 problem resolution
Turn Could not create the View:an unexpected exception is thrown. Problem solving