[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] IllegalAccessError
- From: Costin Leau <costin.leau@xxxxxxxxx>
- Date: Tue, 12 Sep 2006 09:08:39 +0300
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=f5YCwv4NvYBftjgYuoRVQY5Z+h34oVedgVnxBQ3dvUAf38ysNVDDk7pSpHDaJ/MbAE6RpgnJSNdTn0Ptkkx53lco0fpto9ePEtGpI2IP/OYvxhzIOZRlneHgI/oKKwEmSwXdJoczBP+4IzkAPXftM6ge2m5CC7Birsuo1lpwvto=
- User-agent: Thunderbird 22.214.171.124 (Windows/20060719)
Niclas Hedhman wrote:
> On Monday 11 September 2006 23:43, Costin Leau wrote:
>> I'm working on a OSGi-Junit integration (as part of Spring-OSGi
>> initiative) and I've run into a strange issue when I deploy my bundles -
>> I get an IllegalAccessError. I've tried the code on both KF 2.0.0 and
>> Equinox 3.1.2 and 3.2.0 and all of them throw the same exception which
>> makes me believe that this is a generic OSGi issue.
>> Below is the stacktrace:
>> java.lang.IllegalAccessError: tried to access method
>> junit.framework.TestCase.<init>()V from class
> This should indicate that TestCase doesn't have a public default
> IIRC, way/way/way back in time, didn't Junit have a
> public TestCase( String name )
> constructor only??
> So, are you sure you are using junit 3.8 ? Perhaps junit sits hiding in some
> other bundle, so print out the package resolution map and check.
Niclas you are completely right! - a junit I was using was 3.7; probably
while doing development I replaced the 3.8.1 jar with this one.
Thanks for the suggestion and pointing me to the right direction (I was
chasing OSGi ghosts :) ).
> equinox-dev mailing list