Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Unable to run JUnit tests on Eclipse Juno : IllegalStateException: Unable to acquire application ser(Problem / Bug while running unitary tests)
Unable to run JUnit tests on Eclipse Juno : IllegalStateException: Unable to acquire application ser [message #904336] Tue, 28 August 2012 09:10 Go to next message
Thomas Ricatte is currently offline Thomas RicatteFriend
Messages: 3
Registered: September 2011
Location: Paris
Junior Member
Hello,

I have a strange problem while running JUnit4 tests on Juno in an OSGi environment (JUnit Plugin Run - the tests are stored in an osgi fragment in the usual way).

When I try to launch the "JUnit Plugin Run", I get the following error :

!ENTRY org.eclipse.osgi 2 0 2012-08-22 13:53:24.058
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2012-08-22 13:53:24.059
!MESSAGE Bundle reference:file:/C:/.../plugins/org.eclipse.pde.junit.runtime_3.4.200.v20120530-1435.jar was not resolved.
!SUBENTRY 2 org.eclipse.pde.junit.runtime 2 0 2012-08-22 13:53:24.059
!MESSAGE Missing required bundle org.eclipse.core.runtime_[3.3.0,4.0.0).

...

java.lang.IllegalStateException: Unable to acquire application service. Ensure that the    org.eclipse.core.runtime bundle is resolved and started (see config.ini).
...


When I check the config.ini file, I can notice that "org.eclipse.core.runtime" is not explicitely present in the osgi.bundles (maybe via some reference ?).

This problem is quite similar to this old one : https://bugs.eclipse.org/bugs/show_bug.cgi?id=107972 but there was no explicit answer in the discussion (was it a bug or not ?).

For your information, I am using the exact same bundle configuration (and the same start order) when I run my application in my dev environment. I tried several modifications but the problem seems definitely to come from the eclipse runtime (or maybe am I missing something obvious ?).

Thanks a lot for your help. This is a highly blocking problem for me.
Re: Unable to run JUnit tests on Eclipse Juno : IllegalStateException: Unable to acquire application [message #905151 is a reply to message #904336] Wed, 29 August 2012 19:52 Go to previous message
Heiner Westphal is currently offline Heiner WestphalFriend
Messages: 18
Registered: July 2009
Junior Member
Hello Thomas,

this group is about the TPTP testing framework, which does not include
the Eclipse Junit testing framework, so you may have better results
posting your question to http://www.eclipse.org/forums/index.php/f/11/
instead.

Good luck!

Heiner


Am 28.08.2012 11:10, schrieb Thomas Ricatte:
> Hello,
>
> I have a strange problem while running JUnit4 tests on Juno in an OSGi
> environment (JUnit Plugin Run - the tests are stored in an osgi fragment
> in the usual way).
>
> When I try to launch the "JUnit Plugin Run", I get the following error :
>
>
> !ENTRY org.eclipse.osgi 2 0 2012-08-22 13:53:24.058
> !MESSAGE One or more bundles are not resolved because the following root
> constraints are not resolved:
> !SUBENTRY 1 org.eclipse.osgi 2 0 2012-08-22 13:53:24.059
> !MESSAGE Bundle
> reference:file:/C:/.../plugins/org.eclipse.pde.junit.runtime_3.4.200.v20120530-1435.jar
> was not resolved.
> !SUBENTRY 2 org.eclipse.pde.junit.runtime 2 0 2012-08-22 13:53:24.059
> !MESSAGE Missing required bundle org.eclipse.core.runtime_[3.3.0,4.0.0).
>
> ..
>
> java.lang.IllegalStateException: Unable to acquire application service.
> Ensure that the org.eclipse.core.runtime bundle is resolved and
> started (see config.ini).
> ..
>
> When I check the config.ini file, I can notice that
> "org.eclipse.core.runtime" is not explicitely present in the
> osgi.bundles (maybe via some reference ?).
>
> This problem is quite similar to this old one :
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107972 but there was no
> explicit answer in the discussion (was it a bug or not ?).
>
> For your information, I am using the exact same bundle configuration
> (and the same start order) when I run my application in my dev
> environment. I tried several modifications but the problem seems
> definitely to come from the eclipse runtime (or maybe am I missing
> something obvious ?).
>
> Thanks a lot for your help. This is a highly blocking problem for me.
Previous Topic:TPTP Java web app On remote JBoss
Next Topic:string index error when launching app within TPTP profiler
Goto Forum:
  


Current Time: Mon Dec 22 10:09:44 GMT 2014

Powered by FUDForum. Page generated in 0.02666 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software