小编Kin*_*ark的帖子

Eclipse中的eclipse中的NullPointerException,它位于PartServiceImpl.internalFixContext中

我有关于eclipse IDE的问题,我无法在我的工作空间中打开任何文件; 如果我尝试打开文件,eclipse会提示以下错误对话框

"An error has occurred. See error log for more details. java.lang.NullPointerException"
Run Code Online (Sandbox Code Playgroud)

我去工作区看.meta中的.log文件,我看到文件中的一个段落如下:

!ENTRY org.eclipse.jface 4 2 2557-04-09 11:40:49.422
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.internalFixContext(PartServiceImpl.java:380)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:341)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1029)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3047)
    at org.eclipse.ui.internal.WorkbenchPage.access$22(WorkbenchPage.java:2969)
    at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2951)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2947)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2911)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2902)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at …
Run Code Online (Sandbox Code Playgroud)

java eclipse nullpointerexception

21
推荐指数
2
解决办法
12万
查看次数

为什么我的 android 发送电子邮件意图方法不起作用

大家好,我是android程序员的新手。我已经建立了具有 GPS 状态的发送电子邮件意图方法。如果用户单击此按钮,我有一个按钮,我有检查 GPS 状态的功能。并发送电子邮件,但按意图发送电子邮件不起作用,并且在 LogCat 中已显示此错误

    07-16 16:23:30.161: E/AndroidRuntime(28567): FATAL EXCEPTION: main
07-16 16:23:30.161: E/AndroidRuntime(28567): java.lang.IllegalStateException: Could not execute method of the activity
07-16 16:23:30.161: E/AndroidRuntime(28567):    at android.view.View$1.onClick(View.java:3735)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at android.view.View.performClick(View.java:4354)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at android.view.View$PerformClick.run(View.java:17961)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at android.os.Handler.handleCallback(Handler.java:725)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at android.os.Handler.dispatchMessage(Handler.java:92)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at android.os.Looper.loop(Looper.java:137)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at android.app.ActivityThread.main(ActivityThread.java:5328)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at java.lang.reflect.Method.invokeNative(Native Method)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at java.lang.reflect.Method.invoke(Method.java:511)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
07-16 16:23:30.161: E/AndroidRuntime(28567):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) …
Run Code Online (Sandbox Code Playgroud)

java android android-intent google-maps-android-api-2

5
推荐指数
1
解决办法
4078
查看次数