Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 238148

Summary: Exception raised while selecting a file in the project explorer
Product: [Eclipse Project] JDT Reporter: Cheng-Yee Lin <clin>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: clin, martinae
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Cheng-Yee Lin CLA 2008-06-23 12:27:13 EDT
Build ID: 3.4 RC3 build

[This may not reproduce consistently.]
We are seeing the following exception/stack trace in the log file.  To help us investigate what the problem may be, can someone "interpret" what it means, and point us to what we should be looking for?  Thanks.

Stack trace:

!ENTRY org.eclipse.core.expressions 4 201 Jun 18, 2008 14:05:16.851
!MESSAGE No property tester contributes a property org.eclipse.jdt.core.inSourceFolder to type class org.eclipse.core.internal.resources.File
!STACK 1
org.eclipse.core.runtime.CoreException: No property tester contributes a property org.eclipse.jdt.core.inSourceFolder to type class org.eclipse.core.internal.resources.File
	at org.eclipse.core.internal.expressions.TypeExtensionManager.getProperty(Unknown Source)
	at org.eclipse.core.internal.expressions.TestExpression.evaluate(Unknown Source)
	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(Unknown Source)
	at org.eclipse.core.internal.expressions.AndExpression.evaluate(Unknown Source)
	at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(Unknown Source)
	at org.eclipse.core.internal.expressions.EnablementExpression.evaluate(Unknown Source)
	at org.eclipse.ui.internal.ObjectActionContributor$ObjectContribution.isApplicableTo(Unknown Source)
	at org.eclipse.ui.internal.ObjectActionContributor.isApplicableTo(Unknown Source)
	at org.eclipse.ui.internal.ObjectContributorManager.isApplicableTo(Unknown Source)
	at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(Unknown Source)
	at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(Unknown Source)
	at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(Unknown Source)
	at org.eclipse.jface.action.MenuManager.fireAboutToShow(Unknown Source)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow(Unknown Source)
	at org.eclipse.jface.action.MenuManager.access$1(Unknown Source)
	at org.eclipse.jface.action.MenuManager$2.menuShown(Unknown Source)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
	at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Unknown Source)
	at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
	at org.eclipse.swt.widgets.Canvas.windowProc(Unknown Source)
	at org.eclipse.swt.widgets.Decorations.windowProc(Unknown Source)
	at org.eclipse.swt.widgets.Shell.windowProc(Unknown Source)
	at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
	at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
	at org.eclipse.swt.widgets.Menu._setVisible(Unknown Source)
	at org.eclipse.swt.widgets.Display.runPopups(Unknown Source)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
	at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
	at org.eclipse.ui.internal.Workbench.access$4(Unknown Source)
	at org.eclipse.ui.internal.Workbench$5.run(Unknown Source)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
	at org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
	at org.eclipse.equinox.launcher.Main.run(Unknown Source)
	at org.eclipse.equinox.launcher.Main.main(Unknown Source)
Comment 1 Jerome Lanneluc CLA 2008-06-24 05:33:09 EDT
Moving to JDT/UI
Comment 2 Martin Aeschlimann CLA 2008-06-24 06:58:14 EDT
org.eclipse.jdt.core.manipulation contributes a property tester
org.eclipse.jdt.core.inSourceFolder but only for IJavaElement.

I looked at usages in JDT UI: We only use it on such elements.
 <and>
    <instanceof value="org.eclipse.jdt.core.IPackageFragmentRoot"/>
      <not>
        <test property="org.eclipse.jdt.core.inSourceFolder"/>
      </not>
 </and>

What plugins have you installed? Can you do a search in all the plugin.xml's to find out who's using 'inSourceFolder'

Comment 3 Cheng-Yee Lin CLA 2008-06-26 13:33:56 EDT
Thanks for the suggestion.  The problem cannot be reproduced in a configuration with newer versions of bits.  The search for 'inSourceFolder' in the plugin.xml files did not turn up anything suspicious, either.  Closing the bug now.
Comment 4 Cheng-Yee Lin CLA 2008-06-26 13:34:39 EDT
Closing...