Ok, let's clarify on this issue.
My product is build against Helios (3.6), Indigo (3.7), Eclipse 3.8, Juno (4.2), Kepler (4.3), Luna (4.4) and Mars.
On a daily basic,my product is build by Jenkins using a matrix project against all these targets and against JDK 6, 7, and 8 leading to a total of 7 X 3 = 21 builds.
With Tycho 0.21.0, all builds are ok.
With staged Tycho 0.22.0, it appears that all pre-Kepler based targets now fails and let me clarify the reason:
One of my bundle is using Apache Http Components (mimimum 3.1.0) which has a dependency on commons logging.
The error is thrown when my bundle code, activated through a test, loads Http Components code, which acquire a logger. The stack trace is the following:
java.lang.ExceptionInInitializerError: null
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
at java.lang.Class.getConstructor0(Class.java:2723)
at java.lang.Class.getConstructor(Class.java:1676)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.apache.commons.httpclient.SimpleHttpConnectionManager.<clinit>(SimpleHttpConnectionManager.java:55)
at com.syspertec.virtel.ide.project.internal.VirtelServerHelper.<clinit>(VirtelServerHelper.java:97)
at com.syspertec.virtel.ide.project.UploadTest.testTextFileUpload(UploadTest.java:34)
The error seems to be related to the version of commons logging as pre-Kepler targets use commons logging 1.0.4 where post Kepler use 1.1
I don't understand why the error appears with Tycho 0.22.0
I will be out of office for 2 days but I will try to establish a sample project beginning of next week but I'm not sure the problem will appear the same way with the simpler sample project.
Regards
Jeff