Can't get login after migrating to Cuba 7

Hi all,

I have a project in Cuba 6 and want to migrate to Cuba 7 (because I don’t know if there is an “easy” to migrate to jmix.

The thing is I commented all my custom code giving errors just searching for a fast way to get into 7, and then starting fixing this errors. All commented lines is custom code inside some entity like in some forms, like aField.getValue().compareTo() and so on…

Well, Once I get ride of all errors (in my entitys) Project builds and server starts, but can’t get to the login screen. I get in browser this error after some seconds.

Failed to load the widgetset: ./VAADIN/widgetsets/com.haulmont.charts.web.widgets.ChartsWidgetSet/com.haulmont.charts.web.widgets.ChartsWidgetSet.nocache.js?1627583039550

And there are no errors in server side. Some idea?

Hi,

Since CUBA 6 and 7 use different Vaadin versions, it seems that your tomcat contains previously compiled widgetset. The following gradle tasks should help:

./gradlew clean dropTomcat setupTomcat assemble deploy 

Regards,
Gleb

Uhmm, makes sense, will try later and come back with results, thanks.

Well, sadly no success, my logo start spining until errors popup and can’t get the login screen

I deleted my deploy folder and run your command but without dropTomcat (because I deleted the complete folder).

All looks ok. Then, I open intelij project and Start server with Run Cuba.

This is my server log:
Using CATALINA_BASE:   "C:\Dev\komerziaerp-cuba\deploy\tomcat"
Using CATALINA_HOME:   "C:\Dev\komerziaerp-cuba\deploy\tomcat"
Using CATALINA_TMPDIR: "C:\Dev\komerziaerp-cuba\deploy\tomcat\temp"
Using JRE_HOME:        "C:/Program Files/Java/jdk1.8.0_121"
Using CLASSPATH:       "C:\Dev\komerziaerp-cuba\deploy\tomcat\bin\bootstrap.jar;C:\Dev\komerziaerp-cuba\deploy\tomcat\bin\tomcat-juli.jar"
Listening for transport dt_socket at address: 8787
ago 02, 2021 12:20:59 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFORMACIÓN: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: [C:\Program Files\Java\jdk1.8.0_121\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Users\GiuDev\AppData\Local\Programs\Python\Python35\Lib\site-packages\PyQt5;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\nodejs\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\ONLYOFFICE\DesktopEditors\converter;C:\Program Files\Git\cmd;C:\Android-SDK\platform-tools;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\SourceGear\Common\DiffMerge\;C:\ProgramData\chocolatey\bin;C:\Program Files\PuTTY\;C:\Dev\php74;C:\xamppdev\php;C:\ProgramData\ComposerSetup\bin;C:\Program Files (x86)\Yarn\bin\;C:\Ruby24-x64\bin;C:\Users\GiuDev\AppData\Local\Microsoft\WindowsApps;C:\Users\GiuDev\AppData\Local\atom\bin;C:\Users\GiuDev\AppData\Local\Microsoft\WindowsApps;C:\Users\GiuDev\AppData\Roaming\npm;C:\Users\GiuDev\AppData\Roaming\Composer\vendor\bin;C:\Users\GiuDev\AppData\Local\Yarn\bin;C:\Program Files\Haulmont\CUBA Studio 2020.2\bin;;;.]
ago 02, 2021 12:21:07 PM org.apache.coyote.AbstractProtocol init
INFORMACIÓN: Inicializando el manejador de protocolo ["http-nio-8080"]

ago 02, 2021 12:21:07 PM org.apache.catalina.startup.Catalina load
INFORMACIÓN: Server initialization in [8161] milliseconds
ago 02, 2021 12:21:07 PM org.apache.catalina.core.StandardService startInternal
INFORMACIÓN: Arrancando servicio [Catalina]
ago 02, 2021 12:21:07 PM org.apache.catalina.core.StandardEngine startInternal
INFORMACIÓN: Starting Servlet engine: [Apache Tomcat/9.0.38]
ago 02, 2021 12:21:07 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMACIÓN: Desplegando el directorio [C:\Dev\komerziaerp-cuba\deploy\tomcat\webapps\komerzia] de la aplicación web
LogbackConfigurator INFO Setting up CUBA default logging configuration
LogbackConfigurator INFO Found resource [file:/C:/Dev/komerziaerp-cuba/deploy/tomcat/../app_home/logback.xml]
12:21:09.595 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - Initializing 'web' block, servlet context path: /komerzia
12:21:09.741 INFO  c.h.cuba.core.sys.AppComponents         - Using app components: [com.haulmont.cuba, com.haulmont.reports, com.haulmont.charts, com.haulmont.bpm, com.haulmont.fts, de.diedavids.cuba.runtimediagnose]
12:21:09.798 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - Loading app properties from classpath:com/komenco/komerziaerp/web-app.properties
12:21:09.833 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - cuba.webContextName: komerzia
12:21:09.962 INFO  c.h.c.c.s.e.EnvironmentChecksRunner     - Environment checks on web module completed successfully
12:21:14.477 INFO  c.h.c.c.s.r.d.StaticServerSelector      - Server URLs: [http://localhost:8080/komerzia-core/remoting]
12:21:14.521 INFO  c.h.c.w.s.r.WebRemoteProxyBeanCreator   - Configuring proxy beans for local service invocations: [cuba_AuthenticationService, cuba_TrustedClientService, cuba_ServerInfoService, cuba_UserSettingService, cuba_UserManagementService, cuba_DataService, cuba_ConfigStorageService, cuba_PersistenceManagerService, cuba_LockService, cuba_UserSessionService, cuba_FoldersService, cuba_EmailService, cuba_FileStorageService, cuba_EntitySnapshotService, cuba_UniqueNumbersService, cuba_LocalizedMessageService, cuba_ResourceService, cuba_ScheduledTasksService, cuba_EntityLogService, cuba_TestingService, cuba_DomainDescriptionService, cuba_RelatedEntitiesService, cuba_EntitySqlGenerationService, cuba_NumberIdService, cuba_QueryResultsService, cuba_DynamicAttributesCacheService, cuba_EntityRestoreService, cuba_LocalFileExchangeService, cuba_EntityImportExportService, cuba_ConstraintLocalizationService, cuba_AttributeAccessService, cuba_ExceptionReportService, cuba_BulkEditorDataService, cuba_PersistenceSecurityService, cuba_AccessGroupsService, cuba_AttributeOptionsLoaderService, cuba_RolesService, cuba_SecurityScopesService, cuba_ScreenProfilerService]
12:21:14.525 INFO  c.h.c.w.s.r.WebRemoteProxyBeanCreator   - Configuring proxy beans for local service invocations: [report_ReportService, report_ReportWizardService]
12:21:14.525 INFO  c.h.c.w.s.r.WebRemoteProxyBeanCreator   - Configuring proxy beans for local service invocations: [bpm_ProcessRepositoryService, bpm_ProcessRuntimeService, bpm_ProcessVariablesService, bpm_ProcessFormService, bpm_ProcessMessagesService, bpm_ModelService, bpm_StencilSetService, bpm_BpmEntitiesService]
12:21:14.525 INFO  c.h.c.w.s.r.WebRemoteProxyBeanCreator   - Configuring proxy beans for local service invocations: [cuba_FtsService, cuba_HitInfoLoaderService]
12:21:14.526 INFO  c.h.c.w.s.r.WebRemoteProxyBeanCreator   - Configuring proxy beans for local service invocations: [ddcrd_SqlConsoleService, ddcrd_DiagnoseFileValidationService, ddcrd_GroovyConsoleService, ddcrd_DiagnoseWizardResultService, ddcrd_DiagnoseExecutionLogService]
12:21:14.526 INFO  c.h.c.w.s.r.WebRemoteProxyBeanCreator   - Configuring proxy beans for local service invocations: [komerziaerp_RenumerarAsientosService, komerziaerp_SqlComandoService]
12:21:18.038 INFO  c.h.c.c.s.CubaThreadPoolTaskScheduler   - Initializing ExecutorService 'scheduler'
12:21:20.092 INFO  c.h.cuba.core.sys.jmx.MBeanExporter     - Registering beans for JMX exposure: [komerzia.cuba:type=ConfigStorage, komerzia.cuba:type=CachingFacade, komerzia.cuba:type=FileUploading, komerzia.cuba:type=JmxNodeIdentifier, komerzia.cuba:type=JmxLogControl, komerzia.cuba:type=ClassLoaderManager, komerzia.cuba:type=StatisticsCounter]
12:21:20.433 INFO  c.h.cuba.core.sys.MetadataImpl          - Initializing metadata
12:21:21.446 INFO  c.h.cuba.core.sys.MetadataImpl          - Metadata initialized in 1013 ms
12:21:21.669 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - AppContext started
12:21:21.715 INFO  c.h.c.web.sys.CubaDispatcherServlet     - Initializing Servlet 'dispatcher'
12:21:22.129 INFO  c.h.c.web.sys.CubaDispatcherServlet     - Completed initialization in 413 ms
ago 02, 2021 12:21:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMACIÓN: Deployment of web application directory [C:\Dev\komerziaerp-cuba\deploy\tomcat\webapps\komerzia] has finished in [14.307] ms
ago 02, 2021 12:21:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMACIÓN: Desplegando el directorio [C:\Dev\komerziaerp-cuba\deploy\tomcat\webapps\komerzia-core] de la aplicación web
12:21:22.888 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - Initializing 'core' block, servlet context path: /komerzia-core
12:21:22.922 INFO  c.h.cuba.core.sys.AppComponents         - Using app components: [com.haulmont.cuba, com.haulmont.reports, com.haulmont.charts, com.haulmont.bpm, com.haulmont.fts, de.diedavids.cuba.runtimediagnose]
12:21:22.942 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - Loading app properties from classpath:com/komenco/komerziaerp/app.properties
12:21:22.944 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - cuba.webContextName: komerzia-core
12:21:22.958 INFO  c.h.cuba.core.sys.AppContextLoader      - DbmsType of the main database is set to postgres
12:21:22.986 INFO  c.h.c.c.s.e.DataStoresCheck             - Checking connection to data store Main
12:21:23.256 INFO  c.h.c.c.s.e.EnvironmentChecksRunner     - Environment checks on core module completed successfully
12:21:23.614 INFO  c.h.c.c.s.p.PersistenceConfigProcessor  - Creating file C:\Dev\komerziaerp-cuba\deploy\app_home\komerzia-core\work\persistence.xml
12:21:31.502 INFO  c.h.c.c.s.CubaThreadPoolTaskScheduler   - Initializing ExecutorService 'scheduler'
12:21:35.847 INFO  o.a.engine.impl.ProcessEngineImpl       - ProcessEngine default created
12:21:37.759 INFO  c.h.cuba.core.sys.jmx.MBeanExporter     - Registering beans for JMX exposure: [komerzia-core.cuba:type=PersistenceManager, komerzia-core.cuba:type=ConfigStorage, komerzia-core.cuba:type=UserSessions, komerzia-core.cuba:type=UniqueNumbers, komerzia-core.cuba:type=Emailer, komerzia-core.cuba:type=EntityLog, komerzia-core.cuba:type=FileStorage, komerzia-core.cuba:type=LockManager, komerzia-core.cuba:type=CachingFacade, komerzia-core.cuba:type=ClusterManager, komerzia-core.cuba:type=ScriptingManager, komerzia-core.cuba:type=ServerInfo, komerzia-core.cuba:type=Scheduling, komerzia-core.cuba:type=PasswordEncryptionSupport, komerzia-core.cuba:type=JmxNodeIdentifier, komerzia-core.cuba:type=JmxLogControl, komerzia-core.cuba:type=ClassLoaderManager, komerzia-core.cuba:type=StatisticsCounter, komerzia-core.cuba:type=BruteForceProtection, komerzia-core.cuba:type=QueryCacheSupport]
12:21:38.144 INFO  c.h.cuba.core.sys.jmx.MBeanExporter     - Registering beans for JMX exposure: [komerzia-core.reports:type=CubaOfficeIntegration, komerzia-core.reports:type=ReportImportExport, komerzia-core.reports:type=ReportingMigrator]
12:21:38.179 INFO  c.h.cuba.core.sys.jmx.MBeanExporter     - Registering beans for JMX exposure: [komerzia-core.bpm:type=MessagesCache]
12:21:38.196 INFO  c.h.cuba.core.sys.jmx.MBeanExporter     - Registering beans for JMX exposure: [komerzia-core.fts:type=FtsManager, komerzia-core.fts:type=QueryCacheStats]
12:21:38.232 INFO  c.h.cuba.core.sys.MetadataImpl          - Initializing metadata
12:21:38.701 INFO  c.h.cuba.core.sys.MetadataImpl          - Metadata initialized in 468 ms
12:21:39.649 WARN  c.h.c.c.sys.dbupdate.DbUpdaterEngine    - 
==========================================================================
WARNING: The application contains unapplied update scripts for data store:

60-KomerziaERP/update/postgres/21/08/210802-2-updateRmaProductos01.sql
60-KomerziaERP/update/postgres/21/08/210802-2-updateRmaProductos02.sql
60-KomerziaERP/update/postgres/21/08/210802-2-updateRmaProductos03.sql
60-KomerziaERP/update/postgres/21/08/210802-2-updateTareasParte.sql
60-KomerziaERP/update/postgres/21/08/210802-2-updateTarifaCondiciones.sql
60-KomerziaERP/update/postgres/21/08/210802-2-updateTercero.sql
60-KomerziaERP/update/postgres/21/08/210802-2-updateTercero01.sql
60-KomerziaERP/update/postgres/21/08/210802-2-updateTipoContrato.sql
60-KomerziaERP/update/postgres/21/08/210802-2-updateVencimientos.sql

Set 'cuba.automaticDatabaseUpdate' application property to 'true'
to initialize and update data store on startup.
==========================================================================
12:21:39.833 WARN  c.h.c.c.s.p.m.FetchTypeMappingProcessor - EAGER fetch type detected for reference field vencimiento of entity Recibo; Set to LAZY
12:21:39.889 WARN  c.h.c.c.s.p.m.FetchTypeMappingProcessor - EAGER fetch type detected for reference field documentoComercialFacturaDeVenta of entity Vencimientos; Set to LAZY
12:21:41.536 INFO  c.h.cuba.core.app.ConfigStorage         - Loading DB-stored app properties cache
12:21:41.593 INFO  c.h.c.c.s.DefaultPermissionValuesConfig - Initializing default permission values
12:21:41.698 INFO  c.h.c.s.a.AuthenticationManagerBean     - Logged in: 9e4d6fd5-f116-4164-fc0e-dca85d62cf7a [anonymous]
12:21:41.699 INFO  c.h.c.c.s.AbstractWebAppContextLoader   - AppContext started
12:21:41.703 INFO  c.h.c.c.sys.remoting.RemotingServlet    - Initializing Servlet 'remoting'
12:21:41.741 INFO  c.h.c.c.s.r.RemoteServicesBeanCreator   - Configuring remote services
12:21:41.954 INFO  c.h.c.s.a.r.PredefinedRoleDefinitionRepository- Initializing predefined role definitions
12:21:41.954 INFO  c.h.c.s.a.r.PredefinedRoleDefinitionRepository- Security subsystem version is 1. Predefined role definitions will not be loaded.
12:21:42.042 INFO  c.h.c.s.a.AuthenticationManagerBean     - Logged in: bf896ee2-0f7e-4031-7827-b57284953652 [admin]
12:21:42.293 INFO  c.h.c.c.sys.remoting.RemotingServlet    - Completed initialization in 590 ms
12:21:42.313 WARN  c.haulmont.fts.core.sys.ConfigLoader    - Entity DocumentoComercialDeCompra is not persistent, ignore it
ago 02, 2021 12:21:42 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMACIÓN: Deployment of web application directory [C:\Dev\komerziaerp-cuba\deploy\tomcat\webapps\komerzia-core] has finished in [20.151] ms
ago 02, 2021 12:21:42 PM org.apache.coyote.AbstractProtocol start
INFORMACIÓN: Starting ProtocolHandler ["http-nio-8080"]
ago 02, 2021 12:21:42 PM org.apache.catalina.startup.Catalina start
INFORMACIÓN: Server startup in [34574] milliseconds
12:22:13.185 INFO  c.h.c.c.sys.AbstractViewRepository      - Initializing views

Still geting the error.

imagen

Could you please clarify which version you upgraded from? And what is the current version? I’ll try to reproduce the issue.

Gleb

Doing a fast checkout on my git, If I remember correctly I started migratin from 6.10.15

buildscript {
    ext.cubaVersion = '6.10.15'
    repositories {
        maven {
            url 'https://repo.cuba-platform.com/content/groups/work'
            credentials {
                username(rootProject.hasProperty('repoUser') ? rootProject['repoUser'] : 'cuba')
                password(rootProject.hasProperty('repoPass') ? rootProject['repoPass'] : 'cuba123')
            }
        }

I started create a new branch and started again, and this is what I’m doing.

  • I imported gradle project into Intellij, and upgraded to latest 6.10 available.
  • I changed Cuba version to latest v7.
  • I solved all incompatible types casting with the right value.

Now, I have to deal with this errors. Anyway, any of them is related to login screen. In the past I commented some of this lines giving errors, to fix it later.

* Multiserie.java
* package javax.ejb does not exist
* reference to close is ambiguous both method close(CloseAction) in Screen and method close(StandardOutcome) in Screen match
* ApunteContableEdit.java
* cannot find symbol method getValue()
* cannot find symbol method getValue()
* ConciliacionesCabeceraBrowse.java
* reference to close is ambiguous both method close(CloseAction) in Screen and method close(StandardOutcome) in Screen match
* Emailconfirm.java
* reference to close is ambiguous both method close(CloseAction) in Screen and method close(StandardOutcome) in Screen match
* reference to close is ambiguous both method close(CloseAction) in Screen and method close(StandardOutcome) in Screen match
* Facturarservicios.java
* cannot find symbol method compareTo(Object)
* ExtMainwindow.java
* incompatible types: Embedded cannot be converted to Image
* MovimientosEdit.java
* cannot find symbol method getValue()
* Calendario.java
* cannot find symbol method getValue()
* Importar.java
* cannot find symbol method compareTo(Object)
* VencimientosEdit.java
* reference to close is ambiguous both method close(CloseAction) in Screen and method close(StandardOutcome) in Screen match
* VencimientosPagosEdit.java
* reference to close is ambiguous both method close(CloseAction) in Screen and method close(StandardOutcome) in Screen match

Well, Looks like after this try, I got it working. I casted the last errors of my previous message, and now project builds, and offers me login, now crash in several places like trying to openin an edit screen from a browse screen and I will investigate, but this is a forward step.