Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho 0.22.0 staged

It looks like this is occurring when the tests are run - are these tests launched from within Tycho? Is it possible to get a list of installed bundles when the tests runs - perhaps Tycho is inserting the commons-logging 1.1 as well as the commons-logigng 1.0.4 and there’s a form of ClassCastException occurring under the covers.

Alex

On 26 Nov 2014, at 16:41, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:

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

On Tue, Nov 25, 2014 at 2:55 PM, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:
No, you did not got my point. My product build is using several target activated by profiles indigo being the default. So when I first checked yesterday I used the default (indigo) and switch tycho to 0.22.0.
This morning I checked changing both target and tycho.
Anyway I setup a jenkins buid testing against all targets which is known to be ok with 0.21.0 and change tycho to be 0.22.0. We'll see

Jeff

On Tue, Nov 25, 2014 at 11:54 AM, Sievers, Jan <jan.sievers@xxxxxxx> wrote:
sounds like you were changing both tycho version and target platform at the same time.

To test for Tycho regressions, use a working build as baseline and only change the Tycho version to 0.22.0.

Regards,
Jan


From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Jeff MAURY
Sent: Dienstag, 25. November 2014 11:29
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.22.0 staged

News about my problem with Tycho 0.22.0. I ran my build with an Eclipse 4.3 based target platform and this was ok (at least for the class loading issue).
The previous attempt was using an Eclipse 3.7 based target platform.
As my product is build against Eclipse 3.6 to Eclipse 4.5, I will check all configurations and let you know.

Jeff

On Tue, Nov 25, 2014 at 8:37 AM, Keppler Michael (ETAS/ESW4) <Michael.Keppler@xxxxxxxx> wrote:
Worked fine for 2 internal products in our company. Didn't test any of the new features, however.

Thanks, Michael

-----Ursprüngliche Nachricht-----
Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Sievers, Jan
Gesendet: Montag, 24. November 2014 09:16
An: Tycho user list (tycho-user@xxxxxxxxxxx)
Cc: Tycho developers list (tycho-dev@xxxxxxxxxxx)
Betreff: [tycho-user] Tycho 0.22.0 staged

Tycho milestone release 0.22.0 has been staged.

For details of new features and bugfixes, see release notes [1].
Please help by testing the staged milestone build. To use it, change your tycho version to 0.22.0 and add snippet [2] to your pom.

We plan to promote this release in one week unless major regressions are found.

Regards,
Tycho team

[1] http://wiki.eclipse.org/Tycho/Release_Notes/0.22
[2]
<pluginRepositories>
 <pluginRepository>
  <id>tycho-staged</id>
  <url>https://oss.sonatype.org/content/repositories/orgeclipsetycho-1020</url>
 </pluginRepository>
</pluginRepositories>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury



-- 
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top