VisulizationForVaadin, widgetset compilation error

Hi,

I’m new to vaadin framework. The problem coming when trying to integrate Visulization for vaadin plugin in my project.

I’m getting following error when compiling widgetset.

  1. When clicked on ‘Compile Vaadin Widgetset’ button got the following error.

         [color=#FA3532]
    

Error in compiling widgetset: java.lang.NullPointerException- null
See error logs for details.
(Screenshot : screen1)
[/color]

      a) Why its not working, how can I find the error logs.
  1. Automatic project publishing to tomcat displayed a dialog with below message.
    “Your client side code in the project myapp might need a recompilation.Compile widgetset now?”
    (Screenshot : screen2)

When I click on ‘yes’ button compilation failed with following error(check the complete error at the bottom):


[WARN]
Line 35: Referencing field ‘java.lang.Object.castableTypeMap’: unable to resolve field, expect subsequent failures
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/ApplicationConnection.java’
[ERROR]
Line 31: The import com.google.gwt.core.client.Scheduler cannot be resolved
[ERROR]
Line 45: The import com.google.gwt.user.client.ui.Focusable cannot be resolved
[ERROR]
Line 523: The method create() is undefined for the type SynchronousXHR
[ERROR]
Line 653: Scheduler cannot be resolved

I have also created a sample project with the help of vaadin plugin, in that project visualization plugin is working fine. Don’t know why not working with my maven project.

I added following dependencies to enable VisulizationForVaadin add-ons in my project.

