Bug 417043 - Mylyn Discovery is broken on JDK 7u40
Summary: Mylyn Discovery is broken on JDK 7u40
Status: VERIFIED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P1 critical (vote)
Target Milestone: 3.9.1   Edit
Assignee: Tomasz Zarna CLA
QA Contact: Steffen Pingel CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2013-09-11 17:30 EDT by Leo Dos Santos CLA
Modified: 2013-09-30 10:23 EDT (History)
6 users (show)

See Also:


Attachments
mylyn/context/zip (185.75 KB, application/octet-stream)
2013-09-16 14:29 EDT, Tomasz Zarna CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Dos Santos CLA 2013-09-11 17:30:45 EDT
I've opened the Spring Tool Suite extension discovery, Tasktop RCP connector discovery and M2E catalog discovery, and all 3 fail in the same way on the Mac VM. I haven't verified on Windows or Linux

java.io.IOException: Unable to create temporary file
	at java.io.File$TempDirectory.generateFile(File.java:1891)
	at java.io.File.createTempFile(File.java:1979)
	at org.eclipse.mylyn.internal.discovery.core.model.RemoteBundleDiscoveryStrategy$DownloadBundleJob.call(RemoteBundleDiscoveryStrategy.java:237)
	at org.eclipse.mylyn.internal.discovery.core.model.RemoteBundleDiscoveryStrategy$DownloadBundleJob.call(RemoteBundleDiscoveryStrategy.java:1)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:724)

Looks like the workaround is to truncate the leading '/' of lastPathElement before calling File.createTempFile();
Comment 1 Steffen Pingel CLA 2013-09-12 03:12:31 EDT
Thanks for letting us know. We should consider backporting a fix to 3.9.2 and possibly rebuild 3.9.1.
Comment 2 Robert Munteanu CLA 2013-09-13 19:53:48 EDT
Happens on Linux as well.
Comment 3 Martin Lippert CLA 2013-09-16 08:37:58 EDT
Any chance to get a fix for this in the Kepler SR1 timeframe? That would be awesome!
Comment 4 Tomasz Zarna CLA 2013-09-16 14:25:17 EDT
Review: https://git.eclipse.org/r/#/c/16470/
Comment 5 Tomasz Zarna CLA 2013-09-16 14:29:33 EDT
Created attachment 235541 [details]
mylyn/context/zip
Comment 6 Steffen Pingel CLA 2013-09-17 08:14:34 EDT
The fix is now in master and the 3.9.x branch. Thanks very much!
Comment 7 Tomasz Zarna CLA 2013-09-17 15:15:54 EDT
Verified in 3.9.1.v20130917-0100 on Ubuntu 12.04.2 with Java 1.7.0_40-b43.
Comment 8 Andrew Eisenberg CLA 2013-09-17 18:39:06 EDT
*** Bug 417458 has been marked as a duplicate of this bug. ***
Comment 9 Max Rydahl Andersen CLA 2013-09-30 10:23:22 EDT
FYI: I opened https://bugs.openjdk.java.net/browse/JDK-8025128