8/21/2014

Using Mylyn for Rally in Eclipse Luna

Mylyn has a rally connector making us possible to use the nice editor instead of the web-interface. After installing the appropriate Rally connector, unfortunately it does not work. The error log tells us
java.lang.NullPointerException
 at com.rallydev.mylyn.internal.core.RallyClient.stripQualifier(RallyClient.java:1720)
 at com.rallydev.mylyn.internal.core.RallyClient.updateHttpHeaders(RallyClient.java:1714)
 at com.rallydev.mylyn.internal.core.RallyClient.internalGet(RallyClient.java:1447)
 at com.rallydev.mylyn.internal.core.RallyClient.parseResult(RallyClient.java:1389)
 at com.rallydev.mylyn.internal.core.RallyClient.getSubscription(RallyClient.java:1327)
 at com.rallydev.mylyn.internal.core.RallyClient.updateRepositoryData(RallyClient.java:1369)
 at com.rallydev.mylyn.internal.core.RallyRepositoryConnector.updateRepositoryConfiguration(RallyRepositoryConnector.java:119)
 at com.rallydev.mylyn.internal.core.RallyRepositoryConnector.updateRepositoryConfiguration(RallyRepositoryConnector.java:136)
 at org.eclipse.mylyn.internal.tasks.core.sync.UpdateRepositoryConfigurationJob.run(UpdateRepositoryConfigurationJob.java:46)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

A bit of googling leads us to https://rallydev.force.com/answers?id=90614000000ChHdAAK telling us we need to hack eclipse.ini by adding -Dosgi.framework.version=5.0.0 (obvious, isn't it?) Just in case I also specified 1.6 with "-vm /usr/people/bedomanl/tools/jdk1.6.0_45/bin/java". Here's the resulting eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
/usr/people/bedomanl/tools/jdk1.6.0_45/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Dosgi.framework.version=5.0.0
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m