Horst
(Horst Skoff)
June 14, 2011, 5:59am
1
Hey!
After I upgrade my Vaadin from 6.5.3. to 6.6.1, I get a NullPointerException on every button click!
Do you have any solution, why? Bug or feature?
[quote
]java.lang.NullPointerException
at com.vaadin.terminal.gwt.client.MouseEventDetails.deSerialize(MouseEventDetails.java:116)
at com.vaadin.ui.Button.changeVariables(Button.java:198)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1297)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1217)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:733)
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:296)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:591)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:394)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
[/quote]
Horst
Teemu
(Teemu Pöntelin)
June 14, 2011, 6:09am
2
Hi,
when you are using any custom client-side code (including add-ons from the
Directory
), you should always recompile your widgetset when updating your Vaadin version. My guess is that this might be the cause of your NPE .
Horst
(Horst Skoff)
June 14, 2011, 6:27am
3
Hey!
Thanks, but when I recomplie
my Widgetset:
Updating GWT module description file…
14.06.2011 08:22:30 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Widgetsets found from classpath:
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:C:/java/workspace_vaadin_20110610/gartentvlib/vaadin-6.6.1.jar!/
com.example.windowstheme.widgetset.WindowsthemeWidgetset in jar:file:C:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/WindowsTheme.jar!/
com.example.gartentv.widgetset.GartentvWidgetset in file://C/java/workspace_vaadin_20110610/gartentv/src/java
java.com.example.gartentv.widgetset.GartentvWidgetset in file://C/java/workspace_vaadin_20110610/gartentv/src
14.06.2011 08:22:30 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Search took 11ms
Done.
Starting GWT compiler
Compiling module java.com.example.gartentv.widgetset.GartentvWidgetset
Validating newly compiled units
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.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 1136: The method getChangedTouches() is undefined for the type Event
[ERROR]
Line 1152: The method getChangedTouches() is undefined for the type Event
[ERROR]
Line 1188: Touch cannot be resolved to a type
[ERROR]
Line 1188: The method getChangedTouches() is undefined for the type Event
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.1.jar!/com/vaadin/terminal/gwt/client/ui/TouchScrollDelegate.java’
[ERROR]
Line 11: The import com.google.gwt.dom.client.Touch cannot be resolved
[ERROR]
Line 12: The import com.google.gwt.event.dom.client.TouchStartEvent cannot be resolved
[ERROR]
Line 114: TouchStartEvent cannot be resolved to a type
[ERROR]
Line 117: Touch cannot be resolved to a type
[ERROR]
Line 219: Touch cannot be resolved to a type
[ERROR]
Line 294: Touch cannot be resolved to a type
[ERROR]
Line 294: The method getChangedTouches() is undefined for the type NativeEvent
[ERROR]
Line 450: Event.ONTOUCHMOVE cannot be resolved
[ERROR]
Line 458: Event.ONTOUCHEND cannot be resolved
[ERROR]
Line 459: Event.ONTOUCHCANCEL cannot be resolved
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.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 84: TouchStartHandler cannot be resolved to a type
[ERROR]
Line 93: TouchStartEvent cannot be resolved
[ERROR]
Line 94: Event.TOUCHEVENTS cannot be resolved
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.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:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.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 454: Event.TOUCHEVENTS cannot be resolved
[ERROR]
Line 455: TouchStartHandler cannot be resolved to a type
[ERROR]
Line 459: TouchStartEvent cannot be resolved
[ERROR]
Line 2017: Event.TOUCHEVENTS cannot be resolved
[ERROR]
Line 2116: Event.ONTOUCHEND cannot be resolved
[ERROR]
Line 2130: Event.ONTOUCHSTART cannot be resolved
[ERROR]
Line 2188: Event.ONTOUCHSTART cannot be resolved
[ERROR]
Line 2191: Event.ONTOUCHSTART cannot be resolved
[ERROR]
Line 2207: Event.ONTOUCHEND cannot be resolved
[ERROR]
Line 2208: Event.ONTOUCHCANCEL cannot be resolved
[ERROR]
Line 2269: Event.ONTOUCHMOVE cannot be resolved
[ERROR]
Line 2272: Event.ONTOUCHMOVE cannot be resolved
[ERROR]
Line 3966: Event.TOUCHEVENTS cannot be resolved
[ERROR]
Line 4362: Event.ONTOUCHEND cannot be resolved
[ERROR]
Line 4363: Event.ONTOUCHCANCEL cannot be resolved
[ERROR]
Line 4376: Event.ONTOUCHMOVE cannot be resolved
[ERROR]
Line 4400: Event.ONTOUCHSTART cannot be resolved
[ERROR]
Line 4402: Touch cannot be resolved to a type
[ERROR]
Line 4402: The method getChangedTouches() is undefined for the type Event
[ERROR]
Line 4503: Touch cannot be resolved to a type
[ERROR]
Line 4503: The method getChangedTouches() is undefined for the type Event
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.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:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.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:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.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:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.1.jar!/com/vaadin/terminal/gwt/client/ui/VTree.java’
[ERROR]
Line 579: Event.TOUCHEVENTS cannot be resolved
[ERROR]
Line 790: Event.ONTOUCHSTART cannot be resolved
[ERROR]
Line 794: Event.ONTOUCHSTART cannot be resolved
[ERROR]
Line 817: Event.ONTOUCHMOVE cannot be resolved
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.1.jar!/com/vaadin/terminal/gwt/client/ui/VWindow.java’
[ERROR]
Line 292: Event.TOUCHEVENTS cannot be resolved
[ERROR]
Line 952: Event.ONTOUCHSTART cannot be resolved
[ERROR]
Line 969: Event.ONTOUCHEND cannot be resolved
[ERROR]
Line 971: Event.ONTOUCHCANCEL cannot be resolved
[ERROR]
Line 981: Event.ONTOUCHMOVE cannot be resolved
[ERROR]
Line 1166: Event.ONTOUCHSTART cannot be resolved
[ERROR]
Line 1167: The method getTouches() is undefined for the type Event
[ERROR]
Line 1177: Event.ONTOUCHEND cannot be resolved
[ERROR]
Line 1178: Event.ONTOUCHCANCEL cannot be resolved
[ERROR]
Line 1183: Event.ONTOUCHMOVE cannot be resolved
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentv/WebContent/WEB-INF/lib/vaadin-6.6.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
Because why?
Horst
Henri1
(Henri Kerola)
June 14, 2011, 6:42am
4
You are trying to compile with an old version of GWT. If you are using Vaadin Eclipse plug-in to compile the widgetset, try to switch your project’s Vaadin version to an older version and then back to 6.6.1 to update GWT.
Teemu
(Teemu Pöntelin)
June 14, 2011, 6:43am
5
Which version of the GWT libraries are you using? Vaadin 6.6.1 requires GWT 2.3.
If you are using the Vaadin Plugin for Eclipse for the compilation, you should first upgrade the plugin to the latest version.
Horst
(Horst Skoff)
June 14, 2011, 7:52am
6
O.K.
I update gwt to 2.3 and than I recompile with eclipse plug in:
i chance in my lib directory the gwt-usr, gwt-dev and the gwt-dev-tooling too:
14.06.2011 09:46:08 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Search took 10ms
Done.
Starting GWT compiler
Compiling module java.com.example.gartentv.widgetset.GartentvWidgetset
Validating newly compiled units
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/com/google/gwt/editor/client/EditorDriver.java’
[ERROR]
Line 20: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR]
Line 97: ConstraintViolation cannot be resolved to a type
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java’
[ERROR]
Line 28: Name clash: The method setConstraintViolations(Iterable<ConstraintViolation<?>>) of type BaseEditorDriver has the same erasure as setConstraintViolations(Iterable>) of type EditorDriver but does not override it
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java’
[ERROR]
Line 31: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR]
Line 67: ConstraintViolation cannot be resolved to a type
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java’
[ERROR]
Line 25: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR]
Line 40: ConstraintViolation cannot be resolved to a type
[ERROR]
Line 43: ConstraintViolation cannot be resolved to a type
[ERROR]
Line 44: Missing code implementation in the compiler
[ERROR]
Line 49: ConstraintViolation cannot be resolved to a type
[ERROR]
Line 49: Missing code implementation in the compiler
[ERROR]
Line 70: ConstraintViolation cannot be resolved to a type
[ERROR]
Line 72: ConstraintViolation cannot be resolved to a type
[ERROR]
Line 73: ConstraintViolation<?> cannot be resolved to a type
[ERROR]
Line 77: ConstraintViolation cannot be resolved to a type
[ERROR]
Line 81: ConstraintViolation<capture#3-of ?> cannot be resolved to a type
[ERROR]
Line 89: ConstraintViolation<capture#4-of ?> cannot be resolved to a type
[ERROR]
Line 93: ConstraintViolation<capture#5-of ?> cannot be resolved to a type
[ERROR]
Line 98: ConstraintViolation cannot be resolved to a type
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java’
[ERROR]
Line 26: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR]
Line 35: The type MockSimpleBeanEditorDriver<T,E> must implement the inherited abstract method EditorDriver.setConstraintViolations(Iterable<ConstraintViolation<?>>)
[ERROR]
Line 107: Name clash: The method setConstraintViolations(Iterable>) of type MockSimpleBeanEditorDriver<T,E> has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type EditorDriver but does not override it
[ERROR]
Line 108: ConstraintViolation cannot be resolved to a type
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/javax/validation/super/javax/validation/Configuration.java’
[ERROR]
Line 93: TraversableResolver cannot be resolved to a type
[ERROR]
Line 105: ConstraintValidatorFactory cannot be resolved to a type
[ERROR]
Line 182: TraversableResolver cannot be resolved to a type
[ERROR]
Line 182: No source code is available for type TraversableResolver; did you forget to inherit a required module?
[ERROR]
Line 194: ConstraintValidatorFactory cannot be resolved to a type
[ERROR]
Line 194: No source code is available for type ConstraintValidatorFactory; did you forget to inherit a required module?
[ERROR]
Line 202: ValidatorFactory cannot be resolved to a type
[ERROR]
Line 202: No source code is available for type ValidatorFactory; did you forget to inherit a required module?
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java’
[ERROR]
Line 30: ConstraintViolationException cannot be resolved to a type
[ERROR]
Line 34: ConstraintViolationException cannot be resolved to a type
[ERROR]
Line 34: No source code is available for type ConstraintViolationException; did you forget to inherit a required module?
[ERROR]
Line 39: ConstraintViolation cannot be resolved to a type
[ERROR]
Line 39: ConstraintViolation cannot be resolved to a type
[ERROR]
Line 40: ConstraintViolationException cannot be resolved to a type
[ERROR]
Line 44: ConstraintViolationException cannot be resolved to a type
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/javax/validation/super/javax/validation/MessageInterpolator.java’
[ERROR]
Line 21: The import javax.validation.metadata cannot be resolved
[ERROR]
Line 66: ConstraintDescriptor cannot be resolved to a type
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/javax/validation/super/javax/validation/constraints/Pattern.java’
[ERROR]
Line 30: The import javax.validation.Constraint cannot be resolved
[ERROR]
Line 31: The import javax.validation.Payload cannot be resolved
[ERROR]
Line 49: Constraint cannot be resolved to a type
[ERROR]
Line 49: The attribute validatedBy is undefined for the annotation type Constraint
[ERROR]
Line 75: Payload cannot be resolved to a type
[ERROR]
Errors in ‘jar:file:/C:/java/workspace_vaadin_20110610/gartentvlib/gwt-user.jar!/javax/validation/super/javax/validation/spi/ConfigurationState.java’
[ERROR]
Line 22: The import javax.validation.ConstraintValidatorFactory cannot be resolved
[ERROR]
Line 24: The import javax.validation.TraversableResolver cannot be resolved
[ERROR]
Line 93: ConstraintValidatorFactory cannot be resolved to a type
[ERROR]
Line 107: TraversableResolver cannot be resolved to a type
Computing all possible rebind results for ‘com.google.gwt.user.client.UserAgentAsserter’
Rebinding com.google.gwt.user.client.UserAgentAsserter
Checking rule
[WARN]
Detected warnings related to ‘com.google.gwt.editor.client.SimpleBeanEditorDriver’. Are validation-api-.jar and validation-api--sources.jar on the classpath?
[WARN]
Unknown type ‘com.google.gwt.editor.client.SimpleBeanEditorDriver’ specified in deferred binding rule
14.06.2011 09:46:22 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getPaintablesHavingWidgetAnnotation
INFO: Searching for paintables…
14.06.2011 09:46:23 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getPaintablesHavingWidgetAnnotation
INFO: Search took 632ms
Widgetset compilation completed
But the result is the same:
Whats wrong?
Horst
Teemu
(Teemu Pöntelin)
June 14, 2011, 8:20am
7
Try to add "
?debug
" parameter to the URL to display a debug window (for example
http://demo.vaadin.com/sampler?debug
). In the debug window you can see a line indicating which Vaadin version your widgetset was built with. In this case it should display a line “Widget set is built on version: 6.6.1”
Have you restarted your server after the recompilation?
Jens
(Jens Jansson)
June 14, 2011, 8:54am
8
Hi!
Starting from GWT 2.3, GWT want’s along with the dev and user libs also the validation-api and validation-api-sources libs. Adding that should at least remove some of the problems.
Horst
(Horst Skoff)
June 14, 2011, 9:42am
9
Hey !
Thanks to all of you for your support!
But nothing solve my problem, I will get always the same error!
Now I store my resoures for later and delete my widgetsets, and I will try to develop new widgetsets in order it solves my problem!
So I can run my the rest of my application without exceptions, at the moment.
I hobe it will the best workarround at least for now and for me!
Horst
Joonas
(Joonas Lehtinen)
June 16, 2011, 11:43am
10
I also believe that this is the problem of having old widgetset with newer Vaadin version.
That said - the cause for the NPE was
fixed
in Vaadin 6.6.2, so try updating to that version.