Jump to: navigation, search

OCL/Dev/Releng/Issues Documentation


This wiki entry has been created in order to document specific releng-related issues, final diagnosis, and how they were solved.

No component named ... is known to Buckminster

Date: 01/02/2012.

Problem: Juno M5 S-build failed due to the following error:

INFO: perform '--properties' '/opt/users/hudsonbuild/workspace/buckminster-mdt-ocl-tools-3.2-master/buildroot/build.properties' '-Dbuckminster.reference.repository=https://hudson.eclipse.org/hudson/job/buckminster-mdt-ocl-tools-3.2-master/lastSuccessfulBuild/artifact/MDT-OCL.p2.repository/' 'org.eclipse.ocl.releng.tools.build:eclipse.feature#build'
No component named org.eclipse.ocl.doc.source:eclipse.feature/[3.1.0.v20111215-0955,3.1.0.v20111215-0955] is known to Buckminster

This only occurred with OCL Tools S-build. Nightly and Integration builds worked. OCL Core S-Build succed as well.


For S-builds, we are using our own miletones repository to feed our Tools components with the Core ones.

During this milestone development, doc (and other features) were "restructured", so that they were previously built as OCL Core components, and they are currently built as OCL Tools components. So, In a Tools build, they are supposed to be materialized into the workspace. However, after deeply analyzing the job's console and workspace, I've realized that these features are being materialized into the target platform.

My current rmap is configured so that every OCL feature/plugin from a provided repository (tipically, a repository with Core componentes), is installed in the target platform, and the remaining are supposed to be materialized into the workspace from our GIT repository.

For Nightly and Integration builds, the repository from our Core job is used so just the expected Core components are installed into the target platform, hence, the doc plugin and feature is materialized into the workspace, and no problem with sources features.

For Stable builds, our milestones repository is used. However, it's a composed repository which also composes repositories from previous releases. Unfortunately, this means that non-Core plugins and featres (for example, doc ones) are available (from a repository of a previous milestone) and so installed into the target platform. Obviously this is incorrect and provokesthat they can't be materialized into the workspace and therefore no source feature is generated for them.


To solve this, I think that I'll definitelly specify in the tools.rmap a locator whose pattern binds to the specific set of features/plugins which are expected for Core components. So the change is the following:


<rm:locator pattern="^org\.eclipse\.ocl.*$" searchPathRef="ocl-core" failOnError="false"/>


<rm:locator pattern="^org\.eclipse\.ocl(\.(ecore|uml|all|core\.sdk))?(\.source)?$" searchPathRef="ocl-core"/>

Commit bfed05ba761eeaf6e090b6e0e86e096509c0545c

No suitable provider for component com.google.collect... was found in resourceMap file

Date: 06/02/2012

Problem: Tests job fails due to an unresolved com.google.collect bundle

ERROR [0087] : No suitable provider for component com.google.collect:osgi.bundle/1.0.0 was found in resourceMap file:/opt/users/hudsonbuild/workspace/buckminster-mdt-ocl-branch-tests/org.eclipse.ocl.git/releng/org.eclipse.ocl.releng.buckminster/releng/ocl-tools.rmap
ERROR [0087] : No suitable provider for component com.google.collect:osgi.bundle/1.0.0 was found in searchPath xtext
ERROR [0087] : Rejecting provider p2({0}/modeling/tmf/updates/nightly[file:/home/data/httpd/download.eclipse.org/modeling/tmf/updates/nightly]): No component match was found


Every com.google.* bundle is being resolved against the Xtext repository, which is redistributing such a bundles. Since Xtext is not using such a bundle (guava is used instead), they are not distributing it anymore. However, due to an acceleo dependency, our build requires com.google.collect bundle. This bundle is distributed in the Orbit repository.


Narrowing which com.google* bundles are fetched from Xtext. In this case every bundle distributed by Xtext which is not present into the Orbit repository:


<rm:locator pattern="^com\.google.*" searchPathRef="xtext"/>


<rm:locator pattern="^com\.google.(inject|guava)$" searchPathRef="xtext"/>

N.B: Another interesting question is why Xtext is distributing such a third party bundle and it's not in the Orbit repository. I believe that we should fetch these bundles from Orbit repository.

Commit 3d2aec2dc6fb7c0840fbe3d45428254e79e1f72d

No available bundle exports package 'org.apache.log4j'

Date: 23/10/2014

Problem: Tests job fails due to an unresolved org.apache.log4j bundle

