Co-Pilot Issue

I decided mid-registration to stay with the free version. For some reason the vaadin co-pilot stops rendering in the web page, and I get the following error (see below). I’ve been searching all the files but am Unable to find a way to clear this condition.

java.lang.IllegalArgumentException: Invalid data
	at com.vaadin.copilot.CopilotServerClient.readValue(CopilotServerClient.java:64) ~[copilot-24.4.6.jar:na]
	at com.vaadin.copilot.userinfo.UserInfoServerClient.getUserInfo(UserInfoServerClient.java:23) ~[copilot-24.4.6.jar:na]
	at com.vaadin.copilot.analytics.AnalyticsClient.<init>(AnalyticsClient.java:38) ~[copilot-24.4.6.jar:na]
	at com.vaadin.copilot.Copilot.handleConnect(Copilot.java:62) ~[copilot-24.4.6.jar:na]
	at com.vaadin.base.devserver.DebugWindowConnection.handleConnect(DebugWindowConnection.java:207) ~[vaadin-dev-server-24.4.4.jar:na]
	at com.vaadin.base.devserver.DebugWindowConnection.onConnect(DebugWindowConnection.java:187) ~[vaadin-dev-server-24.4.4.jar:na]
	at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$3(PushHandler.java:605) ~[flow-server-24.4.4.jar:24.4.4]
	at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[na:na]
	at com.vaadin.flow.server.communication.PushHandler.lambda$onConnect$4(PushHandler.java:604) ~[flow-server-24.4.4.jar:24.4.4]
	at com.vaadin.flow.server.communication.PushHandler.callWithServiceAndSession(PushHandler.java:227) ~[flow-server-24.4.4.jar:24.4.4]
	at com.vaadin.flow.server.communication.PushHandler.onConnect(PushHandler.java:601) ~[flow-server-24.4.4.jar:24.4.4]
	at com.vaadin.flow.server.communication.PushAtmosphereHandler.onConnect(PushAtmosphereHandler.java:103) ~[flow-server-24.4.4.jar:24.4.4]
	at com.vaadin.flow.server.communication.PushAtmosphereHandler.onRequest(PushAtmosphereHandler.java:77) ~[flow-server-24.4.4.jar:24.4.4]
	at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:217) ~[atmosphere-runtime-3.0.5.slf4jvaadin1.jar:3.0.5.slf4jvaadin1]
	at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:103) ~[atmosphere-runtime-3.0.5.slf4jvaadin1.jar:3.0.5.slf4jvaadin1]
	at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:67) ~[atmosphere-runtime-3.0.5.slf4jvaadin1.jar:3.0.5.slf4jvaadin1]
	at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2284) ~[atmosphere-runtime-3.0.5.slf4jvaadin1.jar:3.0.5.slf4jvaadin1]
	at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:574) ~[atmosphere-runtime-3.0.5.slf4jvaadin1.jar:3.0.5.slf4jvaadin1]
	at org.atmosphere.websocket.DefaultWebSocketProcessor.open(DefaultWebSocketProcessor.java:213) ~[atmosphere-runtime-3.0.5.slf4jvaadin1.jar:3.0.5.slf4jvaadin1]
	at org.atmosphere.container.JSR356Endpoint.onOpen(JSR356Endpoint.java:254) ~[atmosphere-runtime-3.0.5.slf4jvaadin1.jar:3.0.5.slf4jvaadin1]
	at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:131) ~[tomcat-embed-websocket-10.1.25.jar:10.1.25]
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:946) ~[tomcat-embed-core-10.1.25.jar:10.1.25]
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) ~[tomcat-embed-core-10.1.25.jar:10.1.25]
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) ~[tomcat-embed-core-10.1.25.jar:10.1.25]
	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) ~[tomcat-embed-core-10.1.25.jar:10.1.25]
	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-10.1.25.jar:10.1.25]
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) ~[tomcat-embed-core-10.1.25.jar:10.1.25]
	at java.base/java.lang.Thread.run(Thread.java:1570) ~[na:na]
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "firstname" (class com.vaadin.copilot.userinfo.UserInfo), not marked as ignorable (2 known properties: "vaadiner", "agreedToStoreAIRequests"])
 at [Source: (String)"{"agreedToStoreAIRequests":true,"vaadiner":false,"firstname":"********","lastname":"Empty","email":"********@gmail.com","portraitUrl":"/static/portrait/com.vaadin.website.model.entity.liferay.shared.Image_19104066?version=1730601547000"}"; line: 1, column: 63] (through reference chain: com.vaadin.copilot.userinfo.UserInfo["firstname"])

Hi, I think this was fixed in Vaadin 24.4.7. Try upgrading

1 Like

I removed the proKey file from ~/.vaadin and that seemed to resolve the issue. I also updated to latest version afterwards. Thanks!

Please help me in locating this file proKey from ~/.vaadin in windows. I’m using 24.5.3 and getting Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target . I tried different JDKs but result is same.

Removing the file won’t solve your problem. That error message hints your JDK is unable to connect to Internet or finding an invalid certificate chain (you are most likely behind some corporate proxy).

In any case, “~” is a shorthand for the home directory in *nix systems (MacOS, Linux, etc). In Windows, you can open a Windows/File Explorer and type %HOMEPATH% in your address bar, then look for the .vaadin folder (might be hidden depending on your preferences).

Once there, you should find your key files (userKey, proKey). If you go to https://vaadin.com/myaccount/licenses#latest, you should be able to generate and download an offlineKey (granted you have an active subscription) and place it in the .vaadin folder. Things should work as expected afterwards.

If you are trying to use Copilot, then you will need to configure your JDK to use the Windows cert store, as it requires full Internet access.