Migration from 7 to 8.8.2

So after doing all the stuff i get the following errors when compiling:

auto discovered modules [com.mycompany.harpy.AppWidgetSet]

Jun 15, 2019 5:19:24 PM java.util.prefs.WindowsPreferences
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(…) returned error code 5.
Compiling module com.mycompany.harpy.AppWidgetSet
Tracing compile failure path for type ‘com.vaadin.client.connectors.grid.DetailsManagerConnector’
[ERROR]
Errors in ‘jar:file:/C:/Users/Papa/.m2/repository/com/vaadin/vaadin-client/8.8.2/vaadin-client-8.8.2.jar!/com/vaadin/client/connectors/grid/DetailsManagerConnector.java’
[ERROR]
Line 40: The import com.vaadin.ui.Grid.DetailsManager cannot be resolved
[ERROR]
Line 50: DetailsManager cannot be resolved to a type
[ERROR]
Line 50: Class cannot be resolved to a type
Tracing compile failure path for type ‘com.vaadin.client.ui.notification.NotificationConnector’
[ERROR]
Errors in ‘jar:file:/C:/Users/Papa/.m2/repository/com/vaadin/vaadin-client/8.8.2/vaadin-client-8.8.2.jar!/com/vaadin/client/ui/notification/NotificationConnector.java’
[ERROR]
Line 36: Type mismatch: cannot convert from Class to Class<? extends Connector>
Tracing compile failure path for type ‘com.vaadin.client.connectors.grid.TreeRendererConnector’
[ERROR]
Errors in ‘jar:file:/C:/Users/Papa/.m2/repository/com/vaadin/vaadin-client/8.8.2/vaadin-client-8.8.2.jar!/com/vaadin/client/connectors/grid/TreeRendererConnector.java’
[ERROR]
Line 26: The import com.vaadin.ui.Tree.TreeRenderer cannot be resolved
[ERROR]
Line 36: Class cannot be resolved to a type
[ERROR]
Line 36: TreeRenderer cannot be resolved to a type
Tracing compile failure path for type ‘com.vaadin.client.connectors.tree.TreeMultiSelectionModelConnector’
[ERROR]
Errors in ‘jar:file:/C:/Users/Papa/.m2/repository/com/vaadin/vaadin-client/8.8.2/vaadin-client-8.8.2.jar!/com/vaadin/client/connectors/tree/TreeMultiSelectionModelConnector.java’
[ERROR]
Line 36: TreeMultiSelectionModel cannot be resolved to a type
[ERROR]
Line 23: The import com.vaadin.ui.Tree.TreeMultiSelectionModel cannot be resolved
[ERROR]
Line 36: Class cannot be resolved to a type
Tracing compile failure path for type ‘com.vaadin.client.connectors.grid.ColumnConnector’
[ERROR]
Errors in ‘jar:file:/C:/Users/Papa/.m2/repository/com/vaadin/vaadin-client/8.8.2/vaadin-client-8.8.2.jar!/com/vaadin/client/connectors/grid/ColumnConnector.java’
[ERROR]
Line 38: Type mismatch: cannot convert from Class<Grid.Column> to Class<? extends Connector>
[ERROR]
Aborting compile due to errors in some input files

BUILD FAILURE

Total time: 31.291s
Finished at: Sat Jun 15 17:19:43 EDT 2019
Final Memory: 36M/222M

Failed to execute goal com.vaadin:vaadin-maven-plugin:8.8.2:compile (default) on project Harpy: Command [[
C:\Program Files\Java\jdk1.8.0_162\jre\bin\java -Xmx1G -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Users\Papa\Documents\NetBeansProjects\Harpy\target\classes\VAADIN\widgetsets -localWorkers 1 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Users\Papa\Documents\NetBeansProjects\Harpy\target.generated com.mycompany.harpy.AppWidgetSet
]] failed with status 1

Have a look at https://stackoverflow.com/questions/16428098/groovy-shell-warning-could-not-open-create-prefs-root-node

Ronny Edler:
Have a look at https://stackoverflow.com/questions/16428098/groovy-shell-warning-could-not-open-create-prefs-root-node

Thx Ronny,

I was able to resolve the problem and it was a combination of:

adding “
com.vaadin
vaadin-compatibility-client

	and removing " @Widgetset.....: from my UI implementation. It seems that the migration instructions are inconsistent :
	
	"An UI in your project defines its widgetset with the annotation
	@Widgetset("com.vaadin.DefaultWidgetSet"), which should be changed to @Widgetset("com.vaadin.v7.Vaadin7WidgetSet")"
	
	
	https://vaadin.com/docs/v8/framework/migration/migrating-to-vaadin8.html