ervandew/eclim — Issue #98: Application "org.eclim.installer.application" could not be found in the registry
Author: dclaude
Created: 2011-11-02 10:04:38+00:00
State: open

Hi

I got the following error while trying to install eclim behind a firewall at work.
The same installation worked fine at home (same linux/ubuntu, same eclipse verisons).

1) the error is:
~/tmp$ java -Dhttp.proxyHost=proxy -Dhttp.proxyPort=3128 -jar ~/Downloads/vim/eclim_1.7.2.jar
Buildfile: installer.xml
2011-11-02 10:42:16,211 INFO [org.formic.Installer] Running Installer.
2011-11-02 10:42:28,686 INFO [org.formic.util.CommandExecutor] which gvim
2011-11-02 10:42:28,699 INFO [org.eclim.installer.step.VimStep] which gvim: /usr/bin/gvim
2011-11-02 10:42:28,707 INFO [org.formic.util.CommandExecutor] vim -f -X -u NONE -U NONE --cmd redir! > /tmp/eclim_installer8048955312596435529.tmp | silent! echo &rtp | quit
2011-11-02 10:42:31,650 INFO [org.formic.util.CommandExecutor] vim --version
2011-11-02 10:42:40,659 INFO [org.formic.util.CommandExecutor] java -Xmx256M -Dhttp.proxyPort=3128 -Dhttp.proxyHost=proxy -jar /opt/eclipse/3.7/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -clean -application org.eclipse.equinox.p2.director -repository file:///tmp/formic_414384515/update -installIU org.eclim.installer.feature.group
2011-11-02 10:42:47,495 INFO [org.formic.util.CommandExecutor] java -Xmx256M -Dhttp.proxyPort=3128 -Dhttp.proxyHost=proxy -jar /opt/eclipse/3.7/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -clean -application org.eclim.installer.application -list
2011-11-02 10:42:52,454 INFO [org.eclim.installer.step.EclipsePluginsStep] An error has occurred. See the log file
2011-11-02 10:42:52,454 INFO [org.eclim.installer.step.EclipsePluginsStep] /opt/eclipse/3.7/configuration/1320226967773.log.
java.lang.RuntimeException: error: out: An error has occurred. See the log file
/opt/eclipse/3.7/configuration/1320226967773.log.
at org.eclim.installer.step.EclipsePluginsStep$EclipseInfo.(EclipsePluginsStep.java:659)
at org.eclim.installer.step.EclipsePluginsStep$1.run(EclipsePluginsStep.java:217)
at foxtrot.AbstractWorkerThread$1.run(AbstractWorkerThread.java:40)
at java.security.AccessController.doPrivileged(Native Method)
at foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:36)
at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:199)
at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:182)
at java.lang.Thread.run(Thread.java:662)
Installer Context (Please include in bug reports):
eclipse.home=/opt/eclipse/3.7
eclipse.local=/opt/eclipse/3.7
featureList.ant=true
featureList.cdt=true
featureList.dltk=false
featureList.dltkruby=false
featureList.jdt=true
featureList.maven=true
featureList.pdt=false
featureList.python=true
featureList.wst=false
vim.files=/home/dclaude/.vim
vim.skip=false
2011-11-02 10:42:59,535 INFO [org.formic.Installer] Installer Finished.
2011-11-02 10:42:59,536 DEBUG [ANT]
BUILD SUCCESSFUL
Total time: 43 seconds
2011-11-02 10:42:59,541 WARN [ANT] [echo] Installation canceled.
2011-11-02 10:42:59,572 WARN [ANT] [echo] Please wait while the eclim installer feature is removed from eclipse...
2011-11-02 10:42:59,578 INFO [org.formic.util.CommandExecutor] java -Xmx256M -Dhttp.proxyPort=3128 -Dhttp.proxyHost=proxy -jar /opt/eclipse/3.7/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -clean -application org.eclipse.equinox.p2.director -repository file:///tmp/formic_414384515/update -uninstallIU org.eclim.installer.feature.group

2) the log file content is:
~/tmp$ cat /opt/eclipse/3.7/configuration/1320226967773.log
!SESSION 2011-11-02 10:42:47.595 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application org.eclim.installer.application -list
Command-line arguments: -clean -application org.eclim.installer.application -list

