[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.equinox] Re: java.lang.IllegalStateException when using p2 director to install

Hello,

I tracked down same problem recently. See bug 285743
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=285743) for patch.

What happens is that P2 fails to correctly setup osgi.install.area,
because it doesn't strip 'plugins' part from the path. I saw this happen
when eclipse.ini file in target directory didn't have '-startup' option
in it.

Take a look into your eclipse.ini file if it contains -startup option
like this:

> -startup
> plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar

--
Peter Stibrany
Foglyn -- FogBugz in Eclipse
www.foglyn.com

Tas Frangoullides wrote:
> Hi,
> 
> I'm trying to use p2 director to automate the creation of a test
> environment for executing tests during a build. The product I am testing
> is an RCP product and this appears to install OK, but when I try to
> install the feature containing the tests I get the following errors. It
> seems the persistent location and configuration location are expected to
> be the same but are not. I don't understand what is causing this and how
> I can fix it. I've included my ant script at the bottom too.
> 
> Many Thanks,
> Tas
> 
> 
> java.lang.IllegalStateException:
> !fwConfigLocation.equals(fwPersistentDataLocation)
> !fwConfigLocation=D:\build\MialosMailApp\output\com.mialos.tutorial.mailapp.releng.builder_1.0.0-eclipse.feature\testEnv\configuration
> ,fwPersistentDataLocation=D:\build\MialosMailApp\output\com.mialos.tutorial.mailapp.releng.builder_1.0.0-eclipse.feature\testEnv\plugins\configuration