启动Eclipse时报错:控制台NullPointException 博客分类: eclipse
程序员文章站
2024-03-22 22:39:46
...
1 报错log
!SESSION 2014-04-04 17:52:14.756 -----------------------------------------------
eclipse.buildId=v22.6.2-1085508
java.version=1.6.0_43
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
Framework arguments: -product com.android.ide.eclipse.adt.package.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.product
!ENTRY org.eclipse.core.resources 2 10035 2014-04-04 17:52:16.303
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.osgi 4 0 2014-04-04 17:52:22.245
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:4397)
at org.eclipse.swt.SWT.error(SWT.java:4312)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
at org.eclipse.swt.widgets.Display.release(Display.java:3815)
at org.eclipse.swt.graphics.Device.dispose(Device.java:295)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:140)
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: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:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Caused by: java.lang.NullPointerException
at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1376)
at org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1369)
at org.eclipse.cdt.codan.internal.ui.cxx.Startup$1.run(Startup.java:39)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
... 17 more
!ENTRY org.eclipse.core.resources 4 2 2014-04-04 17:52:28.979
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
at org.eclipse.ui.activities.WorkbenchActivityHelper.isFiltering(WorkbenchActivityHelper.java:235)
at org.eclipse.ui.internal.ide.IDEWorkbenchActivityHelper$3.resourceChanged(IDEWorkbenchActivityHelper.java:158)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:396)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1531)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2354)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:5401)
at com.android.ide.eclipse.adt.internal.project.AndroidClasspathContainerInitializer.updateProjects(AndroidClasspathContainerInitializer.java:143)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.updateProjects(ProjectHelper.java:276)
at com.android.ide.eclipse.adt.AdtPlugin$7.run(AdtPlugin.java:1461)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY com.android.ide.eclipse.adt 4 0 2014-04-04 17:52:28.981
!MESSAGE parseSdkContent failed
!STACK 0
java.lang.NullPointerException
at com.android.ide.eclipse.adt.AdtPlugin.getOutStream(AdtPlugin.java:1769)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.convertJarsToClasspathEntries(LibraryClasspathContainerInitializer.java:209)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.allocateLibraryContainer(LibraryClasspathContainerInitializer.java:195)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.updateProjects(LibraryClasspathContainerInitializer.java:87)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.updateProjects(ProjectHelper.java:278)
at com.android.ide.eclipse.adt.AdtPlugin$7.run(AdtPlugin.java:1461)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY org.eclipse.core.jobs 4 2 2014-04-04 17:52:29.021
!MESSAGE An internal error occurred during: "Adjusting Android Project Classpath".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.internal.core.JavaModelManager.storePreference(JavaModelManager.java:4832)
at org.eclipse.jdt.internal.core.JavaProject.setOption(JavaProject.java:2949)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.checkAndFixCompilerCompliance(ProjectHelper.java:513)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.fixProjectClasspathEntries(ProjectHelper.java:422)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$1$1.run(Sdk.java:1169)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY org.eclipse.core.jobs 4 2 2014-04-04 17:52:29.023
!MESSAGE An internal error occurred during: "Adjusting Android Project Classpath".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.internal.core.JavaModelManager.storePreference(JavaModelManager.java:4832)
at org.eclipse.jdt.internal.core.JavaProject.setOption(JavaProject.java:2949)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.checkAndFixCompilerCompliance(ProjectHelper.java:513)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.fixProjectClasspathEntries(ProjectHelper.java:422)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$1$1.run(Sdk.java:1169)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY org.eclipse.core.jobs 4 2 2014-04-04 17:52:29.023
!MESSAGE An internal error occurred during: "Android Library Update".
!STACK 0
java.lang.IllegalStateException: Workspace is closed.
at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:399)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.getDependencyListFromClasspath(LibraryClasspathContainerInitializer.java:522)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.allocateLibraryContainer(LibraryClasspathContainerInitializer.java:180)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.updateProjects(LibraryClasspathContainerInitializer.java:87)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$3$1.run(Sdk.java:1374)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY org.eclipse.core.jobs 2 2 2014-04-04 17:52:29.349
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.console.ConsoleManager$1
!ENTRY org.eclipse.core.jobs 2 2 2014-04-04 17:52:29.350
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.console.IOConsolePartitioner$QueueProcessingJob
!ENTRY org.eclipse.core.jobs 2 2 2014-04-04 17:52:29.351
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.ide.IDEWorkbenchActivityHelper$4
!ENTRY org.eclipse.core.jobs 2 2 2014-04-04 17:52:29.352
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.android.ide.eclipse.adt.internal.sdk.Sdk$6
2、解决办法:
删除文件 workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
http://blog.csdn.net/klkll123/article/details/22952079
!SESSION 2014-04-04 17:52:14.756 -----------------------------------------------
eclipse.buildId=v22.6.2-1085508
java.version=1.6.0_43
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
Framework arguments: -product com.android.ide.eclipse.adt.package.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.product
!ENTRY org.eclipse.core.resources 2 10035 2014-04-04 17:52:16.303
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.osgi 4 0 2014-04-04 17:52:22.245
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:4397)
at org.eclipse.swt.SWT.error(SWT.java:4312)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
at org.eclipse.swt.widgets.Display.release(Display.java:3815)
at org.eclipse.swt.graphics.Device.dispose(Device.java:295)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:140)
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: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:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Caused by: java.lang.NullPointerException
at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1376)
at org.eclipse.ui.internal.Workbench.getActiveWorkbenchWindow(Workbench.java:1369)
at org.eclipse.cdt.codan.internal.ui.cxx.Startup$1.run(Startup.java:39)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
... 17 more
!ENTRY org.eclipse.core.resources 4 2 2014-04-04 17:52:28.979
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
at org.eclipse.ui.activities.WorkbenchActivityHelper.isFiltering(WorkbenchActivityHelper.java:235)
at org.eclipse.ui.internal.ide.IDEWorkbenchActivityHelper$3.resourceChanged(IDEWorkbenchActivityHelper.java:158)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:396)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1531)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2354)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:5401)
at com.android.ide.eclipse.adt.internal.project.AndroidClasspathContainerInitializer.updateProjects(AndroidClasspathContainerInitializer.java:143)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.updateProjects(ProjectHelper.java:276)
at com.android.ide.eclipse.adt.AdtPlugin$7.run(AdtPlugin.java:1461)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY com.android.ide.eclipse.adt 4 0 2014-04-04 17:52:28.981
!MESSAGE parseSdkContent failed
!STACK 0
java.lang.NullPointerException
at com.android.ide.eclipse.adt.AdtPlugin.getOutStream(AdtPlugin.java:1769)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.convertJarsToClasspathEntries(LibraryClasspathContainerInitializer.java:209)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.allocateLibraryContainer(LibraryClasspathContainerInitializer.java:195)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.updateProjects(LibraryClasspathContainerInitializer.java:87)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.updateProjects(ProjectHelper.java:278)
at com.android.ide.eclipse.adt.AdtPlugin$7.run(AdtPlugin.java:1461)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY org.eclipse.core.jobs 4 2 2014-04-04 17:52:29.021
!MESSAGE An internal error occurred during: "Adjusting Android Project Classpath".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.internal.core.JavaModelManager.storePreference(JavaModelManager.java:4832)
at org.eclipse.jdt.internal.core.JavaProject.setOption(JavaProject.java:2949)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.checkAndFixCompilerCompliance(ProjectHelper.java:513)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.fixProjectClasspathEntries(ProjectHelper.java:422)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$1$1.run(Sdk.java:1169)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY org.eclipse.core.jobs 4 2 2014-04-04 17:52:29.023
!MESSAGE An internal error occurred during: "Adjusting Android Project Classpath".
!STACK 0
java.lang.NullPointerException
at org.eclipse.jdt.internal.core.JavaModelManager.storePreference(JavaModelManager.java:4832)
at org.eclipse.jdt.internal.core.JavaProject.setOption(JavaProject.java:2949)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.checkAndFixCompilerCompliance(ProjectHelper.java:513)
at com.android.ide.eclipse.adt.internal.project.ProjectHelper.fixProjectClasspathEntries(ProjectHelper.java:422)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$1$1.run(Sdk.java:1169)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY org.eclipse.core.jobs 4 2 2014-04-04 17:52:29.023
!MESSAGE An internal error occurred during: "Android Library Update".
!STACK 0
java.lang.IllegalStateException: Workspace is closed.
at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:399)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.getDependencyListFromClasspath(LibraryClasspathContainerInitializer.java:522)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.allocateLibraryContainer(LibraryClasspathContainerInitializer.java:180)
at com.android.ide.eclipse.adt.internal.project.LibraryClasspathContainerInitializer.updateProjects(LibraryClasspathContainerInitializer.java:87)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$3$1.run(Sdk.java:1374)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
!ENTRY org.eclipse.core.jobs 2 2 2014-04-04 17:52:29.349
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.console.ConsoleManager$1
!ENTRY org.eclipse.core.jobs 2 2 2014-04-04 17:52:29.350
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.console.IOConsolePartitioner$QueueProcessingJob
!ENTRY org.eclipse.core.jobs 2 2 2014-04-04 17:52:29.351
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.ide.IDEWorkbenchActivityHelper$4
!ENTRY org.eclipse.core.jobs 2 2 2014-04-04 17:52:29.352
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: com.android.ide.eclipse.adt.internal.sdk.Sdk$6
2、解决办法:
删除文件 workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
http://blog.csdn.net/klkll123/article/details/22952079
上一篇: 一头坑进Redis之常见redis.conf配置介绍 博客分类: redis HBaseRedis
下一篇: java 远程连接Pseudo-Distributed Hadoop 博客分类: Hadoop hadoophdfs
推荐阅读
-
启动Eclipse时报错:控制台NullPointException 博客分类: eclipse
-
【JavaWeb】eclipse中常见报错解决汇总 博客分类: 问题解决 eclipsejava
-
用Eclipse在Web项目引用Java项目时实现热部署 博客分类: 技术话题 WebJavaEclipseTomcatJSP
-
启动 Eclipse 弹出“Failed to load the JNI shared library jvm.dll”错误的解决方法! 博客分类: 其他
-
Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderListener 博客分类: eclipsemaven eclipsemaventomcatContextLoaderListener
-
Eclipse控制台输出中文乱码的问题 博客分类: eclipse eclipseconsole中文乱码
-
Eclipse控制台输出中文乱码的问题 博客分类: eclipse eclipseconsole中文乱码
-
myeclipse10中的js文件报错 博客分类: web eclipse 10js报错
-
myeclipse10中的js文件报错 博客分类: web eclipse 10js报错
-
elasticsearch2.0源码在开发环境eclipse中启动的问题及解决方案 博客分类: 开源软件 elasticsearch