!ENTRY org.eclipse.osgi 4 0 2011-11-02 10:42:51.359
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclim.installer.application" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.cdt.codan.core.application, org.eclipse.cdt.core.GeneratePDOM, org.eclipse.cdt.managedbuilder.core.headlessbuild, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.linuxtools.systemtap.ui.systemtapgui.application, org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
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(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

3) then I tried an "automated install without launching the installer gui":

~/tmp$ java -Declipse.home=/opt/eclipse/3.7 -Declipse.local=/opt/eclipse/3.7 -DfeatureList.ant=true -DfeatureList.cdt=true -DfeatureList.dltk=false -DfeatureList.dltkruby=false -DfeatureList.jdt=true -DfeatureList.maven=true -DfeatureList.pdt=false -DfeatureList.python=true -DfeatureList.wst=false -Dvim.files=/home/dclaude/.vim -Dvim.skip=false -jar ~/Downloads/vim/eclim_1.7.2.jar install
Buildfile: installer.xml
2011-11-02 10:46:46,445 INFO [ANT] [eclim:shutdown] Unable to shut down eclimd (9091): java.lang.NullPointerException - null
2011-11-02 10:46:46,585 INFO [ANT] [touch] Creating /tmp/formic_562160910/install.excludes
2011-11-02 10:46:46,589 INFO [ANT] [eclim:installexcludes] including features: [maven, jdt, cdt, ant, python]
2011-11-02 10:46:46,641 INFO [ANT] [formic:unzip] Expanding: /tmp/eclipse-plugins2096880631481104757.zip into /opt/eclipse/3.7/plugins
2011-11-02 10:46:47,338 INFO [ANT] [exec] rm: cannot remove `/opt/eclipse/3.7/eclim': No such file or directory
2011-11-02 10:46:47,739 ERROR [ANT] [exec] Result: 1
2011-11-02 10:46:47,741 INFO [ANT] [exec] rm: cannot remove `/opt/eclipse/3.7/eclimd': No such file or directory
2011-11-02 10:46:48,141 ERROR [ANT] [exec] Result: 1
2011-11-02 10:46:49,148 INFO [ANT] [exec] checking for gcc... gcc
2011-11-02 10:46:49,549 INFO [ANT] [exec] checking for C compiler default output file name... a.out
2011-11-02 10:46:49,549 INFO [ANT] [exec] checking whether the C compiler works... yes
2011-11-02 10:46:49,549 INFO [ANT] [exec] checking whether we are cross compiling... no
2011-11-02 10:46:49,549 INFO [ANT] [exec] checking for suffix of executables...
2011-11-02 10:46:49,649 INFO [ANT] [exec] checking for suffix of object files... o
2011-11-02 10:46:49,649 INFO [ANT] [exec] checking whether we are using the GNU C compiler... yes
2011-11-02 10:46:49,650 INFO [ANT] [exec] checking whether gcc accepts -g... yes
2011-11-02 10:46:49,750 INFO [ANT] [exec] checking for gcc option to accept ISO C89... none needed
2011-11-02 10:46:49,850 INFO [ANT] [exec] checking for gcc option to accept ISO C99... -std=gnu99
2011-11-02 10:46:49,850 INFO [ANT] [exec] checking for gethostbyname in -lnsl... yes
2011-11-02 10:46:49,850 INFO [ANT] [exec] checking for send in -lsocket... no
2011-11-02 10:46:49,950 INFO [ANT] [exec] checking for WriteFile in -lwsock32... no
2011-11-02 10:46:49,951 INFO [ANT] [exec] checking how to run the C preprocessor... gcc -std=gnu99 -E
2011-11-02 10:46:49,951 INFO [ANT] [exec] checking for grep that handles long lines and -e... /bin/grep
2011-11-02 10:46:49,951 INFO [ANT] [exec] checking for egrep... /bin/grep -E
2011-11-02 10:46:50,051 INFO [ANT] [exec] checking for ANSI C header files... yes
2011-11-02 10:46:50,151 INFO [ANT] [exec] checking for sys/types.h... yes
2011-11-02 10:46:50,151 INFO [ANT] [exec] checking for sys/stat.h... yes
2011-11-02 10:46:50,151 INFO [ANT] [exec] checking for stdlib.h... yes
2011-11-02 10:46:50,251 INFO [ANT] [exec] checking for string.h... yes
2011-11-02 10:46:50,252 INFO [ANT] [exec] checking for memory.h... yes
2011-11-02 10:46:50,252 INFO [ANT] [exec] checking for strings.h... yes
2011-11-02 10:46:50,352 INFO [ANT] [exec] checking for inttypes.h... yes
2011-11-02 10:46:50,352 INFO [ANT] [exec] checking for stdint.h... yes
2011-11-02 10:46:50,452 INFO [ANT] [exec] checking for unistd.h... yes
2011-11-02 10:46:50,452 INFO [ANT] [exec] checking arpa/inet.h usability... yes
2011-11-02 10:46:50,452 INFO [ANT] [exec] checking arpa/inet.h presence... yes
2011-11-02 10:46:50,452 INFO [ANT] [exec] checking for arpa/inet.h... yes
2011-11-02 10:46:50,553 INFO [ANT] [exec] checking netdb.h usability... yes
2011-11-02 10:46:50,553 INFO [ANT] [exec] checking netdb.h presence... yes
2011-11-02 10:46:50,553 INFO [ANT] [exec] checking for netdb.h... yes
2011-11-02 10:46:50,553 INFO [ANT] [exec] checking netinet/in.h usability... yes
2011-11-02 10:46:50,553 INFO [ANT] [exec] checking netinet/in.h presence... yes
2011-11-02 10:46:50,553 INFO [ANT] [exec] checking for netinet/in.h... yes
2011-11-02 10:46:50,553 INFO [ANT] [exec] checking for stdlib.h... (cached) yes
2011-11-02 10:46:50,553 INFO [ANT] [exec] checking for string.h... (cached) yes
2011-11-02 10:46:50,653 INFO [ANT] [exec] checking sys/socket.h usability... yes
2011-11-02 10:46:50,653 INFO [ANT] [exec] checking sys/socket.h presence... yes
2011-11-02 10:46:50,653 INFO [ANT] [exec] checking for sys/socket.h... yes
2011-11-02 10:46:50,653 INFO [ANT] [exec] checking for unistd.h... (cached) yes
2011-11-02 10:46:50,653 INFO [ANT] [exec] checking sys/select.h usability... yes
2011-11-02 10:46:50,754 INFO [ANT] [exec] checking sys/select.h presence... yes
2011-11-02 10:46:50,754 INFO [ANT] [exec] checking for sys/select.h... yes
2011-11-02 10:46:50,754 INFO [ANT] [exec] checking for sys/socket.h... (cached) yes
2011-11-02 10:46:50,754 INFO [ANT] [exec] checking types of arguments for select... int,fd_set *,struct timeval *
2011-11-02 10:46:50,754 INFO [ANT] [exec] checking for getcwd... yes
2011-11-02 10:46:50,854 INFO [ANT] [exec] checking for gethostbyname... yes
2011-11-02 10:46:50,854 INFO [ANT] [exec] checking for memset... yes
2011-11-02 10:46:50,954 INFO [ANT] [exec] checking for select... yes
2011-11-02 10:46:50,954 INFO [ANT] [exec] checking for socket... yes
2011-11-02 10:46:50,954 INFO [ANT] [exec] checking for strcasecmp... yes
2011-11-02 10:46:51,055 INFO [ANT] [exec] checking for strrchr... yes
2011-11-02 10:46:51,055 INFO [ANT] [exec] configure: creating ./config.status
2011-11-02 10:46:51,155 INFO [ANT] [exec] config.status: creating Makefile
2011-11-02 10:46:51,614 INFO [ANT] [exec] Building ng client. To build a Windows binary, type 'make ng.exe'
2011-11-02 10:46:51,614 INFO [ANT] [exec] gcc -std=gnu99 -g -O2 -lnsl -s -O3 -o ng src/c/ng.c
2011-11-02 10:46:52,121 INFO [ANT] [move] Moving 1 file to /opt/eclipse/3.7/plugins/org.eclim_1.7.2/bin
2011-11-02 10:46:52,124 INFO [ANT] [formic:unzip] Expanding: /tmp/resources1316841311623620632.zip into /home/dclaude/.eclim
2011-11-02 10:46:52,129 INFO [ANT] [formic:unzip] Expanding: /tmp/vim-plugins3045513924543282625.zip into /home/dclaude/.vim
2011-11-02 10:46:52,238 ERROR [ANT] [move] Warning: /home/dclaude/.vim/eclim/resources does not exist.
2011-11-02 10:46:52,257 DEBUG [ANT]
BUILD SUCCESSFUL
Total time: 5 seconds

4) The "automated install without launching the installer gui" worked fine and I am now able to use eclim.
It would be great if you coud fix this gui installer problem.

Anyway thanks for eclim it is a great tool !
Damien