Error: file /jobs/genie.modeling.mdt.ocl/buckminster-ocl-branch-tests/workspace/org.eclipse.ocl.git/examples/org.eclipse.ocl.examples.codegen.asm3/src/org/eclipse/ocl/examples/codegen/asm3/ASM3JavaAnnotationReader.java, line 21: The import org.apache cannot be resolved
Error: file /jobs/genie.modeling.mdt.ocl/buckminster-ocl-branch-tests/workspace/org.eclipse.ocl.git/examples/org.eclipse.ocl.examples.codegen.asm3/src/org/eclipse/ocl/examples/codegen/asm3/ASM3JavaAnnotationReader.java, line 38: Logger cannot be resolved to a type
Error: file /jobs/genie.modeling.mdt.ocl/buckminster-ocl-branch-tests/workspace/org.eclipse.ocl.git/examples/org.eclipse.ocl.examples.codegen.asm3/src/org/eclipse/ocl/examples/codegen/asm3/ASM3JavaAnnotationReader.java, line 38: Logger cannot be resolved
Error: file /jobs/genie.modeling.mdt.ocl/buckminster-ocl-branch-tests/workspace/org.eclipse.ocl.git/examples/org.eclipse.ocl.examples.codegen.asm3/src/org/eclipse/ocl/examples/codegen/asm3/ASM3JavaAnnotationReader.java, line 200: Logger cannot be resolved to a type
Error: file /jobs/genie.modeling.mdt.ocl/buckminster-ocl-branch-tests/workspace/org.eclipse.ocl.git/examples/org.eclipse.ocl.examples.codegen.asm3/META-INF/MANIFEST.MF, line 11: No available bundle exports package 'org.apache.log4j'


For the most part org.apache.log4j and other utility imports are imported as packages rather than required as bundles, avoiding any need to know which bundle provides them.

As a consequence of rearranging features, the examples.xtext.tests plugin that did have a require bundle was removed leading to the above error.


The buckminster.cspex may have explicit bundle dependencies avoiding the need for artificial plugin declarations.


<cs:dependency name="org.apache.log4j" componentType="osgi.bundle" />

ensures that Buckminster loads the bundle.

commit b4f4a4c01397bec6e345f8032b81061e8caa8e1a

which also uses Orbit directly now that everything is in Orbit.

Attempt to use an unresolved node.

Date: 01/02/2012.

Problem: Tests job failed due to the following error:

ERROR: Attempt to use an unresolved node. Request is org.eclipse.ocl.uml:osgi.bundle/[4.0.0,5.0.0)

org.eclipse.buckminster.core.metadata.model.UnresolvedNodeException: Attempt to use an unresolved node. Request is org.eclipse.ocl.uml:osgi.bundle/[4.0.0,5.0.0)


When solving the problem in comment 1, I naively assumed that when specifying a concrete set of CORE components to be fetched in a Tools build, if the component is not found in the ocl-core search path, such a build must fail. I completely forgot the tests build which also uses the ocl-tools cquery and rmap files. The "resolve.ocl.core" property guides the build to resolve, otherwise not resolve, the OCL Core components from our p2 repositories. Therefore, when solving Core components in such a Search Path, the failOnError must be false, so that the tests build may later fetch OCL Core components from our GIT repository and materialize them into the job's workspace.


Reinstate the failOnError = false property into the ocl-tools.rmap:

<rm:locator pattern="^org\.eclipse\.ocl(\.(ecore|uml|all|core\.sdk))?(\.source)?$" searchPathRef="ocl-core" failOnError="false"/>

Commit 3d2aec2dc6fb7c0840fbe3d45428254e79e1f72d

Packaging site

Date: 14/04/2012

Problem: Tests build failed due to an error [1] during the OCL SDK packaging. This error had previously appeared (Bug 363208 comment 2) and it's related to the process of packaging the zips, recently solved in that bug.

Diagnosis: The main inconvenience with the issue is that the Job's console doesn't provide any useful information about the problem. This can me investigated in local by adjusting the ANT logger level set by buckminster : Windows -> Preferences -> Buckminster -> Ant logger level = DEBUG. However in local the SDK zip packaging worked well so I can't reproduce the failed process in debug mode.

I've found a link[2] which shows how to change the ANT logger level for buckminster headless. Unfortunately, buckminster application commands are configured in hudson, vi its web UI (by the means of hudson-buckminster plugin) and there was not way to configure that in hudson web UI.

I moved the question to cross project [3] with no responses so far.


