Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » "Unable to acquire application service" on Mac OS X
"Unable to acquire application service" on Mac OS X [message #517230] Fri, 26 February 2010 16:10 Go to next message
Ralf Ebert is currently offline Ralf Ebert
Messages: 72
Registered: July 2009
Member
Hi,

I just ran into a little problem when running Buckminster on Mac OS X,
just thought I should post a note about it in case somebody else runs
into this.

When starting Buckminster it failed with this exception in the log:

!SESSION 2010-02-26 16:59:50.552
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_15
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=carbon, NL=de_DE
Framework arguments: help
Command-line arguments: help

!ENTRY org.eclipse.osgi 4 0 2010-02-26 16:59:52.200
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service.
Ensure that the org.eclipse.core.runtime bundle is resolved and started
(see config.ini).
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
at

org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at

java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


I guess the problem is the combination ARCH=x86_64, WS=carbon which was
guessed automatically, when I explicitly specified these when
installing Buckminster this fixed the problem:

../director -r
http://download.eclipse.org/tools/buckminster/headless-3.5/ -d
/Users/ralf/jobs/re_builds/buckminster35/ -p Buckminster -i
org.eclipse.buckminster.cmdline.product -p2.os macosx -p2.ws cocoa
-p2.arch x86_64 -p2.nl en

Greetings,

Ralf


--
http://www.ralfebert.de/blog/
Re: "Unable to acquire application service" on Mac OS X [message #517243 is a reply to message #517230] Fri, 26 February 2010 16:20 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
Hi Ralf,
Thanks for sharing this info. It should go into the "troubleshooting" section of our docs. I've seen other types of
strange guesses before (motif instead of swt typically).

- thomas

On 02/26/2010 05:10 PM, Ralf Ebert wrote:
> Hi,
>
> I just ran into a little problem when running Buckminster on Mac OS X,
> just thought I should post a note about it in case somebody else runs
> into this.
>
> When starting Buckminster it failed with this exception in the log:
>
> !SESSION 2010-02-26 16:59:50.552
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_15
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86_64, WS=carbon, NL=de_DE
> Framework arguments: help
> Command-line arguments: help
>
> !ENTRY org.eclipse.osgi 4 0 2010-02-26 16:59:52.200
> !MESSAGE Application error
> !STACK 1
> java.lang.IllegalStateException: Unable to acquire application service.
> Ensure that the org.eclipse.core.runtime bundle is resolved and started
> (see config.ini).
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at
> java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>
>
> I guess the problem is the combination ARCH=x86_64, WS=carbon which was
> guessed automatically, when I explicitly specified these when installing
> Buckminster this fixed the problem:
>
> ../director -r
> http://download.eclipse.org/tools/buckminster/headless-3.5/ -d
> /Users/ralf/jobs/re_builds/buckminster35/ -p Buckminster -i
> org.eclipse.buckminster.cmdline.product -p2.os macosx -p2.ws cocoa
> -p2.arch x86_64 -p2.nl en
>
> Greetings,
>
> Ralf
>
>
Re: "Unable to acquire application service" on Mac OS X [message #535846 is a reply to message #517230] Wed, 26 May 2010 01:02 Go to previous messageGo to next message
zhou  is currently offline zhou
Messages: 3
Registered: May 2010
Junior Member
HI,i had this problem too. here is my log.
!SESSION 2010-05-25 13:41:35.043 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_17
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Framework arguments: -keyring /Users/zhoutao/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws carbon -arch x86 -keyring /Users/zhoutao/.eclipse_keyring -showlocation

!ENTRY org.eclipse.osgi 4 0 2010-05-25 13:41:36.180
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

but i didn't know how to fix it , and i didn't understand this
"
../director -r
http://download.eclipse.org/tools/buckminster/headless-3.5/ -d
/Users/ralf/jobs/re_builds/buckminster35/ -p Buckminster -i
org.eclipse.buckminster.cmdline.product -p2.os macosx -p2.ws cocoa
-p2.arch x86_64 -p2.nl en
"
can you tell me how to do this ? thanks.

Email:zt2620zt@qq.com
Re: "Unable to acquire application service" on Mac OS X [message #538024 is a reply to message #535846] Fri, 04 June 2010 14:31 Go to previous messageGo to next message
maarten meijer is currently offline maarten meijer
Messages: 145
Registered: July 2009
Senior Member
QuadBox:director maarten$ ./director -r http://download.eclipse.org/tools/buckminster/headless-3.5/ -p Buckminster -i org.eclipse.buckminster.cmdline.product -d /Library/Java/Development/buckminster/ -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -p2.nl en
Installing org.eclipse.buckminster.cmdline.product 1.1.350.r11146.
Operation completed in 3798 ms.

So far it works

QuadBox:buckminster maarten$ ./buckminster install http://download.eclipse.org/tools/buckminster/headless-3.5/ org.eclipse.buckminster.aggregator.engine.feature -consoleLog
!SESSION 2010-06-04 16:23:14.266 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=carbon, NL=nl_NL
Framework arguments: install http://download.eclipse.org/tools/buckminster/headless-3.5/ org.eclipse.buckminster.aggregator.engine.feature
Command-line arguments: install http://download.eclipse.org/tools/buckminster/headless-3.5/ org.eclipse.buckminster.aggregator.engine.feature -consoleLog

!ENTRY org.eclipse.osgi 4 0 2010-06-04 16:23:15.191
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDe faultApp(EclipseAppContainer.java:236)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run (MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

QuadBox:buckminster maarten$ ./buckminster -application org.eclipse.buckminster.cmdline.product install http://download.eclipse.org/tools/buckminster/headless-3.5/ org.eclipse.buckminster.aggregator.engine.feature -consoleLog
!SESSION 2010-06-04 16:27:11.293 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=carbon, NL=nl_NL
Framework arguments: -application org.eclipse.buckminster.cmdline.product install http://download.eclipse.org/tools/buckminster/headless-3.5/ org.eclipse.buckminster.aggregator.engine.feature
Command-line arguments: -application org.eclipse.buckminster.cmdline.product install http://download.eclipse.org/tools/buckminster/headless-3.5/ org.eclipse.buckminster.aggregator.engine.feature -consoleLog

!ENTRY org.eclipse.osgi 4 0 2010-06-04 16:27:12.324
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.buckminster.cmdline.product" could not be found in the registry. The applications available are: org.eclipse.buckminster.cmdline.headless, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.artifact.repository.mirrorApplication , org.eclipse.equinox.p2.director.app.application, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.metadata.repository.mirrorApplication , org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher , org.eclipse.ant.core.antRunner, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.pde.build.Build, org.eclipse.buckminster.aggregator.
[...]


QuadBox:buckminster maarten$ ./buckminster -application org.eclipse.buckminster.cmdline.headless install http://download.eclipse.org/tools/buckminster/headless-3.5/ org.eclipse.buckminster.aggregator.engine.feature -consoleLog
!SESSION 2010-06-04 16:27:36.687 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=carbon, NL=nl_NL
Framework arguments: -application org.eclipse.buckminster.cmdline.headless install http://download.eclipse.org/tools/buckminster/headless-3.5/ org.eclipse.buckminster.aggregator.engine.feature
Command-line arguments: -application org.eclipse.buckminster.cmdline.headless install http://download.eclipse.org/tools/buckminster/headless-3.5/ org.eclipse.buckminster.aggregator.engine.feature -consoleLog

QuadBox:buckminster maarten$

Somehow the default application is not copied into the executable or some ini file, but I'm to much of a p2/osgi newbie to resolve this.


Re: "Unable to acquire application service" on Mac OS X [message #540557 is a reply to message #517230] Wed, 16 June 2010 14:14 Go to previous messageGo to next message
Scott Anderson is currently offline Scott Anderson
Messages: 2
Registered: July 2009
Junior Member
I'm experiencing this as well using buckminster headless 3.6...

Here is error log


!SESSION 2010-06-16 10:10:09.857 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: import -Dxxx.home=/Volumes/Secure/src/xxx /Volumes/Secure/src/xxx/projects/xxxx.site/site.cquery
Command-line arguments: -data /Volumes/Secure/src/xxx/dist/workspace import -Dxx=/Volumes/Secure/src/xx /Volumes/Secure/src/xx/projects/xxx.site/site.cquery

!ENTRY org.eclipse.osgi 4 0 2010-06-16 10:10:10.622
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Re: "Unable to acquire application service" on Mac OS X [message #545181 is a reply to message #540557] Wed, 07 July 2010 00:31 Go to previous message
Miles Parker is currently offline Miles Parker
Messages: 1340
Registered: July 2009
Senior Member
Scott,

I just tried this and was able to resolve. Make sure that you delete the buckminster directory before attempting to do this. Also, don't make my initial mistake -- the p2 arguments go on the original director call, not the install -- buckminster won't complain about those because it fails with the first issue before it gets there.

Scott Anderson wrote on Wed, 16 June 2010 10:14
I'm experiencing this as well using buckminster headless 3.6...

Here is error log


!SESSION 2010-06-16 10:10:09.857 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: import -Dxxx.home=/Volumes/Secure/src/xxx /Volumes/Secure/src/xxx/projects/xxxx.site/site.cquery
Command-line arguments: -data /Volumes/Secure/src/xxx/dist/workspace import -Dxx=/Volumes/Secure/src/xx /Volumes/Secure/src/xx/projects/xxx.site/site.cquery

!ENTRY org.eclipse.osgi 4 0 2010-06-16 10:10:10.622
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)


Previous Topic:How to best deal with broken Maven2 meta-data
Next Topic:Can't install headless 3.6
Goto Forum:
  


Current Time: Tue Sep 23 14:33:33 GMT 2014

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

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