为什么myeclipse总是报空指针异常

g084120209 发布于 2016/09/30 16:39
阅读 1K+
收藏 0

用myeclipse做项目,突然就弹出报空指针异常的错误提示框

打开日志,日志显示

!ENTRY org.eclipse.wst.sse.ui 4 2 2016-09-30 16:22:29.037
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.wst.sse.ui".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocumentRegion.getFullText(BasicStructuredDocumentRegion.java:151)
	at org.eclipse.wst.css.core.internal.document.CSSDeclarationItemParser.getCollapsedText(CSSDeclarationItemParser.java:1092)
	at org.eclipse.wst.css.core.internal.document.CSSDeclarationItemParser.makeString(CSSDeclarationItemParser.java:873)
	at org.eclipse.wst.css.core.internal.document.CSSDeclarationItemParser.createStringValue(CSSDeclarationItemParser.java:539)
	at org.eclipse.wst.css.core.internal.document.CSSDeclarationItemParser.createPrimitiveValue(CSSDeclarationItemParser.java:392)
	at org.eclipse.wst.css.core.internal.document.CSSDeclarationItemParser.setupValues(CSSDeclarationItemParser.java:1021)
	at org.eclipse.wst.css.core.internal.document.CSSDeclarationItemParser.setupValues(CSSDeclarationItemParser.java:969)
	at org.eclipse.wst.css.core.internal.document.CSSStyleDeclItemImpl.setCssValueTextCore(CSSStyleDeclItemImpl.java:260)
	at org.eclipse.wst.css.core.internal.document.CSSStyleDeclItemImpl.setCssValueText(CSSStyleDeclItemImpl.java:234)
	at org.eclipse.wst.css.core.internal.document.CSSStyleDeclarationImpl.setProperty(CSSStyleDeclarationImpl.java:267)
	at org.eclipse.wst.html.core.internal.htmlcss.CSSQueryContext.applyFull(CSSQueryContext.java:73)
	at org.eclipse.wst.html.core.internal.htmlcss.CSSQueryTraverser.getDeclaration(CSSQueryTraverser.java:56)
	at org.eclipse.jst.pagedesigner.css2.CSSUtil.getCSSDeclaration(CSSUtil.java:174)
	at org.eclipse.jst.pagedesigner.css2.style.AbstractStyle.calculateDeclaration(AbstractStyle.java:143)
	at org.eclipse.jst.pagedesigner.css2.style.AbstractStyle.getDeclaration(AbstractStyle.java:159)
	at org.eclipse.jst.pagedesigner.css2.style.AbstractStyle.calculateProperty(AbstractStyle.java:201)
	at org.eclipse.jst.pagedesigner.css2.style.AbstractStyle.getStyleProperty(AbstractStyle.java:124)
	at org.eclipse.jst.pagedesigner.css2.layout.CSSFigure.paint(CSSFigure.java:272)
	at org.eclipse.jst.pagedesigner.css2.layout.FlowFigure.paintChildren(FlowFigure.java:147)
	at org.eclipse.jst.pagedesigner.css2.layout.CSSFigure.paintClientArea(CSSFigure.java:445)
	at org.eclipse.jst.pagedesigner.css2.layout.CSSFigure.paint(CSSFigure.java:285)
	at org.eclipse.jst.pagedesigner.css2.layout.FlowFigure.paintChildren(FlowFigure.java:147)
	at org.eclipse.jst.pagedesigner.css2.layout.FlowFigure.paintClientArea(FlowFigure.java:170)
	at org.eclipse.draw2d.Figure.paint(Figure.java:1117)
	at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1167)
	at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1202)
	at org.eclipse.draw2d.Figure.paint(Figure.java:1117)
	at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1167)
	at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1202)
	at org.eclipse.draw2d.Figure.paint(Figure.java:1117)
	at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1167)
	at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1202)
	at org.eclipse.draw2d.ScalableLayeredPane.paintClientArea(ScalableLayeredPane.java:94)
	at org.eclipse.draw2d.Figure.paint(Figure.java:1117)
	at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1167)
	at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1202)
	at org.eclipse.draw2d.Figure.paint(Figure.java:1117)
	at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1167)
	at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1202)
	at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:160)
	at org.eclipse.draw2d.Figure.paint(Figure.java:1117)
	at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1167)
	at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1202)
	at org.eclipse.draw2d.Figure.paint(Figure.java:1117)
	at org.eclipse.draw2d.DeferredUpdateManager.paint(DeferredUpdateManager.java:165)
	at org.eclipse.draw2d.LightweightSystem.paint(LightweightSystem.java:203)
	at org.eclipse.draw2d.LightweightSystem$2.handleEvent(LightweightSystem.java:110)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
	at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1491)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4668)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4990)
	at org.eclipse.swt.internal.win32.OS.RedrawWindow(Native Method)
	at org.eclipse.swt.widgets.Control.update(Control.java:4437)
	at org.eclipse.swt.widgets.Control.update(Control.java:4427)
	at org.eclipse.draw2d.NativeGraphicsSource.getGraphics(NativeGraphicsSource.java:48)
	at org.eclipse.draw2d.DeferredUpdateManager.getGraphics(DeferredUpdateManager.java:147)
	at org.eclipse.draw2d.DeferredUpdateManager.repairDamage(DeferredUpdateManager.java:310)
	at org.eclipse.draw2d.DeferredUpdateManager.performUpdate(DeferredUpdateManager.java:192)
	at org.eclipse.jst.pagedesigner.viewer.CaretUpdater.updateRangeSelection(CaretUpdater.java:143)
	at org.eclipse.jst.pagedesigner.viewer.CaretUpdater.updateSelection(CaretUpdater.java:120)
	at org.eclipse.jst.pagedesigner.viewer.CaretUpdater.selectionChanged(CaretUpdater.java:201)
	at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:247)
	at org.eclipse.jst.pagedesigner.viewer.HTMLGraphicalViewer.fireSelectionChanged(HTMLGraphicalViewer.java:272)
	at org.eclipse.jst.pagedesigner.viewer.HTMLGraphicalViewer.setSelection(HTMLGraphicalViewer.java:292)
	at org.eclipse.jst.pagedesigner.editors.SelectionSynchronizer.textSelectionChanged(SelectionSynchronizer.java:164)
	at org.eclipse.jst.pagedesigner.editors.HTMLEditor$9.selectionChanged(HTMLEditor.java:573)
	at org.eclipse.wst.sse.ui.StructuredTextEditor$4.run(StructuredTextEditor.java:593)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.fireSelectionChanged(StructuredTextEditor.java:591)
	at org.eclipse.wst.sse.ui.StructuredTextEditor$StructuredSelectionProvider.handlePostSelectionChanged(StructuredTextEditor.java:672)
	at org.eclipse.wst.sse.ui.StructuredTextEditor$3.selectionChanged(StructuredTextEditor.java:565)
	at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2755)
	at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2703)
	at org.eclipse.jface.text.TextViewer$5.run(TextViewer.java:2682)
	at org.eclipse.swt.widgets.Display.runTimer(Display.java:4271)
	at org.eclipse.swt.widgets.Display.messageProc(Display.java:3358)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	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:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.genuitec.pulse.eclipse.launcher.Main.main(Main.java:110)

这是什么原因,是软件的bug吗?求大神指点,在下不胜感激



加载中
0
物是人非_
物是人非_
检查最近装什么插件了,应该是插件的问题
g084120209
g084120209
最近也没加什么插件啊,我用的是MyEclipse2014,现在使用,那个错误又不报了
0
好男人小志
谷歌wst插件不符合你的版本,换一个
0
唐记锅巴

删除工作空间里的

/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs

的文件 (这个文件中存储了一些部署项目的信息。删了这个部署的项目的信息就没有错误了),重启MyEclipse

返回顶部
顶部