[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [p2-dev] Re: [pde-dev] error running P2 metadata generation | 
Nick:
I tried to run the P2 Generation for an external eclipse.  Here is whet I get:
        [echo] generating meta data for f:\build\openArbor\temp\eclipse.build\result\tmp\eclipse
        [java] Executing 'C:\Program Files\Java\jre6\bin\java.exe' with arguments:
        [java] '-jar'
        [java] 'f:\eclipses_openarbor\eclipse_34_openArbor\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar'
        [java] '-data'
        [java] 'f:\build\openArbor\temp\eclipse.build\result\workspace-generate'
        [java] '-consoleLog'
        [java] '-application'
        [java] 'org.eclipse.equinox.p2.metadata.generator.EclipseGenerator'
        [java] '-nosplash'
        [java] '--launcher.suppressErrors'
        [java] '-config'
        [java] 'f:\build\openArbor\temp\eclipse.build\result\tmp\eclipse'
        [java] '-metadataRepository'
        [java] 'file:/f:/build/openArbor/temp/repo/'
        [java] '-metadatarepositoryname'
        [java] 'OpenArbor Meta Repo'
        [java] '-artifactRepository'
        [java] 'file:/f:/build/openArbor/temp/repo/'
        [java] '-artifactrepositoryname'
        [java] 'OpenArbor Artifact Repo'
        [java] '-publishartifacts'
        [java] '-publishartifactrepository'
        [java] '-root'
        [java] 'com.ddci.openarbor.application.product'
        [java] '-rootversion'
        [java] '3.4.2.v200907141627'
        [java] '-noDefaultIUs'
        [java] '-vmargs'
        [java] '-Xmx256m'
        [java]
        [java] The ' characters around the executable and arguments are
        [java] not part of the command.
        [java] java.io.FileNotFoundException: 
F:\eclipses_openarbor\eclipse_34_openArbor\configuration\f:\build\openArbor\temp\eclipse.build\result\tmp\eclipse\p2\org.eclipse.equinox.p2.core\cache\artifacts.xml 
(The filename, directory name, or volume label syntax is incorrect)
        [java] 	at java.io.FileOutputStream.open(Native Method)
        [java] 	at java.io.FileOutputStream.<init>(Unknown Source)
        [java] 	at java.io.FileOutputStream.<init>(Unknown Source)
        [java] 	at 
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:852)
        [java] 	at 
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:833)
        [java] 	at 
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.<init>(SimpleArtifactRepository.java:299)
        [java] 	at 
org.eclipse.equinox.internal.provisional.spi.p2.artifact.repository.SimpleArtifactRepositoryFactory.create(SimpleArtifactRepositoryFactory.java:110)
        [java] 	at 
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(ArtifactRepositoryManager.java:222)
        [java] 	at 
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.restoreDownloadCache(ArtifactRepositoryManager.java:595)
        [java] 	at 
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.restoreRepositories(ArtifactRepositoryManager.java:656)
        [java] 	at 
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.getRepository(ArtifactRepositoryManager.java:338)
        [java] 	at 
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(ArtifactRepositoryManager.java:395)
        [java] 	at 
org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(ArtifactRepositoryManager.java:209)
        [java] 	at 
org.eclipse.equinox.internal.p2.metadata.generator.EclipseGeneratorApplication.initializeArtifactRepository(EclipseGeneratorApplication.java:122)
        [java] 	at 
org.eclipse.equinox.internal.p2.metadata.generator.EclipseGeneratorApplication.initializeRepositories(EclipseGeneratorApplication.java:210)
        [java] 	at 
org.eclipse.equinox.internal.p2.metadata.generator.EclipseGeneratorApplication.initialize(EclipseGeneratorApplication.java:101)
        [java] 	at 
org.eclipse.equinox.internal.p2.metadata.generator.EclipseGeneratorApplication.run(EclipseGeneratorApplication.java:350)
        [java] 	at 
org.eclipse.equinox.internal.p2.metadata.generator.EclipseGeneratorApplication.run(EclipseGeneratorApplication.java:339)
        [java] 	at 
org.eclipse.equinox.internal.p2.metadata.generator.EclipseGeneratorApplication.start(EclipseGeneratorApplication.java:393)
        [java] 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        [java] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        [java] 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        [java] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        [java] 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        [java] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        [java] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        [java] 	at java.lang.reflect.Method.invoke(Unknown Source)
        [java] 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        [java] 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        [java] 	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
        [java] 	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
        [java] Generating metadata for f:\build\openArbor\temp\eclipse.build\result\tmp\eclipse.
        [java] Generation completed with success [0 seconds].