[color=#FA3532]

pom.xml

com.vaadin
vaadin
6.5.2

             <dependency>
		<groupId>org.vaadin.addons</groupId>
		<artifactId>visualizationsforvaadin</artifactId>
		<version>1.1.2</version>
	</dependency>
	<dependency>
		<groupId>com.google.gwt.google-apis</groupId>
		<artifactId>gwt-visualization</artifactId>
		<version>1.0.2</version>
	</dependency>

[/color]

My Eclipse : Eclipse for Java EE IDE for Web Developer( Helios Service Release 1)

Eclipse Plugins Installed:-
Maven Plugin : Maven 2.0 integration
Vaadin Plugin : Vaadin Eclipse Integration 1.3.1.201012171040

Error message on the console:-
[color=#FA3532]

Executing compiler with parameters [C:\Program Files\Java\jre6\bin\java.exe, -Djava.awt.headless=true, -Xss8M, -Xmx512M, -XX:MaxPermSize=512M, -classpath, C:\Program Files\Java\jdk1.6.0_24\jre\lib\rt.jar;C:/Users/admin/new-workspace/…/webclient/src/main/java;C:/Users/admin/new-workspace…/webclient/src/main/resources;C:/Users/admin/new-workspace…/webclient/src/test/java;C:/Users/admin/new-workspace…/webclient/src/test/resources;C:/Users/admin/new-workspace…/webclient/target/war/WEB-INF/classes;C:/Users/admin/new-workspace…/webclient/target/test-classes;D:/backup/Java_Software/eclipse-helios/eclipse/configuration/com.vaadin.integration.eclipse/download/gwt-dev/2.1.1/gwt-dev.jar;C:/Users/admin/.m2/repository/com/google/gwt/gwt-user/1.5.3/gwt-user-1.5.3.jar;C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar;C:/Users/admin/.m2/repository/org/vaadin/addons/visualizationsforvaadin/1.1.2/visualizationsforvaadin-1.1.2.jar;C:/Users/admin/.m2/repository/com/google/gwt/google-apis/gwt-visualization/1.0.2/gwt-visualization-1.0.2.jar;C:/Users/admin/.m2/repository/com/google/gwt/gwt-user/1.5.3/gwt-user-1.5.3.jar, com.vaadin.tools.WidgetsetCompiler, -out, src/main/webapp/VAADIN/widgetsets, -style, DETAILED, -localWorkers, 2, -logLevel, INFO, com.ios.myapp.webapp.widgetset.myappWidgetset]

Updating GWT module description file…
Apr 8, 2011 6:45:23 PM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Widgetsets found from classpath:
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/
org.vaadin.vaadinvisualizations.widgetset.VaadinvisualizationApplicationWidgetset in jar:file:C:/Users/admin/.m2/repository/org/vaadin/addons/visualizationsforvaadin/1.1.2/visualizationsforvaadin-1.1.2.jar!/
com.ios.myapp.webapp.widgetset.myappWidgetset in file://C/Users/admin/new-workspace…/webclient/src/main/java

Apr 8, 2011 6:45:23 PM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Search took 32ms
Done.
Starting GWT compiler
Compiling module com.ios.myapp.webapp.widgetset.myappwidgetset
Validating newly compiled units
[WARN]
Warnings in ‘jar:file:/D:/backup/Java_Software/eclipse-helios/eclipse/configuration/com.vaadin.integration.eclipse/download/gwt-dev/2.1.1/gwt-dev.jar!/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Cast.java’
[WARN]
Line 29: Referencing field ‘java.lang.Object.castableTypeMap’: unable to resolve field, expect subsequent failures
[WARN]
Line 29: Referencing field ‘java.lang.Object.castableTypeMap’: unable to resolve field, expect subsequent failures
[WARN]
Line 38: Referencing field ‘java.lang.Object.castableTypeMap’: unable to resolve field, expect subsequent failures
[WARN]
Line 38: Referencing field ‘java.lang.Object.castableTypeMap’: unable to resolve field, expect subsequent failures
[WARN]
Warnings in ‘jar:file:/D:/backup/Java_Software/eclipse-helios/eclipse/configuration/com.vaadin.integration.eclipse/download/gwt-dev/2.1.1/gwt-dev.jar!/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/Util.java’
[WARN]
Line 27: Referencing field ‘java.lang.Object.castableTypeMap’: unable to resolve field, expect subsequent failures
[WARN]
Line 35: Referencing field ‘java.lang.Object.castableTypeMap’: unable to resolve field, expect subsequent failures
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/ApplicationConnection.java’
[ERROR]
Line 31: The import com.google.gwt.core.client.Scheduler cannot be resolved
[ERROR]
Line 45: The import com.google.gwt.user.client.ui.Focusable cannot be resolved
[ERROR]
Line 523: The method create() is undefined for the type SynchronousXHR
[ERROR]
Line 653: Scheduler cannot be resolved
[ERROR]
Line 760: Scheduler cannot be resolved to a type
[ERROR]
Line 760: Scheduler cannot be resolved
[ERROR]
Line 1715: The method setTabIndex(int) is undefined for the type Focusable
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/ClientExceptionHandler.java’
[ERROR]
Line 32: The method log(String, Throwable) in the type GWT is not applicable for the arguments (String)
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/DateTimeService.java’
[ERROR]
Line 384: The method getDateTimeConstants() is undefined for the type LocaleInfo
[ERROR]
Line 386: The method getDateTimeConstants() is undefined for the type LocaleInfo
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/EventHelper.java’
[ERROR]
Line 6: The import com.google.gwt.event cannot be resolved
[ERROR]
Line 7: The import com.google.gwt.event cannot be resolved
[ERROR]
Line 8: The import com.google.gwt.event cannot be resolved
[ERROR]
Line 9: The import com.google.gwt.event cannot be resolved
[ERROR]
Line 10: The import com.google.gwt.event cannot be resolved
[ERROR]
Line 40: HandlerRegistration cannot be resolved to a type
[ERROR]
Line 42: HandlerRegistration cannot be resolved to a type
[ERROR]
Line 45: HasFocusHandlers cannot be resolved to a type
[ERROR]
Line 46: FocusHandler cannot be resolved to a type
[ERROR]
Line 57: HandlerRegistration cannot be resolved to a type
[ERROR]
Line 59: HandlerRegistration cannot be resolved to a type
[ERROR]
Line 62: HasBlurHandlers cannot be resolved to a type
[ERROR]
Line 63: BlurHandler cannot be resolved to a type
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/MouseEventDetails.java’
[ERROR]
Line 21: The import com.google.gwt.dom.client.NativeEvent cannot be resolved
[ERROR]
Line 81: NativeEvent cannot be resolved to a type
[ERROR]
Line 85: NativeEvent cannot be resolved to a type
[ERROR]
Line 151: NativeEvent cannot be resolved to a type
[ERROR]
Line 154: The method getScrollLeft() is undefined for the type Document
[ERROR]
Line 157: NativeEvent cannot be resolved to a type
[ERROR]
Line 160: The method getScrollTop() is undefined for the type Document
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/NullConsole.java’
[ERROR]
Line 34: The method log(String, Throwable) in the type GWT is not applicable for the arguments (String)
[ERROR]
Line 38: The method log(String, Throwable) in the type GWT is not applicable for the arguments (String)
[ERROR]
Line 42: The method log(String, Throwable) in the type GWT is not applicable for the arguments (String)
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/SynchronousXHR.java’
[ERROR]
Line 3: The import com.google.gwt.xhr cannot be resolved
[ERROR]
Line 5: XMLHttpRequest cannot be resolved to a type
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/Util.java’
[ERROR]
Line 27: The import com.google.gwt.core.client.Scheduler cannot be resolved
[ERROR]
Line 378: The method getClientWidth() is undefined for the type Element
[ERROR]
Line 611: Scheduler cannot be resolved
[ERROR]
Line 954: The method getEventListener(Element) is undefined for the type Event
[ERROR]
Errors in ‘jar:file:/C:/Users/admin/.m2/repository/com/vaadin/vaadin/6.5.2/vaadin-6.5.2.jar!/com/vaadin/terminal/gwt/client/VDebugConsole.java’
[ERROR]
Line 24: The import com.google.gwt.dom.client.Style.FontWeight cannot be resolved
[ERROR]
Line 25: The import com.google.gwt.event cannot be resolved
[ERROR]
Line 26: The import com.google.gwt.event cannot be resolved
[ERROR]
Line 27: The import com.google.gwt.event cannot be resolved
[ERROR]
Line 28: The import com.google.gwt.http.client.UrlBuilder cannot be resolved
[ERROR]
Line 218: The method setValue(boolean) is undefined for the type CheckBox
[ERROR]
Line 244: The method log(String, Throwable) in the type GWT is not applicable for the arguments (String)
[ERROR]
Line 262: The method getValue() is undefined for the type CheckBox
[ERROR]
Line 269: The method setColor(String) is undefined for the type Style
[ERROR]
Line 270: FontWeight cannot be resolved
[ERROR]
Line 286: The method log(String, Throwable) in the type GWT is not applicable for the arguments (String)
[ERROR]
Line 403: ClickHandler cannot be resolved to a type
[ERROR]
Line 435: ClickHandler cannot be resolved to a type
[ERROR]
Line 462: Incompatible conditional operand types Throwable and UmbrellaException
[ERROR]
Line 462: UmbrellaException cannot be resolved to a type
[ERROR]
Line 463: UmbrellaException cannot be resolved to a type
[ERROR]
Line 463: UmbrellaException cannot be resolved to a type
[ERROR]
Line 474: Incompatible conditional operand types Throwable and UmbrellaException
[ERROR]
Line 474: UmbrellaException cannot be resolved to a type
[ERROR]
Line 475: UmbrellaException cannot be resolved to a type
[ERROR]
Line 475: UmbrellaException cannot be resolved to a type
[ERROR]
Line 518: The method setValue(boolean) is undefined for the type CheckBox
[ERROR]
Line 520: ClickHandler cannot be resolved to a type
[ERROR]
Line 551: ClickHandler cannot be resolved to a type
[ERROR]
Line 563: ClickHandler cannot be resolved to a type
[ERROR]
Line 590: ClickHandler cannot be resolved to a type
[ERROR]
Line 597: ClickHandler cannot be resolved to a type
[ERROR]
Line 612: ClickHandler cannot be resolved to a type

[/color]

I googled but not found any solution.
Thanks

-Shyam
11635.png
11636.png