org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:4361)
at org.eclipse.swt.SWT.error(SWT.java:4276)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
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: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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: java.lang.NullPointerException
at sun.net.www.ParseUtil.toURI(ParseUtil.java:261)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:913)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)
at java.net.URL.openStream(URL.java:1010)
at org.eclipse.jface.resource.URLImageDescriptor.getStream(URLImageDescriptor.java:98)
at org.eclipse.jface.resource.URLImageDescriptor.getImageData(URLImageDescriptor.java:68)
at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:273)
at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:159)
at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:227)
at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:205)
at org.eclipse.jst.pagedesigner.css2.property.BackgroundImageMeta.getImage(BackgroundImageMeta.java:133)
at org.eclipse.jst.pagedesigner.css2.property.BackgroundImageMeta.calculateCSSValueResult(BackgroundImageMeta.java:59)
at org.eclipse.jst.pagedesigner.css2.style.AbstractStyle.calculateCSSValueResult(AbstractStyle.java:274)
at org.eclipse.jst.pagedesigner.css2.style.AbstractStyle.calculateProperty(AbstractStyle.java:238)
at org.eclipse.jst.pagedesigner.css2.style.AbstractStyle.getStyleProperty(AbstractStyle.java:124)
at org.eclipse.jst.pagedesigner.css2.layout.CSSFigure.paintFigure(CSSFigure.java:337)
at org.eclipse.jst.pagedesigner.css2.layout.CSSFigure.paint(CSSFigure.java:283)
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.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.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.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.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.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:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:1463)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4585)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
at org.eclipse.swt.internal.win32.OS.RedrawWindow(Native Method)
at org.eclipse.swt.widgets.Control.update(Control.java:4380)
at org.eclipse.swt.widgets.Control.update(Control.java:4370)
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.draw2d.DeferredUpdateManager$UpdateRequest.run(DeferredUpdateManager.java:44)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
... 22 more
相关推荐
### 关于Unhandled event loop exception No more handles的两种解决方案 在使用Eclipse开发工具的过程中,有时会遇到一个较为棘刺的问题——出现“Unhandled event loop exception No more handles”的错误提示。...
这个问题通常表现为Java虚拟机(JVM)在执行过程中因可用堆内存不足而抛出异常。本文将详细探讨Java heap space问题的根源、影响因素以及解决策略,帮助开发者有效避免和处理此类问题。 #### Java heap space问题的...
本示例"**WPF全局异常捕获Demo**"旨在提供一种策略,确保在程序运行过程中能够有效地捕获和处理异常,从而防止程序因错误而意外终止。 首先,我们要理解WPF应用程序的生命周期,以及在何处设置全局异常处理。WPF...
使用try-catch-finally语句可以捕获和处理异常,确保程序的稳定运行。 2. **Sitecore架构**:Sitecore由多个组件组成,如内容管理器(CMS)、内容交付(CD)和Sitecore Experience Platform(XP)。了解其架构对于...
但在大型项目中,如果每个函数都独立处理异常,代码会变得难以维护。为了解决这个问题,可以创建一个全局事件处理器来捕获应用程序级别的异常。 全局异常处理通常是在应用程序的主入口点,即`Sub Main()`中进行配置...
前一章讨论了当一个异常过滤器返回 E X C E P T I O N _ C O N T I N U E _ S E A R C H时会发生什么事 情。返回EXCEPTION_CONTINUE_SEARCH 是...在这种情况下,就出现了所谓的“未处理异常”(Unhandled exception)。
// 处理异常,例如显示错误对话框 MessageBox.Show("发生了一个错误:" + e.Exception.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } ``` 另外,Global.asax文件在Web应用程序中起着类似的...
unhandled exception(解决方案).md
除了`ThreadException`,还可以监听`AppDomain`级别的`UnhandledException`事件,这可以捕获应用程序域内所有线程的未处理异常。同样,这个也需要在`Main`方法中设置: ```csharp AppDomain.CurrentDomain....
结构化异常处理(Structured Exception Handling,简称SEH)、基于编译器的结构化异常处理(带有扩展帧)、向量异常处理(Vectored Exception Handling)以及未处理异常过滤器(Unhandled Exception Filters)。...
首先,我们需要理解在C#中处理异常的基本概念。异常是在程序执行过程中发生的错误,当出现异常时,会触发一个异常对象。通过使用`try-catch`块,我们可以捕获并处理这些异常。然而,这种处理方式通常局限于特定的...
这里建立了一个有关异常处理的对话框类,来实现异常的捕捉。通过使用ThreadException, App.CurrentDomain.UnhandledException捕捉程序里不可预知的异常,可以帮助开发者方便的找到发生异常的位置。
通常,我们会在可能出错的代码段周围包裹`try`块,然后在`catch`块中处理异常。 2. **WinForm局部异常处理**: 在WinForm控件的事件处理函数中,可以使用`try-catch`来捕获特定事件中可能出现的异常。但是,这种...
当程序退出时,如果有未处理的异常,会调用`std::unhandled_exception`回调函数。你可以重写这个函数来执行清理操作。 10. 非局部跳转(`catch(...)`): `catch(...)`是万能的异常处理器,它可以捕获任何类型的...
ES6 的 Promise 提供了 `unhandledrejection` 事件,用于处理未处理的 Promise rejections。当 Promise 被拒绝但没有相应的 `.catch()` 方法来处理时,此事件就会触发。可以监听 `window` 或 `process` 对象上的 `...
MessageBox.Show("主线程出现未处理异常: " + ex.Message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { MessageBox.Show("未知错误", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error...
在C#中,可以使用`AppDomain.UnhandledException`事件来捕获全局异常。这个事件会在应用程序域中没有处理的异常发生时触发。同时,`.NET`框架也提供了`Application_Error`事件,在全球.asax文件中定义,可以处理ASP...
WPF提供了丰富的事件模型来处理异常,例如`Dispatcher.UnhandledException`事件。当在UI线程中发生未捕获的异常时,此事件会被触发。我们可以注册一个事件处理函数来记录异常信息,或者向用户显示错误对话框,以提高...
这段代码会在发生未处理异常时返回一个自定义的错误页面,包含异常的详细信息。 全局异常处理不仅可以用于记录错误,还可以进行其他操作,例如发送错误通知、清理资源或提供用户友好的错误信息。这有助于提高程序的...
tomcat-ujli.jar是TOMCAT的核心类库文件,负责处理TOMCAT的启动和关闭操作。如果Eclipse无法找到该文件,TOMCAT将无法正常启动,导致"a java exception has occurred"的错误信息。 二、解决"a java exception has ...