Bug 1090003

Summary: eclipse-equinox-osgi breaks Tycho (JavaSE/compact1)
Product: [Fedora] Fedora Reporter: Mikolaj Izdebski <mizdebsk>
Component: tychoAssignee: Roland Grunberg <rgrunber>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akurtako, andjrobins, java-sig-commits, jerboaa, krzysztof.daniel, mat.booth, msimacek, overholt, rgrunber, swagiaal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-23 13:07:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mikolaj Izdebski 2014-04-22 11:14:18 UTC
Description of problem:
Manifest of org.eclipse.osgi_3.10.0.v20140417-0850.jar contains requirement on osgi.ee=JavaSE/compact1, which breaks Tycho.

Version-Release number of selected component (if applicable):
4.4.0-0.11.git201404150800

Steps to Reproduce:
Try to build a package with tycho.

Actual results:
Exception in thread "main" java.lang.ExceptionInInitializerError
	at org.eclipse.tycho.core.osgitools.OsgiManifest.parseExecutionEnvironments(OsgiManifest.java:63)
	at org.eclipse.tycho.core.osgitools.OsgiManifest.<init>(OsgiManifest.java:52)
	at org.eclipse.tycho.core.osgitools.OsgiManifest.parse(OsgiManifest.java:142)
	at org.eclipse.tycho.core.osgitools.DefaultBundleReader.loadManifestFile(DefaultBundleReader.java:107)
	at org.eclipse.tycho.core.osgitools.DefaultBundleReader.loadManifestFromDirectory(DefaultBundleReader.java:103)
	at org.eclipse.tycho.core.osgitools.DefaultBundleReader.doLoadManifest(DefaultBundleReader.java:60)
	at org.eclipse.tycho.core.osgitools.DefaultBundleReader.loadManifest(DefaultBundleReader.java:51)
	at org.eclipse.tycho.core.osgitools.OsgiBundleProject.readArtifactKey(OsgiBundleProject.java:139)
	at org.eclipse.tycho.core.osgitools.OsgiBundleProject.setupProject(OsgiBundleProject.java:134)
	at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:68)
	at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:115)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.IllegalArgumentException: JavaSE/compact1
	at org.eclipse.tycho.core.ee.EEVersion$EEType.fromName(EEVersion.java:35)
	at org.eclipse.tycho.core.ee.StandardExecutionEnvironment.parseEEVersion(StandardExecutionEnvironment.java:103)
	at org.eclipse.tycho.core.ee.StandardExecutionEnvironment.<init>(StandardExecutionEnvironment.java:79)
	at org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils.fillEnvironmentsMap(ExecutionEnvironmentUtils.java:41)
	at org.eclipse.tycho.core.ee.ExecutionEnvironmentUtils.<clinit>(ExecutionEnvironmentUtils.java:33)
	... 24 more

Comment 1 Alexander Kurtakov 2014-04-22 11:18:57 UTC
This is actually a bug in Tycho that has to support the Java 8 compact profiles.

Comment 2 Roland Grunberg 2014-04-22 15:39:44 UTC
These were added recently to org.eclipse.osgi upstream. I guess we can just add JavaSE/compact{1..3} to EEType. (http://openjdk.java.net/jeps/161). I'll file at upstream Tycho as well.

Comment 3 Roland Grunberg 2014-04-22 18:44:22 UTC
tycho-0.20.0-3.fc21 (http://pkgs.fedoraproject.org/cgit/tycho.git/commit/?id=25d9638d5985458f63f19af17688b1287cd50234) will resolve this issue. I'll wait until Mat is able to rebuild Eclipse to confirm.

Comment 4 Mat Booth 2014-04-22 21:35:52 UTC
Thanks Roland, I've kicked off a build here: http://koji.fedoraproject.org/koji/taskinfo?taskID=6767164

Comment 5 Mikolaj Izdebski 2014-04-22 21:45:32 UTC
I confirm that latest tycho fixed the issue for me.

Comment 6 Roland Grunberg 2014-04-23 13:07:41 UTC
Marking as CLOSED (RAWHIDE). I've referenced this issue at https://bugs.eclipse.org/bugs/show_bug.cgi?id=429442 .