[ant] Packaging site: mdt-ocl-Update
INFO: [end org.eclipse.ocl.releng.tools.build:eclipse.feature$1.0.0.qualifier#package.mdt-ocl-Update]
INFO: [start org.eclipse.ocl.releng.tools.build:eclipse.feature$1.0.0.qualifier#site.tp]
INFO: [end org.eclipse.ocl.releng.tools.build:eclipse.feature$1.0.0.qualifier#site.tp]
INFO: [start org.eclipse.ocl.releng.tools.build:eclipse.feature$1.0.0.qualifier#package.mdt-ocl-SDK]
ERROR: org.eclipse.core.runtime.CoreException: <https://hudson.eclipse.org/hudson/job/buckminster-mdt-ocl-branch-tests/ws/org.eclipse.ocl.git/releng/org.eclipse.ocl.releng.tools.build-feature/packaging.ant>:208: Java returned: 13
org.eclipse.core.runtime.CoreException: <https://hudson.eclipse.org/hudson/job/buckminster-mdt-ocl-branch-tests/ws/org.eclipse.ocl.git/releng/org.eclipse.ocl.releng.tools.build-feature/packaging.ant>:208: Java returned: 13
at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:167)
at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:322)
at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:254)
at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:195)
at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:143)
at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:454)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:293)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:305)
at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:108)
at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:91)
at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:200)

[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=294440

[3] http://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg07517.html

Solution: Not resolved yet.

The application could not start. Details can be found in the log.

This may occur when starting JUnit tests on Hudson.

See also [1].

In this situation you may found some log information in the workspace metada. In this case, you should look for a log file in the following location:


One occasion the problem may have been caused by temporarily changing a launch configuration to use explicitly nominated plugins and then reverting. It may be that the obsolete but retained selections in the config cause trouble. This was cure by precisely reverting to the original launch configuration.

Export has failed because no test session is available

INFO:  junit '--launch' 'org.eclipse.ocl.examples.xtext.tests/.settings/org.eclipse.ocl.examples.xtext.tests (plugin).launch'
'--flatXML' '--maxTimeAwaitJunitReport' '60' '--output' '/home/hudson
java.lang.IllegalArgumentException: Export has failed because no test session is available. (Maybe the argument -maxTimeAwaitJunitReport will help)

Originally happened Bug 371327 and suggestion was that a com.google.collect dependency might help. The problem was side-stepped by eliminating Acceleo from the builds by using dierect OCL to Java code generation.

Problem has reoccurred with the introduction of an org.eclipse.pde.core dependency.

Bug 251740 comment 40 also suggests that lack of precision on org.apache.commons deopendencies may leave Buckminster undecided about how to proceed.

-maxTimeAwaitJunitReport does not seem to help.

The above hang is diagnosable by looking in the Hudson workspace at .../ws/buildroot/junit-workspace/.metadata/.log where

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.equinox.p2.publisher.eclipse [121]
  Unresolved requirement: Import-Package: org.eclipse.equinox.internal.frameworkadmin.equinox

had been present and ignored for some time. Addition of the new dependency caused the problem to occur in an important plugin and so caused the JUnit Eclipse launch to fail.

See Bug 432393

Invalid signature file digest for Manifest main attributes

Date: 23/10/2014.

Problem: Build terminates abruptly after signing completes

[ant] Waiting for signing to complete. This may take more then 60 minutes
[ant] Obtaining signed file from staging area
INFO:  [end org.eclipse.ocl.releng.build:eclipse.feature$1.3.0.qualifier#site.signed]
INFO:  [start org.eclipse.ocl.releng.build:eclipse.feature$1.3.0.qualifier#site.packed]
java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
Caused by: Terminating xvnc.
Archiving artifacts

There appears to be no clue as to which Manifest might be in error.


This only occurs for signed builds, so takes a long time to reach the problem. It arose once test features were added to the P2 repo.

Presumably something coming back from the signing process is unhappy. Googling suggests that extra already signed files in META-INF can be bad.

One early problem was a MANIFEST.MF that had a "Bundle-ManifestVersion: 2" line but no "Manifest-Version: 1.0" line.

Later on the problem seemed to be a lazy practice of using tests features to import required bundles. No problem until the true packaging purpose was used. Then unwanted plugins such as "org.eclipse.test" try to get packaged and (hypothesis) since "org.eclipse.test" is not packed it fails to copy across to the repo adequately and the signer/subsequent checker barfs.


Only include plugins/features to be packaged within features.

Use the Buckminster *.cspex file to define dependencies for plugins/features to be loaded but not packaged.