Why would it be giving me this strange error?
[java] java.io.FileNotFoundException: 
F:\eclipses_openarbor\eclipse_34_openArbor\configuration\f:\build\openArbor\temp\eclipse.build\result\tmp\eclipse\p2\org.eclipse.equinox.p2.core\cache\artifacts.xml
Ian Bull wrote:
Can you try
p2.gathering = true
(instead of generate.metadata = true).  This should use the publisher 
(the new tool for generating metadata).
cheers,
ian
On Mon, Jul 13, 2009 at 7:07 PM, Nick Boldt <nickboldt@xxxxxxxxx 
<mailto:nickboldt@xxxxxxxxx>> wrote:
    Some guesses:
    * ${buildDirectory} is not defined
    * ${buildDirectory} contains spaces
    * ${buildDirectory} contains the wrong slashes
    * repo.name <http://repo.name> properties need to be wrapped with quotes
    You could try running the generator by hand and pass in all the
    required parameters. Here's the syntax I used the last time I had to
    regen metadata for an update site:
    cd /tmp/jbtm2nupdate/3.1.0.M2; rm -fr artifacts.jar content.jar; \
    /home/nboldt/eclipse/eclipse/eclipse -vm /opt/jdk1.5.0/bin/java \
    -workspace /tmp/workspace -application \
    org.eclipse.equinox.p2.metadata.generator.EclipseGenerator \
     -updateSite /tmp/jbtm2nupdate/3.1.0.M2/ \
     -source /tmp/jbtm2nupdate/3.1.0.M2/ \
     -site file:/tmp/jbtm2nupdate/3.1.0.M2/site.xml \
     -features /tmp/jbtm2nupdate/3.1.0.M2/features/ \
     -bundles /tmp/jbtm2nupdate/3.1.0.M2/bundles/ \
     -metadataRepository file:/tmp/jbtm2nupdate/3.1.0.M2/ \
     -artifactRepository file:/tmp/jbtm2nupdate/3.1.0.M2/ \
     -metadataRepositoryName "JBoss Tools Update Site" \
     -artifactRepositoryName "JBoss Tools Artifacts" \
     -noDefaultIUs -compress -reusePack200Files; \
    rm -fr /tmp/workspace:
    Copying to p2-dev@xxxxxxxxxxx <mailto:p2-dev@xxxxxxxxxxx> in case
    they have a better idea than I.
    N
    Mark Russell wrote:
        I'm trying to build the P@ metadata with the PDE build.  When I
        run it I get a null pointer exception.  Here is the trace:
        generate.p2.metadata:
        [p2.generator] Generating metadata for
        f:\build\openArbor\temp\eclipse.build\tmp\openarbor.
        [p2.generator] Generation completed with success [28 seconds].
        customAssembly:
                [zip] Updating zip:
        f:\build\openArbor\temp\eclipse.build\I.200907131324\200907131324-win32.win32.x86.zip
             [delete] Deleting directory
        f:\build\openArbor\temp\eclipse.build\tmp
        generate.p2.metadata:
        [p2.generator] Generating metadata for null.
        BUILD FAILED
        F:\ws\ddci\com.ddci.openarbor.application\build-product.xml:91:
        The following error occurred while executing this line:
        F:\ws\ddci\openarbor.pde.build\build-pde.xml:71: The following
        error occurred while executing this line:
        C:\eclipses\eclipse_342\plugins\org.eclipse.pde.build_3.4.1.R34x_v20081217\scripts\productBuild\productBuild.xml:31:
        The following error occurred while executing this line:
        C:\eclipses\eclipse_342\plugins\org.eclipse.pde.build_3.4.1.R34x_v20081217\scripts\build.xml:102:
        The following error occurred while executing this line:
        F:\ws\ddci\openarbor.pde.build\customTargets.xml:10: The
        following error occurred while executing this line:
        C:\eclipses\eclipse_342\plugins\org.eclipse.pde.build_3.4.1.R34x_v20081217\scripts\productBuild\allElements.xml:10:
        The following error occurred while executing this line:
        C:\eclipses\eclipse_342\plugins\org.eclipse.pde.build_3.4.1.R34x_v20081217\scripts\genericTargets.xml:165:
        The following error occurred while executing this line:
        f:\build\openArbor\temp\eclipse.build\package.org.eclipse.pde.build.container.feature.all.xml:24:
        The following error occurred while executing this line:
        f:\build\openArbor\temp\eclipse.build\package.org.eclipse.pde.build.container.feature.all.xml:31:
        An error occurred when calling generator.
        Total time: 4 minutes 17 seconds
        here is my product.properties file p2 segment:
        generate.p2.metadata=true
        p2.metadata.repo = file:${buildDirectory}/repo
        p2.artifact.repo = file:${buildDirectory}/repo
        p2.metadata.repo.name <http://p2.metadata.repo.name> = OpenArbor
        Meta Repo
        p2.artifact.repo.name <http://p2.artifact.repo.name> = OpenArbor
        Artifact Repo
        p2.flavor = tooling
        p2.publish.artifacts=true
        can anyone shed some light on why I'm getting the NPE?
    -- 
    Nick Boldt :: http://nick.divbyzero.com
    Release Engineer :: Eclipse Modeling & Dash Athena
    _______________________________________________
    p2-dev mailing list
    p2-dev@xxxxxxxxxxx <mailto:p2-dev@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/p2-dev
--
R. Ian Bull | EclipseSource Victoria | +1 250 477 7484
http://eclipsesource.com | http://twitter.com/eclipsesource
------------------------------------------------------------------------
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev
--
Mark Russell
Build Master
Instantiations, Inc.
+1 724-368-3331 (land line)
http://www.instantiations.com