Community
Participate
Working Groups
Debug perspective, when saving (compiles), stepping or some other operations. Clueless. !ENTRY org.eclipse.jface 4 2 May 16, 2003 13:35:13.479 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.jface 4 2 May 16, 2003 13:37:05.121 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException !ENTRY org.eclipse.jface 4 2 May 16, 2003 17:45:40.482 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException
Exactly which version of Eclipse are you using? Perhaps attach your configuration inforamtion to this bug (Help -> About Eclipse Platform -> Configuration Details).
i20030516 Somebody obviously forgot to log the exception instead of Exception.toString()
Do you have a reproducible test case? Something we can do here to see the problem? I haven't been able to reproduce this problem here. Do you have any other plug-ins in your environment?
If I knew how to reproduce it, I would tell you. It happen when I least expect it. If every exception is logged properly in the next valid build, I will certainly use it to help track this down. Until then, I can only keep my eyes open, no more. *** Features: org.eclipse.jdt (2.1.0) "Eclipse Java Development Tools" org.eclipse.jdt.source (2.1.0) "Eclipse Java Development Tools SDK" org.eclipse.pde (2.1.0) "Eclipse Plug-in Development Environment" org.eclipse.platform (2.1.0) "Eclipse Platform" org.eclipse.platform.source (2.1.0) "Eclipse Platform Plug-in Developer Resources" org.eclipse.platform.win32 (2.1.0) "Eclipse Platform (Windows)" org.eclipse.platform.win32.source (2.1.0) "Eclipse Platform Plug-in Developer Resources (Windows)" org.eclipse.sdk.win32 (2.1.0) "Eclipse Project SDK (Windows)" *** Plug-in Registry: org.apache.ant (1.5.3) "Apache Ant" org.apache.lucene (1.2.1) "Apache Lucene" org.apache.xerces (4.0.7) "Xerces Based XML Parser" org.eclipse.ant.core (2.1.0) "Ant Build Tool Core" org.eclipse.ant.ui (2.1.0) "Ant UI" org.eclipse.compare (2.1.0) "Compare Support" org.eclipse.core.boot (2.1.0) "Core Boot" org.eclipse.core.resources (2.1.0) "Core Resource Management" org.eclipse.core.resources.win32 (2.1.0) "%win32FragmentName" org.eclipse.core.runtime (2.1.0) "Core Runtime" org.eclipse.debug.core (2.1.0) "Debug Core" org.eclipse.debug.ui (2.1.0) "Debug UI" org.eclipse.help (2.1.0) "Help System Core" org.eclipse.help.appserver (2.1.0) "Help Application Server" org.eclipse.help.ui (2.1.0) "Help System UI" org.eclipse.help.ui.win32 (2.1.0) "%help_system_plugin_name_win32" org.eclipse.help.webapp (2.1.0) "Help System Webapp" org.eclipse.jdt (2.1.0) "Eclipse Java Development Tools" org.eclipse.jdt.core (2.1.0) "Java Development Tools Core" org.eclipse.jdt.debug (2.1.0) "JDI Debug Model" org.eclipse.jdt.debug.ui (2.1.0) "JDI Debug UI" org.eclipse.jdt.doc.isv (2.1.0) "Eclipse JDT Plug-in Developer Guide" org.eclipse.jdt.doc.user (2.1.0) "Eclipse Java Development User Guide" org.eclipse.jdt.junit (2.1.0) "Java Development Tools JUnit support" org.eclipse.jdt.launching (2.1.0) "Java Development Tools Launching Support" org.eclipse.jdt.source (2.1.0) "Eclipse Java Development Tools SDK" org.eclipse.jdt.ui (2.1.0) "Java Development Tools UI" org.eclipse.jface (2.1.0) "JFace" org.eclipse.jface.text (2.1.0) "JFace Text" org.eclipse.pde (2.1.0) "Eclipse Plug-in Development Environment" org.eclipse.pde.build (2.1.0) "Plug-in Development Environment Build Support" org.eclipse.pde.core (2.1.0) "Plug-in Development Core" org.eclipse.pde.doc.user (2.1.0) "Eclipse Plug-in Development User Guide" org.eclipse.pde.runtime (2.1.0) "Plug-in Development Environment Runtime" org.eclipse.pde.source (2.1.0) "Eclipse Plug-in Development Environment Source Code" org.eclipse.pde.ui (2.1.0) "Plug-in Development UI" org.eclipse.platform (2.1.0) "Eclipse Platform" org.eclipse.platform.doc.isv (2.1.0) "Eclipse Platform Plug-in Developer Guide" org.eclipse.platform.doc.user (2.1.0) "Eclipse Workbench User Guide" org.eclipse.platform.source (2.1.0) "Eclipse Platform Plug-in Developer Resources" org.eclipse.platform.win32 (2.1.0) "Eclipse Platform (Windows)" org.eclipse.platform.win32.source (2.1.0) "Eclipse Platform Plug-in Developer Resources (Windows)" org.eclipse.sdk.win32 (2.1.0) "Eclipse Project SDK (Windows)" org.eclipse.search (2.1.0) "Search Support" org.eclipse.swt (2.1.0) "Standard Widget Toolkit" org.eclipse.swt.win32 (2.1.0) "%fragmentName" org.eclipse.team.core (2.1.0) "Team Support Core" org.eclipse.team.cvs.core (2.1.0) "CVS Team Provider Core" org.eclipse.team.cvs.ssh (2.1.0) "CVS SSH Core" org.eclipse.team.cvs.ui (2.1.0) "CVS Team Provider UI" org.eclipse.team.ui (2.1.0) "Team Support UI" org.eclipse.text (2.1.0) "Text" org.eclipse.tomcat (4.1.24) "Tomcat Wrapper" org.eclipse.ui (2.1.0) "Eclipse UI" org.eclipse.ui.editors (2.1.0) "Default Text Editor" org.eclipse.ui.externaltools (2.1.0) "External Tools" org.eclipse.ui.views (2.1.0) "Views" org.eclipse.ui.workbench (2.1.0) "Workbench" org.eclipse.ui.win32 (2.1.0) "%Win32Fragment.fragmentName" org.eclipse.ui.workbench.texteditor (2.1.0) "Text Editor Framework" org.eclipse.update.core (2.1.0) "Install/Update Core" org.eclipse.update.core.win32 (2.1.0) "%fragmentNameWin" org.eclipse.update.ui (2.1.0) "Install/Update UI" org.eclipse.update.ui.win32 (2.1.0) "%fragmentNameWin" org.eclipse.update.ui.forms (2.1.0) "Install/Update Forms" org.junit (3.8.1) "JUnit Testing Framework" [skipped user pref] *** Update Manager Log: Configuration=Mar 13, 2003 3:26:08 PM Is current configuration=false Date=3/13/03 3:26 PM Activities=file:C:/java/eclipseRC2/ Action=Site installed Status=Success Date=3/13/03 3:26 PM Activities=file:C:/java/eclipseRC2/workspace/.metadata/.config/platform.cfg.metadata/v2LocalSite.xml Action=Reconcile Status=Success ---------------------------------------------------- Configuration=Mar 27, 2003 10:30:27 AM Is current configuration=false Date=3/27/03 10:30 AM Activities=file:C:/java/eclipseRC3/ Action=Site installed Status=Success Date=3/27/03 10:30 AM Activities=file:C:/java/eclipseRC3/workspace/.metadata/.config/platform.cfg.metadata/v2LocalSite.xml Action=Reconcile Status=Success ---------------------------------------------------- Configuration=Apr 10, 2003 5:00:23 PM Is current configuration=false Date=4/10/03 5:00 PM Activities=file:C:/java/eclipse2.1/ Action=Site installed Status=Success Date=4/10/03 5:00 PM Activities=file:C:/java/eclipse2.1/workspace/.metadata/.config/platform.cfg.metadata/v2LocalSite.xml Action=Reconcile Status=Success ---------------------------------------------------- Configuration=May 7, 2003 6:15:32 PM Is current configuration=false Date=5/7/03 6:15 PM Activities=file:C:/java/eclipsei20030507/ Action=Site installed Status=Success Date=5/7/03 6:15 PM Activities=file:C:/java/eclipsei20030507/workspace/.metadata/.config/platform.cfg.metadata/v2LocalSite.xml Action=Reconcile Status=Success ---------------------------------------------------- Configuration=May 16, 2003 11:53:13 AM Is current configuration=true Date=5/16/03 11:53 AM Activities=file:C:/java/eclipse_i20030516/ Action=Site installed Status=Success Date=5/16/03 11:53 AM Activities=file:C:/java/eclipse_i20030516/workspace/.metadata/.config/platform.cfg.metadata/v2LocalSite.xml Action=Reconcile Status=Success
always in the org.eclipse.jface NPE again. one time, I was removing a bookmark from the bookmark view (delete key) another time I was removing a breakpoint from the left ruler, another time I was saving (ctrl-s), feels like a UI element that updates at wrong time, too early or too late. what is jface anyway?
Which virtual machine are you using, and which version? Eclipse has the exception object in hand at the point it is logged (or it wouldn't indicate !STACK), and should have full stack trace information. The lack of further details suggests a VM limitation. You often see this with OutOfMemoryErrors (since the VM has no memory to capture the full stack), but not with NPEs. JFace is a UI framework that sits between SWT and the Workbench. Although the exception is being caught by JFace, the problem could be anywhere. For example, menu items are typically implemented using JFace actions. Also, when you're in a JFace dialog, JFace is running the SWT event loop. Both places catch exceptions and log them.
standard stuff: java.version=1.4.1_02 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Never used any other, beside the 1.4.2 beta I tested but since it failed miserably somewhere in SWT, I reverted to 1.4.1. Now, it is obvious to me that jface did caught an exception, but it definitely didn't dump it. Maybe a nested exception has a null cause? maybe the exception was hacked by bad native code and no fillstacktrace was called, or the internal struct for stacktraceinfo was cleared somehow, or the log handler is going crazy, or the exception class tried to override the printstacktrace in a very bad way that corrupts the content, or the custom exception is from a remote system but is not serializable anymore because of a non-serializable field... Search. You know the eclipse code way better than me (I cannot say how many times better, because I cannot divide by zero...!)
I have not been able to reproduce this. Have you seen this in more recent builds?
may 16th...! I lost track long ago of how many unexplained errors I have seen (on my console or in UI, glitches I don't have a week to waste to try reproduce...). Focusing on that one would be futile. At this point, as long as eclipse does not crash too much nor too often... I learned to tolerate it.
Closing then.