Community
Participate
Working Groups
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.
Can you either provide steps or reproduce on a VM showing line numbers ?
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 ?
Some JITs do a bad job as showing the line numbers. A 1.4.1 VM would show the line numbers.
Changed delta processing to use a PerThreadObject. This should avoid the concurrency problem. Please reopen if you see the problem again.
Verified.