Bug 39009 - NPE in Delta processor while executing JDT/UI tests
Summary: NPE in Delta processor while executing JDT/UI tests
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-17 07:06 EDT by Dirk Baeumer CLA
Modified: 2003-07-17 05:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2003-06-17 07:06:44 EDT
Build input for I20030617

Got the following NPE while executing the JDT/UI tests

!ENTRY org.eclipse.core.resources 4 2 Jun 17, 2003 12:38:38.578
!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged
(DeltaProcessor.java(Compiled Code))
	at org.eclipse.core.internal.events.NotificationManager$1.run
(NotificationManager.java(Compiled Code))
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java(Compiled Code))
	at org.eclipse.core.runtime.Platform.run(Platform.java(Inlined Compiled 
Code))
	at org.eclipse.core.internal.events.NotificationManager.notify
(NotificationManager.java(Compiled Code))
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges
(NotificationManager.java(Compiled Code))
	at org.eclipse.core.internal.resources.Workspace.broadcastChanges
(Workspace.java(Compiled Code))
	at org.eclipse.core.internal.resources.Workspace.endOperation
(Workspace.java(Compiled Code))
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1600)
	at org.eclipse.jdt.internal.core.JavaElement.runOperation
(JavaElement.java:505)
	at org.eclipse.jdt.internal.core.PackageFragment.createCompilationUnit
(PackageFragment.java:130)
	at org.eclipse.jdt.ui.tests.core.ImportOrganizeTest.testNewImports
(ImportOrganizeTest.java:430)
	at java.lang.reflect.Method.invoke(Native Method)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:23)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:23)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:393)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:277)
	at org.eclipse.pde.internal.junit.ui.RemotePluginTestRunner.main
(RemotePluginTestRunner.java:30)
	at org.eclipse.pde.internal.junit.ui.UITestApplication.runEventLoop
(UITestApplication.java:35)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1382)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:858)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:431)
	at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)


Used VM:

java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM Windows 32 build cn131-20030329 (JIT 
enabled: jitc))

Doesn't happen immediatelly. Occurs after executing the nth test, but then 
shows up on every succeeding test.
Comment 1 Philipe Mulet CLA 2003-06-17 07:11:11 EDT
Can you either provide steps or reproduce on a VM showing line numbers ?
Comment 2 Dirk Baeumer CLA 2003-06-17 07:23:37 EDT
All we did is executing the JDT/UI tests from todays build input with the 
specified VM. I don't have other steps than these.

We executed the test with disabled JIT and they succeeded. So it might either 
be a JIT or a timing issue.

The VM shows line numbers, they are only missing for the last couple of 
entries in the stack. Any ideas why this is the case ?
Comment 3 Jerome Lanneluc CLA 2003-06-17 07:34:01 EDT
Some JITs do a bad job as showing the line numbers. A 1.4.1 VM would show the 
line numbers.
Comment 4 Jerome Lanneluc CLA 2003-07-08 09:02:47 EDT
Changed delta processing to use a PerThreadObject. This should avoid the 
concurrency problem.

Please reopen if you see the problem again.
Comment 5 David Audel CLA 2003-07-17 05:37:59 EDT
Verified.