Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse SmartHome » Compilation failure
Compilation failure [message #1798600] Tue, 20 November 2018 21:06 Go to next message
Jon Evans is currently offline Jon EvansFriend
Messages: 3
Registered: July 2009
Junior Member
I am unable to compile the latest eclipse/smarthome. It worked last week. :)

I have tried git clean -x -d -f, I've re-run "Perform Setup Tasks..." in Eclipse, I've even nuked my local ~/.m2/repository, but the build always fails.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:39 min
[INFO] Finished at: 2018-11-20T18:14:55Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.2.0:compile (default-compile) on project org.eclipse.smarthome.ui: Compilation failure: Compilation failure: 
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[280] 
[ERROR] 	List<Mapping> mappings = playerItemSwitch.getMappings();
[ERROR] 	                                          ^^^^^^^^^^^
[ERROR] The method getMappings() from the type Switch refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[350] 
[ERROR] 	logger.error("Cannot retrieve item for widget {}", w.eClass().getInstanceTypeName());
[ERROR] 	                                                     ^^^^^^
[ERROR] The method eClass() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[544] 
[ERROR] 	String widgetTypeName = w.eClass().getInstanceTypeName()
[ERROR] 	                          ^^^^^^
[ERROR] The method eClass() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[545] 
[ERROR] 	.substring(w.eClass().getInstanceTypeName().lastIndexOf(".") + 1);
[ERROR] 	             ^^^^^^
[ERROR] The method eClass() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[575] 
[ERROR] 	new Object[] { itemName, w.eClass().getInstanceTypeName() });
[ERROR] 	                           ^^^^^^
[ERROR] The method eClass() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[609] 
[ERROR] 	if (sw.getMappings().size() == 0) {
[ERROR] 	       ^^^^^^^^^^^
[ERROR] The method getMappings() from the type Switch refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[636] 
[ERROR] 	if (widgetID < sitemap.getChildren().size()) {
[ERROR] 	                       ^^^^^^^^^^^
[ERROR] The method getChildren() from the type Sitemap refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[637] 
[ERROR] 	w = sitemap.getChildren().get(widgetID);
[ERROR] 	            ^^^^^^^^^^^
[ERROR] The method getChildren() from the type Sitemap refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[640] 
[ERROR] 	if (childWidgetID < ((LinkableWidget) w).getChildren().size()) {
[ERROR] 	                                         ^^^^^^^^^^^
[ERROR] The method getChildren() from the type LinkableWidget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[641] 
[ERROR] 	w = ((LinkableWidget) w).getChildren().get(childWidgetID);
[ERROR] 	                         ^^^^^^^^^^^
[ERROR] The method getChildren() from the type LinkableWidget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[657] 
[ERROR] 	EList<Widget> widgets = sitemap.getChildren();
[ERROR] 	                                ^^^^^^^^^^^
[ERROR] The method getChildren() from the type Sitemap refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[672] 
[ERROR] 	if (w instanceof Group && w.getChildren().isEmpty()) {
[ERROR] 	                            ^^^^^^^^^^^
[ERROR] The method getChildren() from the type LinkableWidget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[675] 
[ERROR] 	widgets = w.getChildren();
[ERROR] 	            ^^^^^^^^^^^
[ERROR] The method getChildren() from the type LinkableWidget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[691] 
[ERROR] 	return (w2 == null) ? w.eContainer() : w2.eContainer();
[ERROR] 	                        ^^^^^^^^^^
[ERROR] The method eContainer() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[691] 
[ERROR] 	return (w2 == null) ? w.eContainer() : w2.eContainer();
[ERROR] 	                                          ^^^^^^^^^^
[ERROR] The method eContainer() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[718] 
[ERROR] 	target.getVisibility().addAll(EcoreUtil.copyAll(source.getVisibility()));
[ERROR] 	       ^^^^^^^^^^^^^
[ERROR] The method getVisibility() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[718] 
[ERROR] 	target.getVisibility().addAll(EcoreUtil.copyAll(source.getVisibility()));
[ERROR] 	                                                       ^^^^^^^^^^^^^
[ERROR] The method getVisibility() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[719] 
[ERROR] 	target.getLabelColor().addAll(EcoreUtil.copyAll(source.getLabelColor()));
[ERROR] 	       ^^^^^^^^^^^^^
[ERROR] The method getLabelColor() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[719] 
[ERROR] 	target.getLabelColor().addAll(EcoreUtil.copyAll(source.getLabelColor()));
[ERROR] 	                                                       ^^^^^^^^^^^^^
[ERROR] The method getLabelColor() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[720] 
[ERROR] 	target.getValueColor().addAll(EcoreUtil.copyAll(source.getValueColor()));
[ERROR] 	       ^^^^^^^^^^^^^
[ERROR] The method getValueColor() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[720] 
[ERROR] 	target.getValueColor().addAll(EcoreUtil.copyAll(source.getValueColor()));
[ERROR] 	                                                       ^^^^^^^^^^^^^
[ERROR] The method getValueColor() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[865] 
[ERROR] 	while (w.eContainer() instanceof Widget) {
[ERROR] 	         ^^^^^^^^^^
[ERROR] The method eContainer() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[866] 
[ERROR] 	Widget parent = (Widget) w.eContainer();
[ERROR] 	                           ^^^^^^^^^^
[ERROR] The method eContainer() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[867] 
[ERROR] 	String index = String.valueOf(((LinkableWidget) parent).getChildren().indexOf(w));
[ERROR] 	                                                        ^^^^^^^^^^^
[ERROR] The method getChildren() from the type LinkableWidget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[874] 
[ERROR] 	if (w.eContainer() instanceof Sitemap) {
[ERROR] 	      ^^^^^^^^^^
[ERROR] The method eContainer() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[875] 
[ERROR] 	Sitemap sitemap = (Sitemap) w.eContainer();
[ERROR] 	                              ^^^^^^^^^^
[ERROR] The method eContainer() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[876] 
[ERROR] 	String index = String.valueOf(sitemap.getChildren().indexOf(w));
[ERROR] 	                                      ^^^^^^^^^^^
[ERROR] The method getChildren() from the type Sitemap refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[885] 
[ERROR] 	if (w.eContainer() == null) {
[ERROR] 	      ^^^^^^^^^^
[ERROR] The method eContainer() is undefined for the type Widget
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[1111] 
[ERROR] 	return processColorDefinition(getState(w), w.getLabelColor());
[ERROR] 	                                             ^^^^^^^^^^^^^
[ERROR] The method getLabelColor() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[1116] 
[ERROR] 	return processColorDefinition(getState(w), w.getValueColor());
[ERROR] 	                                             ^^^^^^^^^^^^^
[ERROR] The method getValueColor() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[1122] 
[ERROR] 	List<VisibilityRule> ruleList = w.getVisibility();
[ERROR] 	                                  ^^^^^^^^^^^^^
[ERROR] The method getVisibility() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[1132] 
[ERROR] 	for (VisibilityRule rule : w.getVisibility()) {
[ERROR] 	                             ^^^^^^^^^^^^^
[ERROR] The method getVisibility() from the type Widget refers to the missing type EList
[ERROR] /Users/evansj/src/home_automation/smarthome-master/git/smarthome/bundles/ui/org.eclipse.smarthome.ui/src/main/java/org/eclipse/smarthome/ui/internal/items/ItemUIRegistryImpl.java:[1148] 
[ERROR] 	w.eClass().getInstanceTypeName());
[ERROR] 	  ^^^^^^
[ERROR] The method eClass() is undefined for the type Widget
[ERROR] 33 problems (33 errors)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.eclipse.smarthome.ui
Re: Compilation failure [message #1798755 is a reply to message #1798600] Fri, 23 November 2018 15:44 Go to previous message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 673
Registered: December 2011
Senior Member
I'd imagine that this is due to the Java version being used. Which one is it? Can you try with Java 8, if it is anything more recent?
Previous Topic:ESH + Authorisation + OPTIONS method
Next Topic:SSE(Server Sent Events) not working through domain name URL
Goto Forum:
  


Current Time: Tue Feb 18 04:06:56 GMT 2020

Powered by FUDForum. Page generated in 0.03662 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top