[jbosstools-issues] [JBoss JIRA] Commented: (JBDS-1680) refactor org.eclipse.equinox.p2.metadata.generator.EclipseGenerator to org.eclipse.equinox.p2.publisher.EclipseGenerator

Denis Golovin (JIRA) jira-events at lists.jboss.org
Thu Jun 9 19:05:59 EDT 2011


    [ https://issues.jboss.org/browse/JBDS-1680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607671#comment-12607671 ] 

Denis Golovin commented on JBDS-1680:
-------------------------------------

After I got new error for new EclipseGenerator 
{noformat}
root eclipse -rootVersion 3.5.1 -compress -noDefaultIUs -inplace -clean

!ENTRY org.eclipse.osgi 4 0 2011-06-09 13:55:54.150
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
	at java.io.File.<init>(File.java:239)
	at org.eclipse.equinox.internal.p2.publisher.compatibility.GeneratorApplication.parseArguments(GeneratorApplication.java:110)
	at org.eclipse.equinox.internal.p2.publisher.compatibility.GeneratorApplication.run(GeneratorApplication.java:42)
	at org.eclipse.equinox.internal.p2.publisher.compatibility.GeneratorApplication.start(GeneratorApplication.java:34)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	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)
{noformat}

I explained earlier, that results of this EclipseGenerator application are ignored :) It is started just to have eclipse runtime running and initialize thing like OSGi cache and etc. It saves time when eclipse starts next time. I doubt it gives significant performance improvement now, but I don't want to remove it at all without discussing it first, so I just replaced EclipseGenerator with empty application that exit right after it is started. It has the same effect as executing EclipseGenerator, but works faster cause it does nothing :)

Another option remove this feature form installer at all by removing lines below from devstudio-installer/src/config/install-pde.xml

{noformat}
		<listener installer="AntActionInstallerListener" >
			<os family="unix"/>
		</listener>
{noformat}


> refactor org.eclipse.equinox.p2.metadata.generator.EclipseGenerator to org.eclipse.equinox.p2.publisher.EclipseGenerator
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBDS-1680
>                 URL: https://issues.jboss.org/browse/JBDS-1680
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Bug
>          Components: installer
>    Affects Versions: 5.0.0.M2
>            Reporter: Nick Boldt
>            Assignee: Denis Golovin
>            Priority: Blocker
>             Fix For: 5.0.0.M2
>
>
> Hi all,
> I downloald a jbds5 from the url: http://www.qa.jboss.com/binaries/RHDS/builds/staging/devstudio-5.0_trunk.product/builds/nightly/trunk/201106080321/
> It's jbdevstudio-product-eap-linux-gtk-x86_64-5.0.0.v201106080321N-H652-M2.jar
> When I installed it, there was a error as below.
> !SESSION 2011-06-09 10:33:11.137 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_25
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments:  -product com.jboss.jbds.product.product -application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -config /home/gridqian/softinstall/jbds5/studio -metadataRepository file:///tmp -metadataRepositoryName Eclipse -artifactRepository file:///tmp -artifactRepositoryName EclipseArtifacts -publishArtifacts -publishArtifactRepository -root eclipse -rootVersion 3.5.1 -compress -noDefaultIUs -inplace
> Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.jbds.product.product -application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -config /home/gridqian/softinstall/jbds5/studio -metadataRepository file:///tmp -metadataRepositoryName Eclipse -artifactRepository file:///tmp -artifactRepositoryName EclipseArtifacts -publishArtifacts -publishArtifactRepository -root eclipse -rootVersion 3.5.1 -compress -noDefaultIUs -inplace -clean
> !ENTRY org.eclipse.osgi 4 0 2011-06-09 10:33:59.364
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: Application "org.eclipse.equinox.p2.metadata.generator.EclipseGenerator" could not be found in the registry. The applications available are: com.jboss.jbds.product.application, org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.datatools.connectivity.console.profile.StorageFileEditor, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.emf.importer.ecore.Ecore2GenModel, org.eclipse.emf.importer.java.Java2GenModel, org.eclipse.emf.importer.rose.Rose2GenModel, 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.pde.build.Build, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.wst.jsdt.core.JavaCodeFormatter, org.eclipse.wst.server.preview.preview.
>     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(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list