A method to solve the problem of MyEclipse10.7 deployment error throwing null pointer anomaly _java

Source: Internet
Author: User

Describe the problem first:

(1) In MyEclipse servers view in MyEclipse 10.7.0 in some cases, may not open. Attempting to open a view will cause NPE to be logged.

Could not create the View:an unexpected exception is thrown. Java.lang.NullPointerException at Com.genuitec.eclipse.ast.deploy.core.Deployment. (Unknown Source) at Com.genuitec.eclipse.ast.deploy.core.ModuleDeployment. (Unknown Source) at Com.genuitec.eclipse.ast.deploy.core.WebDeployment. (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. (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. (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) at Org.eclipse.ui.internal.ViewPane.setVisible (  
viewpane.java:534) at org.eclipse.ui.internal.presentations.PresentablePart.setVisible (presentablepart.java:180) At Org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select (presentablepartfolder.java:270) at Org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select (lefttorighttaborder.java:65) at Org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart (tabbedstackpresentation.java:473 )  
At Org.eclipse.ui.internal.PartStack.refreshPresentationSelection (partstack.java:1245) at Org.eclipse.ui.internal.PartStack.createControl (partstack.java:662) at Org.eclipse.ui.internal.PartStack.createControl (partstack.java:570) at  
 Org.eclipse.ui.internal.PartSashContainer.createControl (partsashcontainer.java:568)

As shown below:

(2) If any of the above errors are resolved according to the following 3 steps:
1, first close the myeclipse work space.

2, and then delete the workspace under the "/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs ”

This file. Some information about the deployment project is stored in this file. There is no error in deleting the information on this deployed project.

3, restart the start MyEclipse can be resolved. The lovely cat has appeared again!

The above is about MyEclipse10.7 deployment of the error solution, I hope to help you learn.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.