| Summary: | commons tests hang when parsing discovery directory.xml | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Steffen Pingel <steffen.pingel> | ||||
| Component: | Mylyn | Assignee: | Steffen Pingel <steffen.pingel> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Steffen Pingel <steffen.pingel> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | greensopinion | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.7 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 351100 | ||||||
| Attachments: |
|
||||||
|
Description
Steffen Pingel
This is the contents of the file: pre. <?xml version="1.0" encoding="UTF-8" ?> <directory xmlns="http://www.eclipse.org/mylyn/discovery/directory/"> <entry url="http://www.eclipse.org/downloads/download.php?file=/mylyn/discovery/org.eclipse.mylyn.discovery-3.2.jar&r=1&protocol=http" permitCategories="true"/> <entry url="http://tasktop.com/downloads/discovery/com.tasktop.discovery.jar" permitCategories="true"/> </directory> David, do you have any idea what might be causing this? Created attachment 205123 [details]
mylyn/context/zip
Looks like this is a problem in org.eclipse.equinox.internal.p2.transport.ecf.FileReader. Exception happens in HttpHost which gets passed a proxy that has an empty null host. This is due to an empty "http_proxy" environment variable that is set in the parent pom. Thread [main] (Suspended) owns: HostConfiguration (id=2028) owns: RunnableLock (id=1843) ProxyHost(HttpHost).<init>(String, int, Protocol) line: 68 ProxyHost.<init>(String, int) line: 64 HostConfiguration.setProxy(String, int) line: 415 HttpClientRetrieveFileTransfer.setupProxy(Proxy) line: 1038 HttpClientRetrieveFileTransfer.setupProxies() line: 438 HttpClientRetrieveFileTransfer(AbstractRetrieveFileTransfer).sendRetrieveRequest(IFileID, IFileRangeSpecification, IFileTransferListener, Map) line: 888 HttpClientRetrieveFileTransfer(AbstractRetrieveFileTransfer).sendRetrieveRequest(IFileID, IFileTransferListener, Map) line: 576 MultiProtocolRetrieveAdapter.sendRetrieveRequest(IFileID, IFileTransferListener, Map) line: 106 FileReader.sendRetrieveRequest(URI, OutputStream, FileReader$DownloadRange, boolean, IProgressMonitor) line: 349 FileReader.read(URI, IProgressMonitor) line: 213 RepositoryTransport.stream(URI, IProgressMonitor) line: 146 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 P2TransportService.stream(URI, IProgressMonitor) line: 93 WebUtil.stream(URI, IProgressMonitor) line: 161 WebUtil.readResource(URI, WebUtil$TextContentProcessor, IProgressMonitor) line: 95 RemoteBundleDiscoveryStrategy.performDiscovery(IProgressMonitor) line: 107 RemoteBundleDiscoveryStrategyTest.testPerformDiscovery() line: 45 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 RemoteBundleDiscoveryStrategyTest(TestCase).runTest() line: 168 RemoteBundleDiscoveryStrategyTest(TestCase).runBare() line: 134 TestResult$1.protect() line: 110 TestResult.runProtected(Test, Protectable) line: 128 TestResult.run(TestCase) line: 113 RemoteBundleDiscoveryStrategyTest(TestCase).run(TestResult) line: 124 TestSuite.runTest(Test, TestResult) line: 243 TestSuite.run(TestResult) line: 238 TestSuite.runTest(Test, TestResult) line: 243 TestSuite.run(TestResult) line: 238 SuiteMethod(JUnit38ClassRunner).run(RunNotifier) line: 83 JUnit4TestSet.execute(ReporterManager, ClassLoader) line: 62 JUnit4DirectoryTestSuite(AbstractDirectoryTestSuite).executeTestSet(SurefireTestSet, ReporterManager, ClassLoader) line: 140 JUnit4DirectoryTestSuite(AbstractDirectoryTestSuite).execute(ReporterManager, ClassLoader) line: 127 Surefire.run(List, List, ClassLoader, ClassLoader, Boolean) line: 177 OsgiSurefireBooter.run(String[]) line: 72 AbstractUITestApplication$1.run() line: 35 RunnableLock.run() line: 35 UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 135 Display.runAsyncMessages(boolean) line: 3563 Display.readAndDispatch() line: 3212 Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2696 Workbench.runUI() line: 2660 Workbench.access$4(Workbench) line: 2494 Workbench$7.run() line: 674 Realm.runWithDefault(Realm, Runnable) line: 332 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 667 PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149 IDEApplication.start(IApplicationContext) line: 123 UITestApplication.runApplication(Object, String[]) line: 31 UITestApplication(AbstractUITestApplication).run(String[]) line: 114 UITestApplication.start(IApplicationContext) line: 37 EclipseAppHandle.run(Object) line: 196 EclipseAppLauncher.runApplication(Object) line: 110 EclipseAppLauncher.start(Object) line: 79 EclipseStarter.run(Object) line: 344 EclipseStarter.run(String[], Runnable) line: 179 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 597 Main.invokeFramework(String[], URL[]) line: 622 Main.basicRun(String[]) line: 577 Main.run(String[]) line: 1410 Main.main(String[]) line: 1386 Fixed by removing the explicit setting of the http_proxy environment variables in the parent pom. (In reply to comment #1) > David, do you have any idea what might be causing this? Thanks for working this one out Steffen |