Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363245 - Exception while running unit tests
Summary: Exception while running unit tests
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 19:54 EST by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2011-11-08 19:54:38 EST
The following exception is seen in the console while running "ant hudson-build". It doesn't prevent the build or tests from succeeding.

     [java] ERROR : Cannot read properties from null object.
     [java] org.eclipse.sapphire.modeling.el.FunctionException: Cannot read properties from null object.
     [java]     at org.eclipse.sapphire.modeling.el.FunctionResult.value(FunctionResult.java:147)
     [java]     at org.eclipse.sapphire.services.internal.DeclarativeFileExtensionsService.compute(DeclarativeFileExtens
ionsService.java:87)
     [java]     at org.eclipse.sapphire.services.FileExtensionsService.refresh(FileExtensionsService.java:60)
     [java]     at org.eclipse.sapphire.services.FileExtensionsService.init(FileExtensionsService.java:35)
     [java]     at org.eclipse.sapphire.services.Service.init(Service.java:54)
     [java]     at org.eclipse.sapphire.services.ServiceFactoryProxy.create(ServiceFactoryProxy.java:67)
     [java]     at org.eclipse.sapphire.services.ServiceContext.services(ServiceContext.java:145)
     [java]     at org.eclipse.sapphire.modeling.ModelElement.services(ModelElement.java:591)
     [java]     at org.eclipse.sapphire.modeling.ModelElement.service(ModelElement.java:571)
     [java]     at org.eclipse.sapphire.services.PathValidationService.init(PathValidationService.java:50)
     [java]     at org.eclipse.sapphire.services.Service.init(Service.java:54)
     [java]     at org.eclipse.sapphire.services.ServiceFactoryProxy.create(ServiceFactoryProxy.java:67)
     [java]     at org.eclipse.sapphire.services.ServiceContext.services(ServiceContext.java:145)
     [java]     at org.eclipse.sapphire.modeling.ModelElement.services(ModelElement.java:591)
     [java]     at org.eclipse.sapphire.modeling.ModelElement.<init>(ModelElement.java:107)
     [java]     at org.eclipse.sapphire.tests.services.t0002.internal.TestModelImpl.<init>(TestModelImpl.java:33)
     [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     [java]     at org.eclipse.sapphire.modeling.ModelElementType.instantiate(ModelElementType.java:279)
     [java]     at org.eclipse.sapphire.modeling.ModelElementType.instantiate(ModelElementType.java:319)
     [java]     at org.eclipse.sapphire.tests.services.t0002.TestServices0002.testValidation(TestServices0002.java:156)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at junit.framework.TestCase.runTest(TestCase.java:168)
     [java]     at junit.framework.TestCase.runBare(TestCase.java:134)
     [java]     at junit.framework.TestResult$1.protect(TestResult.java:110)
     [java]     at junit.framework.TestResult.runProtected(TestResult.java:128)
     [java]     at junit.framework.TestResult.run(TestResult.java:113)
     [java]     at junit.framework.TestCase.run(TestCase.java:124)
     [java]     at junit.framework.TestSuite.runTest(TestSuite.java:243)
     [java]     at junit.framework.TestSuite.run(TestSuite.java:238)
     [java]     at junit.framework.TestSuite.runTest(TestSuite.java:243)
     [java]     at junit.framework.TestSuite.run(TestSuite.java:238)
     [java]     at junit.framework.TestSuite.runTest(TestSuite.java:243)
     [java]     at junit.framework.TestSuite.run(TestSuite.java:238)
     [java]     at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:501)
     [java]     at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:259)
     [java]     at org.eclipse.test.UITestApplication$2.run(UITestApplication.java:197)
     [java]     at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
     [java]     at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
     [java]     at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
     [java]     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
     [java]     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:972)
     [java]     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     [java]     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:888)
     [java]     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:90)
     [java]     at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:565)
     [java]     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     [java]     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:520)
     [java]     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
     [java]     at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
     [java]     at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:140)
     [java]     at org.eclipse.test.UITestApplication.run(UITestApplication.java:62)
     [java]     at org.eclipse.test.UITestApplication.start(UITestApplication.java:212)
     [java]     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
     [java]     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:1
10)
     [java]     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
     [java]     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:352)
     [java]     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:624)
     [java]     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579)
     [java]     at org.eclipse.equinox.launcher.Main.run(Main.java:1431)
     [java]     at org.eclipse.equinox.launcher.Main.main(Main.java:1407)
     [java]     at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 1 Konstantin Komissarchik CLA 2011-11-08 21:38:08 EST
Fixed. It was a bug in the unit test.
Comment 2 Ling Hao CLA 2011-11-28 19:00:30 EST
Verify by checking the hudson output.