Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317797 - [Discovery] NPE in test framework when no locator/advertiser registered
Summary: [Discovery] NPE in test framework when no locator/advertiser registered
Status: RESOLVED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.test (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Markus Kuppe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 317798
  Show dependency tree
 
Reported: 2010-06-24 06:11 EDT by Markus Kuppe CLA
Modified: 2010-06-24 06:22 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (1.14 KB, application/octet-stream)
2010-06-24 06:21 EDT, Markus Kuppe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Kuppe CLA 2010-06-24 06:11:42 EDT
-- Error Log from JUnit --
Class: org.eclipse.ecf.tests.provider.dnssd.DnsSdAdvertiserServiceTest
Method: testRegisterService
Actual: null
Expected: null
Stack Trace:
java.lang.NullPointerException
	at org.eclipse.ecf.tests.discovery.Activator.getDiscoveryAdvertiser(Activator.java:87)
	at org.eclipse.ecf.tests.provider.dnssd.DnsSdAdvertiserServiceTest.getDiscoveryAdvertiser(DnsSdAdvertiserServiceTest.java:37)
	at org.eclipse.ecf.tests.discovery.AbstractDiscoveryTest.setUp(AbstractDiscoveryTest.java:78)
	at org.eclipse.ecf.tests.discovery.DiscoveryServiceTest.setUp(DiscoveryServiceTest.java:27)
	at org.eclipse.ecf.tests.provider.dnssd.DnsSdDiscoveryServiceTest.setUp(DnsSdDiscoveryServiceTest.java:61)
	at junit.framework.TestCase.runBare(TestCase.java:132)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62)
	at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.run(CoreTestApplication.java:23)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Comment 1 Markus Kuppe CLA 2010-06-24 06:21:47 EDT
Fix released to HEAD
Comment 2 Markus Kuppe CLA 2010-06-24 06:21:49 EDT
Created attachment 172587 [details]
mylyn/context/zip