I’m using Vaadin 7 to create a custom widget with google maps. It’s compiling perfectly, but when i try to use it, it says:
Widgetset does not contain implementation for com.viagps.maps.widget.GoogleMapWidget. Check its component connector’s @Connect mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions.
Until i upgrade to Vaadin 7, i can use the widget perfectly.
Do you know if the gwt.xml file must have the same name that de class widget?
The Viagps_maps_vaadinWidgetset.gwt.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name="com.vaadin.DefaultWidgetSet" />
<inherits name="com.google.gwt.maps.Maps" />
<source path="client" />
</module>
When i compile with vaadin:clean vaadin:compile, the compilation process is succesfull, but when i try with gwt:compile it throws this exception:
[INFO]
[ERROR]
Unexpected internal compiler error
[INFO]
java.lang.RuntimeException: Unexpected IOException on in-memory stream
[INFO]
at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:360)
[INFO]
at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:672)
[INFO]
at com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:985)
[INFO]
at com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:530)
[INFO]
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:621)
[INFO]
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
[INFO]
at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
[INFO]
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[INFO]
at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
[INFO]
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
[INFO]
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
[INFO]
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
[INFO]
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[INFO]
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
[INFO]
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[INFO]
Caused by: java.io.InvalidClassException: com.google.gwt.dev.jjs.ast.JDeclaredType; local class incompatible: stream classdesc serialVersionUID = -1052417216019896795, local class serialVersionUID = -8155793964565947646
[INFO]
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:579)
[INFO]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1600)
[INFO]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513)
[INFO]
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1600)
[INFO]
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513)
[INFO]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1749)
[INFO]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
[INFO]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
[INFO]
at java.util.ArrayList.readObject(ArrayList.java:696)
[INFO]
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
[INFO]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[INFO]
at java.lang.reflect.Method.invoke(Method.java:616)
[INFO]
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:988)
[INFO]
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1865)
[INFO]
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
[INFO]
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
[INFO]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
[INFO]
at com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:203)
[INFO]
at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:358)
[INFO]
... 14 more