Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315183 - Exceptions during cquery import
Summary: Exceptions during cquery import
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Buckminster (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: buckminster.core-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 05:38 EDT by Axel Guckelsberger CLA
Modified: 2019-02-25 14:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Guckelsberger CLA 2010-06-01 05:38:19 EDT
Build Identifier: 

The following exceptions occur during my cquery import and prevent successful execution of the build.product action

http://pastebin.com/k3RMHCf3

Looks like the team provider wants to open a ui element.

It happens with subversion and subclipse, does not matter which one is used.

Reproducible: Always
Comment 1 Thomas Hallgren CLA 2010-06-01 06:35:41 EDT
Seems you have UI components installed in a headless environment. I would not recommend that since it adds things like security providers prompting for login/password.

You need a clean headless install using our headless features.
Comment 2 Axel Guckelsberger CLA 2010-06-01 06:39:07 EDT
Here is what I do to install the headless Eclipse:

# install headless buckminster base product with p2 headless director
echo Installing buckminster
director/director -r http://download.eclipse.org/tools/buckminster/headless-3.6 -d buckminster-headless -p Buckminster -i org.eclipse.buckminster.cmdline.product -i org.eclipse.buckminster.core.headless.feature.feature.group -roaming

cd buckminster-headless
# install cvs feature
echo Installing cvs support
./buckminster install http://download.eclipse.org/tools/buckminster/headless-3.6 org.eclipse.buckminster.cvs.headless.feature
# install pde feature
echo Installing pde support
./buckminster install http://download.eclipse.org/tools/buckminster/headless-3.6 org.eclipse.buckminster.pde.headless.feature
# install emma feature
echo Installing test support with junit and emma
./buckminster install http://download.eclipse.org/tools/buckminster/headless-3.6 org.eclipse.buckminster.emma.headless.feature

# install svn feature
echo Installing svn support
#./buckminster install http://download.cloudsmith.com/buckminster/external-3.6 org.eclipse.buckminster.subclipse.headless.feature
./buckminster install http://download.cloudsmith.com/buckminster/external-3.6 org.eclipse.buckminster.subversive.headless.feature

# install required emf features for generating the meta classes out of the meta models and customized aspect templates
echo Installing required emf features
./buckminster install http://download.eclipse.org/releases/helios/ org.eclipse.emf.ecore
./buckminster install http://download.eclipse.org/releases/helios/ org.eclipse.emf.codegen.ecore
./buckminster install http://download.eclipse.org/releases/helios/ org.eclipse.emf.converter

# install required gmf features for generating the diagram editors out of the editor models and customized aspect templates
echo Installing required gmf features
./buckminster install http://download.eclipse.org/modeling/gmf/updates/interim/ org.eclipse.gmf.xpand
./buckminster install http://download.eclipse.org/modeling/gmf/updates/interim/ org.eclipse.gmf.tooling

# add gmf extmodel
echo Adding own gmf extension model
./buckminster install http://example.com/updates_extmodel/ com.example.gmf.extmodel.feature




Any suggestions how I could find the problem?
Comment 3 Thomas Hallgren CLA 2010-06-01 06:43:43 EDT
My guess is that by installing the gmf tooling, you get the whole UI shebang. I don't think that's desirable. Is there any chance you can install just the headless parts needed for the actual generation? IIRC, gmf does provide headless support.
Comment 4 Thomas Hallgren CLA 2010-06-01 06:45:24 EDT
Oh, and b.t.w. The subversive and subclipse features are mutually exclusive. You should never install both.
Comment 5 Axel Guckelsberger CLA 2010-06-01 06:58:06 EDT
(In reply to comment #3)
> My guess is that by installing the gmf tooling, you get the whole UI shebang. I
> don't think that's desirable. Is there any chance you can install just the
> headless parts needed for the actual generation? IIRC, gmf does provide
> headless support.
Have to investigate this, thanks for the pointer!

(In reply to comment #4)
> Oh, and b.t.w. The subversive and subclipse features are mutually exclusive.
> You should never install both.
Yeah I know, thus one line is commented out by a # above :-)
Comment 6 Axel Guckelsberger CLA 2010-06-01 11:59:56 EDT
Seems like there is no "slim feature" available. The gmf.xpand feature does not include the required codegen plugin which is only contained in the tooling feature. Which options do I have? Maybe it is possible to create an own wrapping feature for only the required plugins? But in this case one would have to mirror all the plugins probably...
Comment 7 Axel Guckelsberger CLA 2010-06-01 12:00:35 EDT
Additional info: both the xpand and the tooling plugins make UI contributions (e.g. xpand or graphdef editors).
Comment 8 Thomas Hallgren CLA 2010-06-01 12:09:23 EDT
I think you should bring this up with gmf. Generators and such should really be runnable in a headless environment. If it's just a matter of packaging, perhaps whey are willing to help out.
Comment 9 Axel Guckelsberger CLA 2010-06-01 12:16:24 EDT
Added https://bugs.eclipse.org/bugs/show_bug.cgi?id=315247 :-)
Thanks again!
Comment 10 Axel Guckelsberger CLA 2010-06-07 08:30:13 EDT
As I am not sure about when the gmf bug will be handled I worked around it temporarily by using two different headless Eclipse installations and different jobs in Hudson. One job does only the generation tasks and then archive the whole workspace. The other job gets this archifact (by using the Copy Workspace SCM plugin), extracts it and goes on by using the other Eclipse without any emf or gmf contributions.