Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Widgetset Compilation Failed.
Hey everyone, I am having real hard time trying to get a widget set compiled.
I can not get my ant script to properly build. Also, I have eclipse, but I have not been able to find a way to get old vaadin project imported into eclipse.
Lastly, I noticed that even outside a vaadin project, I still have a compile widget set button. If I select a widgetset, it attempts to compile. but fails with:
Widgetset compilation failed
java.lang.NullPointerException
at com.vaadin.integration.eclipse.handlers.CompileWidgetsetHandler$1.run(CompileWidgetsetHandler.java:98)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Anyone have any ideas?
I'm trying to build vaadin-colorpicker-1.1.0.jar.
Thanks!
-Rob
I diagnosed the problem a bit further.
I was able to use project properties / project facets to make my application a web dynamic project. That enabled widget set compilation.
I now get this error. Any Ideas?
Compiling widgetset com.vaadin.ColorPickerWidgetSet
Updating GWT module description file...
Apr 18, 2012 4:56:28 PM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Widgetsets found from classpath:
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/
org.vaadin.easyuploads.EasyuploadsWidgetset in jar:file:C:/Repos/Generator/trunk/Allurent-html5/web/WEB-INF/lib/easyuploads-0.4.9.jar!/
org.vaadin.codemirror2.CodeMirror2Widgetset in jar:file:C:/Repos/Generator/trunk/Allurent-html5/web/WEB-INF/lib/codemirror2.jar!/
com.vaadin.ColorPickerWidgetSet in file://C/Repos/Generator/trunk/Allurent-html5/web/WEB-INF/src
com.vaadin.addon.colorpicker.gwt.ColorPickerWidgetSet in jar:file:C:/Repos/Generator/trunk/Allurent-html5/web/WEB-INF/lib/vaadin-colorpicker-1.1.0.jar!/
Apr 18, 2012 4:56:31 PM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Search took 167ms
Done.
Starting GWT compiler
Compiling module com.vaadin.ColorPickerWidgetSet
Validating newly compiled units
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/Util.java'
[ERROR] Line 35: The import com.google.gwt.dom.client.Touch cannot be resolved
[ERROR] Line 1163: The method getChangedTouches() is undefined for the type Event
[ERROR] Line 1179: The method getChangedTouches() is undefined for the type Event
[ERROR] Line 1215: Touch cannot be resolved to a type
[ERROR] Line 1215: The method getChangedTouches() is undefined for the type Event
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/TouchScrollDelegate.java'
[ERROR] Line 26: The import com.google.gwt.dom.client.Touch cannot be resolved
[ERROR] Line 27: The import com.google.gwt.event.dom.client.TouchStartEvent cannot be resolved
[ERROR] Line 129: TouchStartEvent cannot be resolved to a type
[ERROR] Line 132: Touch cannot be resolved to a type
[ERROR] Line 234: Touch cannot be resolved to a type
[ERROR] Line 309: Touch cannot be resolved to a type
[ERROR] Line 309: The method getChangedTouches() is undefined for the type NativeEvent
[ERROR] Line 465: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Line 473: Event.ONTOUCHEND cannot be resolved
[ERROR] Line 474: Event.ONTOUCHCANCEL cannot be resolved
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VAudio.java'
[ERROR] Line 19: The import com.google.gwt.dom.client.AudioElement cannot be resolved
[ERROR] Line 30: AudioElement cannot be resolved to a type
[ERROR] Line 33: AudioElement cannot be resolved to a type
[ERROR] Line 33: The method createAudioElement() is undefined for the type Document
[ERROR] Line 34: AudioElement cannot be resolved to a type
[ERROR] Line 44: AudioElement cannot be resolved to a type
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VDragAndDropWrapper.java'
[ERROR] Line 30: The import com.google.gwt.event.dom.client.TouchStartEvent cannot be resolved
[ERROR] Line 31: The import com.google.gwt.event.dom.client.TouchStartHandler cannot be resolved
[ERROR] Line 87: TouchStartHandler cannot be resolved to a type
[ERROR] Line 96: TouchStartEvent cannot be resolved
[ERROR] Line 97: Event.TOUCHEVENTS cannot be resolved
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VMediaBase.java'
[ERROR] Line 20: The import com.google.gwt.dom.client.MediaElement cannot be resolved
[ERROR] Line 40: MediaElement cannot be resolved to a type
[ERROR] Line 48: MediaElement cannot be resolved to a type
[ERROR] Line 50: MediaElement cannot be resolved to a type
[ERROR] Line 60: MediaElement cannot be resolved to a type
[ERROR] Line 61: MediaElement cannot be resolved to a type
[ERROR] Line 62: MediaElement cannot be resolved to a type
[ERROR] Line 71: MediaElement cannot be resolved to a type
[ERROR] Line 121: MediaElement cannot be resolved to a type
[ERROR] Line 130: MediaElement cannot be resolved to a type
[ERROR] Line 136: MediaElement cannot be resolved to a type
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VMenuBar.java'
[ERROR] Line 793: The method setOverflowY(Style.Overflow) is undefined for the type Style
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VPanel.java'
[ERROR] Line 24: The import com.google.gwt.event.dom.client.TouchStartEvent cannot be resolved
[ERROR] Line 25: The import com.google.gwt.event.dom.client.TouchStartHandler cannot be resolved
[ERROR] Line 132: Event.TOUCHEVENTS cannot be resolved
[ERROR] Line 135: TouchStartHandler cannot be resolved to a type
[ERROR] Line 139: TouchStartEvent cannot be resolved
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VScrollTable.java'
[ERROR] Line 42: The import com.google.gwt.dom.client.Touch cannot be resolved
[ERROR] Line 58: The import com.google.gwt.event.dom.client.TouchStartEvent cannot be resolved
[ERROR] Line 59: The import com.google.gwt.event.dom.client.TouchStartHandler cannot be resolved
[ERROR] Line 460: Event.TOUCHEVENTS cannot be resolved
[ERROR] Line 461: TouchStartHandler cannot be resolved to a type
[ERROR] Line 465: TouchStartEvent cannot be resolved
[ERROR] Line 2285: Event.TOUCHEVENTS cannot be resolved
[ERROR] Line 2384: Event.ONTOUCHEND cannot be resolved
[ERROR] Line 2398: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 2458: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 2461: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 2477: Event.ONTOUCHEND cannot be resolved
[ERROR] Line 2478: Event.ONTOUCHCANCEL cannot be resolved
[ERROR] Line 2539: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Line 2542: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Line 4466: Event.TOUCHEVENTS cannot be resolved
[ERROR] Line 4999: Event.ONTOUCHEND cannot be resolved
[ERROR] Line 5000: Event.ONTOUCHCANCEL cannot be resolved
[ERROR] Line 5013: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Line 5037: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 5039: Touch cannot be resolved to a type
[ERROR] Line 5039: The method getChangedTouches() is undefined for the type Event
[ERROR] Line 5139: Touch cannot be resolved to a type
[ERROR] Line 5139: The method getChangedTouches() is undefined for the type Event
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VSlider.java'
[ERROR] Line 124: Event.TOUCHEVENTS cannot be resolved
[ERROR] Line 395: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 410: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Line 418: Event.ONTOUCHEND cannot be resolved
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VSplitPanel.java'
[ERROR] Line 25: The import com.google.gwt.event.dom.client.TouchCancelEvent cannot be resolved
[ERROR] Line 26: The import com.google.gwt.event.dom.client.TouchCancelHandler cannot be resolved
[ERROR] Line 27: The import com.google.gwt.event.dom.client.TouchEndEvent cannot be resolved
[ERROR] Line 28: The import com.google.gwt.event.dom.client.TouchEndHandler cannot be resolved
[ERROR] Line 29: The import com.google.gwt.event.dom.client.TouchMoveEvent cannot be resolved
[ERROR] Line 30: The import com.google.gwt.event.dom.client.TouchMoveHandler cannot be resolved
[ERROR] Line 31: The import com.google.gwt.event.dom.client.TouchStartEvent cannot be resolved
[ERROR] Line 32: The import com.google.gwt.event.dom.client.TouchStartHandler cannot be resolved
[ERROR] Line 190: TouchCancelHandler cannot be resolved to a type
[ERROR] Line 195: TouchCancelEvent cannot be resolved
[ERROR] Line 196: TouchStartHandler cannot be resolved to a type
[ERROR] Line 206: TouchStartEvent cannot be resolved
[ERROR] Line 207: TouchMoveHandler cannot be resolved to a type
[ERROR] Line 213: TouchMoveEvent cannot be resolved
[ERROR] Line 214: TouchEndHandler cannot be resolved to a type
[ERROR] Line 220: TouchEndEvent cannot be resolved
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java'
[ERROR] Line 21: The import com.google.gwt.event.dom.client.TouchStartEvent cannot be resolved
[ERROR] Line 22: The import com.google.gwt.event.dom.client.TouchStartHandler cannot be resolved
[ERROR] Line 49: Event.TOUCHEVENTS cannot be resolved
[ERROR] Line 50: TouchStartHandler cannot be resolved to a type
[ERROR] Line 65: TouchStartEvent cannot be resolved
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VTree.java'
[ERROR] Line 613: Event.TOUCHEVENTS cannot be resolved
[ERROR] Line 830: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 834: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 857: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VVideo.java'
[ERROR] Line 21: The import com.google.gwt.dom.client.VideoElement cannot be resolved
[ERROR] Line 32: VideoElement cannot be resolved to a type
[ERROR] Line 35: VideoElement cannot be resolved to a type
[ERROR] Line 35: The method createVideoElement() is undefined for the type Document
[ERROR] Line 36: VideoElement cannot be resolved to a type
[ERROR] Line 53: VideoElement cannot be resolved to a type
[ERROR] Line 80: VideoElement cannot be resolved to a type
[ERROR] Line 81: VideoElement cannot be resolved to a type
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/VWindow.java'
[ERROR] Line 292: Event.TOUCHEVENTS cannot be resolved
[ERROR] Line 927: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 944: Event.ONTOUCHEND cannot be resolved
[ERROR] Line 946: Event.ONTOUCHCANCEL cannot be resolved
[ERROR] Line 956: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Line 1141: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 1142: The method getTouches() is undefined for the type Event
[ERROR] Line 1152: Event.ONTOUCHEND cannot be resolved
[ERROR] Line 1153: Event.ONTOUCHCANCEL cannot be resolved
[ERROR] Line 1158: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Errors in 'jar:file:/C:/Repos/Generator/trunk/Project/web/WEB-INF/lib/vaadin-6.7.1.jar!/com/vaadin/terminal/gwt/client/ui/dd/VDragAndDropManager.java'
[ERROR] Line 116: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Line 210: Event.ONTOUCHMOVE cannot be resolved
[ERROR] Line 218: Event.ONTOUCHEND cannot be resolved
[ERROR] Line 357: Event.ONTOUCHSTART cannot be resolved
[ERROR] Line 401: Event.ONTOUCHMOVE cannot be resolved
Finding entry point classes
[ERROR] Unable to find type 'com.vaadin.terminal.gwt.client.ApplicationConfiguration'
[ERROR] Hint: Previous compiler errors may have made this type unavailable
[ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
Widgetset compilation failed
robert piskule: I'm going to try re-downloading the GWT SDK.
Indeed, this sounds like the wrong version (or two different versions) of a JAR (GWT or another related library) being on the compilation classpath.