PSQL errors after updating v6.5

HI,

To make use of the editable datagrid I updated to version 6.5 of both the studio and platform. After recompiling it turned out that many of my screens were broken - especially in styling. But I also had a number of errors regarding PSQL (see below).

Luckily I’m using git and could revert to the 6.4.2 platform version I was running. This worked well except for the PSQL error which keeps popping up. So, I cleaned the database (I didn’t have a backup of the database) to start all over again. But still, the PSQL error remains.

Needless to say that this is a major issue for me. Any help appreciated.

Error:
PSQLException: ERROR: column t1.int_entity_id does not exist
Position: 222

Details:


com.haulmont.cuba.core.global.RemoteException:
---
javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.2.cuba15): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: ERROR: column t1.int_entity_id does not exist
  Position: 222
Error Code: 0
Call: SELECT t1.ID, t1.BOOLEAN_VALUE, t1.CODE, t1.CREATE_TS, t1.CREATED_BY, t1.DATE_VALUE, t1.DELETE_TS, t1.DELETED_BY, t1.DOUBLE_VALUE, t1.INTEGER_VALUE, t1.STRING_VALUE, t1.UPDATE_TS, t1.UPDATED_BY, t1.VERSION, t1.ENTITY_ID, t1.INT_ENTITY_ID, t1.LONG_ENTITY_ID, t1.STRING_ENTITY_ID, t1.ENTITY_VALUE, t1.INT_ENTITY_VALUE, t1.LONG_ENTITY_VALUE, t1.STRING_ENTITY_VALUE, t1.CATEGORY_ATTR_ID, t1.PARENT_ID, t0.ID, t0.CATEGORY_ENTITY_TYPE, t0.CODE, t0.CREATE_TS, t0.CREATED_BY, t0.DATA_TYPE, t0.DEFAULT_BOOLEAN, t0.DEFAULT_DATE, t0.DEFAULT_DATE_IS_CURRENT, t0.DEFAULT_DOUBLE, t0.DEFAULT_INT, t0.DEFAULT_STRING, t0.DELETE_TS, t0.DELETED_BY, t0.ENTITY_CLASS, t0.ENUMERATION, t0.FILTER_XML, t0.IS_COLLECTION, t0.JOIN_CLAUSE, t0.LOOKUP, t0.NAME, t0.ORDER_NO, t0.REQUIRED, t0.ROWS_COUNT, t0.SCREEN, t0.TARGET_SCREENS, t0.UPDATE_TS, t0.UPDATED_BY, t0.VERSION, t0.WHERE_CLAUSE, t0.WIDTH, t0.DEFAULT_ENTITY_VALUE, t0.DEFAULT_INT_ENTITY_VALUE, t0.DEFAULT_LONG_ENTITY_VALUE, t0.DEFAULT_STR_ENTITY_VALUE, t0.CATEGORY_ID, t2.ID, t2.DISCRIMINATOR, t2.CREATE_TS, t2.CREATED_BY, t2.DELETE_TS, t2.DELETED_BY, t2.ENTITY_TYPE, t2.IS_DEFAULT, t2.NAME, t2.SPECIAL, t2.UPDATE_TS, t2.UPDATED_BY, t2.VERSION FROM SYS_ATTR_VALUE t1 LEFT OUTER JOIN SYS_CATEGORY_ATTR t0 ON (t0.ID = t1.CATEGORY_ATTR_ID) LEFT OUTER JOIN SYS_CATEGORY t2 ON (t2.ID = t0.CATEGORY_ID) WHERE (((t1.ENTITY_ID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)) AND (t1.PARENT_ID IS NULL)) AND (t1.DELETE_TS IS NULL))
	bind => [5073902b-0976-41b9-96da-1841e29051dc, aca2ebd3-c85e-4964-81a1-b2a72c0da9a0, 4b4d5d6a-57f9-4a46-92fe-9a5db92eb037, fbfec283-542f-407e-b5e4-4e5b92459b12, 05bddc4c-fd98-4ae6-b920-2dba45c38271, 340b6cfe-aa83-479e-8457-c2bb09e686c8, e22b125f-19fb-44c0-be34-c912712975ea, 2fd4db65-4e40-4475-90fd-bfe548f8ab69, f72e32ee-8046-4241-933f-8bc22b992053, cfc3e1d0-a763-4644-985f-0a8979eac638, 8a16b235-ff6c-47a4-839b-cf6248ad15ee, 6d158e5c-940b-4ba0-80c2-bc4a3e7cc743, 14eb2b2d-33b2-4b71-a779-a3e57cd2c87e, c5bcae4e-ca3f-487e-8703-3f83a156b9d3, 3be59fc5-b131-4efe-9bf5-045274c524f4, 8a42d39c-ba78-4f8c-90f6-d1e9cfa5be0c, c937fdc3-18e8-47f3-9e34-e1ff3165d67d, 266dd388-ce84-428e-ba4a-a45a55005f23]
Query: ReadAllQuery(referenceClass=CategoryAttributeValue sql="SELECT t1.ID, t1.BOOLEAN_VALUE, t1.CODE, t1.CREATE_TS, t1.CREATED_BY, t1.DATE_VALUE, t1.DELETE_TS, t1.DELETED_BY, t1.DOUBLE_VALUE, t1.INTEGER_VALUE, t1.STRING_VALUE, t1.UPDATE_TS, t1.UPDATED_BY, t1.VERSION, t1.ENTITY_ID, t1.INT_ENTITY_ID, t1.LONG_ENTITY_ID, t1.STRING_ENTITY_ID, t1.ENTITY_VALUE, t1.INT_ENTITY_VALUE, t1.LONG_ENTITY_VALUE, t1.STRING_ENTITY_VALUE, t1.CATEGORY_ATTR_ID, t1.PARENT_ID, t0.ID, t0.CATEGORY_ENTITY_TYPE, t0.CODE, t0.CREATE_TS, t0.CREATED_BY, t0.DATA_TYPE, t0.DEFAULT_BOOLEAN, t0.DEFAULT_DATE, t0.DEFAULT_DATE_IS_CURRENT, t0.DEFAULT_DOUBLE, t0.DEFAULT_INT, t0.DEFAULT_STRING, t0.DELETE_TS, t0.DELETED_BY, t0.ENTITY_CLASS, t0.ENUMERATION, t0.FILTER_XML, t0.IS_COLLECTION, t0.JOIN_CLAUSE, t0.LOOKUP, t0.NAME, t0.ORDER_NO, t0.REQUIRED, t0.ROWS_COUNT, t0.SCREEN, t0.TARGET_SCREENS, t0.UPDATE_TS, t0.UPDATED_BY, t0.VERSION, t0.WHERE_CLAUSE, t0.WIDTH, t0.DEFAULT_ENTITY_VALUE, t0.DEFAULT_INT_ENTITY_VALUE, t0.DEFAULT_LONG_ENTITY_VALUE, t0.DEFAULT_STR_ENTITY_VALUE, t0.CATEGORY_ID, t2.ID, t2.DISCRIMINATOR, t2.CREATE_TS, t2.CREATED_BY, t2.DELETE_TS, t2.DELETED_BY, t2.ENTITY_TYPE, t2.IS_DEFAULT, t2.NAME, t2.SPECIAL, t2.UPDATE_TS, t2.UPDATED_BY, t2.VERSION FROM SYS_ATTR_VALUE t1 LEFT OUTER JOIN SYS_CATEGORY_ATTR t0 ON (t0.ID = t1.CATEGORY_ATTR_ID) LEFT OUTER JOIN SYS_CATEGORY t2 ON (t2.ID = t0.CATEGORY_ID) WHERE (((t1.ENTITY_ID IN ?) AND (t1.PARENT_ID IS NULL)) AND (t1.DELETE_TS IS NULL))")
---
org.eclipse.persistence.exceptions.DatabaseException: 
Internal Exception: org.postgresql.util.PSQLException: ERROR: column t1.int_entity_id does not exist
  Position: 222
Error Code: 0
Call: SELECT t1.ID, t1.BOOLEAN_VALUE, t1.CODE, t1.CREATE_TS, t1.CREATED_BY, t1.DATE_VALUE, t1.DELETE_TS, t1.DELETED_BY, t1.DOUBLE_VALUE, t1.INTEGER_VALUE, t1.STRING_VALUE, t1.UPDATE_TS, t1.UPDATED_BY, t1.VERSION, t1.ENTITY_ID, t1.INT_ENTITY_ID, t1.LONG_ENTITY_ID, t1.STRING_ENTITY_ID, t1.ENTITY_VALUE, t1.INT_ENTITY_VALUE, t1.LONG_ENTITY_VALUE, t1.STRING_ENTITY_VALUE, t1.CATEGORY_ATTR_ID, t1.PARENT_ID, t0.ID, t0.CATEGORY_ENTITY_TYPE, t0.CODE, t0.CREATE_TS, t0.CREATED_BY, t0.DATA_TYPE, t0.DEFAULT_BOOLEAN, t0.DEFAULT_DATE, t0.DEFAULT_DATE_IS_CURRENT, t0.DEFAULT_DOUBLE, t0.DEFAULT_INT, t0.DEFAULT_STRING, t0.DELETE_TS, t0.DELETED_BY, t0.ENTITY_CLASS, t0.ENUMERATION, t0.FILTER_XML, t0.IS_COLLECTION, t0.JOIN_CLAUSE, t0.LOOKUP, t0.NAME, t0.ORDER_NO, t0.REQUIRED, t0.ROWS_COUNT, t0.SCREEN, t0.TARGET_SCREENS, t0.UPDATE_TS, t0.UPDATED_BY, t0.VERSION, t0.WHERE_CLAUSE, t0.WIDTH, t0.DEFAULT_ENTITY_VALUE, t0.DEFAULT_INT_ENTITY_VALUE, t0.DEFAULT_LONG_ENTITY_VALUE, t0.DEFAULT_STR_ENTITY_VALUE, t0.CATEGORY_ID, t2.ID, t2.DISCRIMINATOR, t2.CREATE_TS, t2.CREATED_BY, t2.DELETE_TS, t2.DELETED_BY, t2.ENTITY_TYPE, t2.IS_DEFAULT, t2.NAME, t2.SPECIAL, t2.UPDATE_TS, t2.UPDATED_BY, t2.VERSION FROM SYS_ATTR_VALUE t1 LEFT OUTER JOIN SYS_CATEGORY_ATTR t0 ON (t0.ID = t1.CATEGORY_ATTR_ID) LEFT OUTER JOIN SYS_CATEGORY t2 ON (t2.ID = t0.CATEGORY_ID) WHERE (((t1.ENTITY_ID IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)) AND (t1.PARENT_ID IS NULL)) AND (t1.DELETE_TS IS NULL))
	bind => [5073902b-0976-41b9-96da-1841e29051dc, aca2ebd3-c85e-4964-81a1-b2a72c0da9a0, 4b4d5d6a-57f9-4a46-92fe-9a5db92eb037, fbfec283-542f-407e-b5e4-4e5b92459b12, 05bddc4c-fd98-4ae6-b920-2dba45c38271, 340b6cfe-aa83-479e-8457-c2bb09e686c8, e22b125f-19fb-44c0-be34-c912712975ea, 2fd4db65-4e40-4475-90fd-bfe548f8ab69, f72e32ee-8046-4241-933f-8bc22b992053, cfc3e1d0-a763-4644-985f-0a8979eac638, 8a16b235-ff6c-47a4-839b-cf6248ad15ee, 6d158e5c-940b-4ba0-80c2-bc4a3e7cc743, 14eb2b2d-33b2-4b71-a779-a3e57cd2c87e, c5bcae4e-ca3f-487e-8703-3f83a156b9d3, 3be59fc5-b131-4efe-9bf5-045274c524f4, 8a42d39c-ba78-4f8c-90f6-d1e9cfa5be0c, c937fdc3-18e8-47f3-9e34-e1ff3165d67d, 266dd388-ce84-428e-ba4a-a45a55005f23]
Query: ReadAllQuery(referenceClass=CategoryAttributeValue sql="SELECT t1.ID, t1.BOOLEAN_VALUE, t1.CODE, t1.CREATE_TS, t1.CREATED_BY, t1.DATE_VALUE, t1.DELETE_TS, t1.DELETED_BY, t1.DOUBLE_VALUE, t1.INTEGER_VALUE, t1.STRING_VALUE, t1.UPDATE_TS, t1.UPDATED_BY, t1.VERSION, t1.ENTITY_ID, t1.INT_ENTITY_ID, t1.LONG_ENTITY_ID, t1.STRING_ENTITY_ID, t1.ENTITY_VALUE, t1.INT_ENTITY_VALUE, t1.LONG_ENTITY_VALUE, t1.STRING_ENTITY_VALUE, t1.CATEGORY_ATTR_ID, t1.PARENT_ID, t0.ID, t0.CATEGORY_ENTITY_TYPE, t0.CODE, t0.CREATE_TS, t0.CREATED_BY, t0.DATA_TYPE, t0.DEFAULT_BOOLEAN, t0.DEFAULT_DATE, t0.DEFAULT_DATE_IS_CURRENT, t0.DEFAULT_DOUBLE, t0.DEFAULT_INT, t0.DEFAULT_STRING, t0.DELETE_TS, t0.DELETED_BY, t0.ENTITY_CLASS, t0.ENUMERATION, t0.FILTER_XML, t0.IS_COLLECTION, t0.JOIN_CLAUSE, t0.LOOKUP, t0.NAME, t0.ORDER_NO, t0.REQUIRED, t0.ROWS_COUNT, t0.SCREEN, t0.TARGET_SCREENS, t0.UPDATE_TS, t0.UPDATED_BY, t0.VERSION, t0.WHERE_CLAUSE, t0.WIDTH, t0.DEFAULT_ENTITY_VALUE, t0.DEFAULT_INT_ENTITY_VALUE, t0.DEFAULT_LONG_ENTITY_VALUE, t0.DEFAULT_STR_ENTITY_VALUE, t0.CATEGORY_ID, t2.ID, t2.DISCRIMINATOR, t2.CREATE_TS, t2.CREATED_BY, t2.DELETE_TS, t2.DELETED_BY, t2.ENTITY_TYPE, t2.IS_DEFAULT, t2.NAME, t2.SPECIAL, t2.UPDATE_TS, t2.UPDATED_BY, t2.VERSION FROM SYS_ATTR_VALUE t1 LEFT OUTER JOIN SYS_CATEGORY_ATTR t0 ON (t0.ID = t1.CATEGORY_ATTR_ID) LEFT OUTER JOIN SYS_CATEGORY t2 ON (t2.ID = t0.CATEGORY_ID) WHERE (((t1.ENTITY_ID IN ?) AND (t1.PARENT_ID IS NULL)) AND (t1.DELETE_TS IS NULL))")
---
org.postgresql.util.PSQLException: ERROR: column t1.int_entity_id does not exist
  Position: 222
	at com.haulmont.cuba.core.sys.ServiceInterceptor.aroundInvoke(ServiceInterceptor.java:127)
	at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:629)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618)
	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
	at com.sun.proxy.$Proxy219.loadList(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.haulmont.cuba.core.sys.remoting.LocalServiceInvokerImpl.invoke(LocalServiceInvokerImpl.java:94)
	at com.haulmont.cuba.web.sys.remoting.LocalServiceProxy$LocalServiceInvocationHandler.invoke(LocalServiceProxy.java:148)
	at com.sun.proxy.$Proxy25.loadList(Unknown Source)
	at com.haulmont.cuba.client.sys.DataManagerClientImpl.loadList(DataManagerClientImpl.java:53)
	at com.haulmont.cuba.gui.data.impl.GenericDataSupplier.loadList(GenericDataSupplier.java:102)
	at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.loadData(CollectionDatasourceImpl.java:587)
	at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.refresh(CollectionDatasourceImpl.java:146)
	at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.refresh(CollectionDatasourceImpl.java:106)
	at com.haulmont.cuba.gui.app.core.entityinspector.EntityInspectorBrowse.lambda$createButtonsPanel$4(EntityInspectorBrowse.java:370)
	at com.haulmont.bali.events.EventRouter.fireEvent(EventRouter.java:45)
	at com.haulmont.cuba.web.gui.components.WebFileUploadField.fireFileUploadSucceed(WebFileUploadField.java:443)
	at com.haulmont.cuba.web.gui.components.WebFileUploadField.lambda$initUploadButton$982e378a$1(WebFileUploadField.java:264)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
	at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:200)
	at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:163)
	at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1037)
	at com.haulmont.cuba.web.toolkit.ui.CubaFileUpload.fireUploadSuccess(CubaFileUpload.java:474)
	at com.haulmont.cuba.web.toolkit.ui.CubaFileUpload$1.fileUploaded(CubaFileUpload.java:72)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158)
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)
	at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:444)
	at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:409)
	at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:274)
	at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:90)
	at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)
	at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1422)
	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:385)
	at com.haulmont.cuba.web.sys.CubaApplicationServlet.serviceAppRequest(CubaApplicationServlet.java:278)
	at com.haulmont.cuba.web.sys.CubaApplicationServlet.service(CubaApplicationServlet.java:187)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at com.haulmont.cuba.web.sys.CubaHttpFilter.handleNotFiltered(CubaHttpFilter.java:108)
	at com.haulmont.cuba.web.sys.CubaHttpFilter.doFilter(CubaHttpFilter.java:95)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)

BTW: It seems to occur on almost all queries.

Looks like update scripts haven’t been executed on your DB.

Well, after cleaning the database and doing the update from Studio I thought it should be ok. Or do you mean something different?

Given the column int_entity_id has been added to the platform in version 6.5 and that is the version you have problems with, I would suggest that SQL scripts that are supposed to update your DB has not been run. Try gradle clean. We do not use Studio and use different DB updated mechanism, so the problem might be in Studio as well…

I did the clean already before but to no avail. The behavior stays the same.

From you comments I understand that somehow something from 6.5 is still included in my reversed 6.4.2 build? Could it be that my repository does not contain all required information and that some is still left from 6.5?

I do know that a number of files in my .idea/libraries directory are not included in CVS (which IntelliJ sometimes makes a note about). Could they be related to this?

Any suggestions where to look for the cause of this?

I saw a difference in my repository on web-spring.xml that I could not explain:

Currently:

Was:

Could that be related?

It is most probably not related, but it needs reverting - you should change it back.

As for DB - sorry, I misunderstood, I thought your DB was not working when on 6.5, but is working again on 6.4.2. Now I understand it is the other way around. Basically what you are saying seems probable - in some way the code from 6.5.0 still stays in your repo. What I do not uderstand is why did gradle clean not delete all the rest. Did you check platform cubaVersion in build.gradle?

Yep I checked the cuba version which states 6.4.2. I’ve included the file for your reference.

While trying to see if the web-spring.xml modification made any difference, I reverted it, restarted the application but had an error (see below).

The error is related to me modifying the web-spring.xml but interestingly, there are some 6.5.0 jar files included in the stacktrace!

But now I’m not sure what to do next. IntelliJ shows none of them in the ‘external libraries’ of my project. But building the project does include them anyway it seems…

Where to look next?

Entire startup log including error:


Listening for transport dt_socket at address: 8787
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/8.5.9
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Dec 5 2016 20:18:12 UTC
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         8.5.9.0
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 10
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            10.0
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:\Program Files\Java\jdk1.8.0_121\jre
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_121-b13
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         C:\Users\Berend Tel\studio-projects\Base27\build\tomcat
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         C:\Users\Berend Tel\studio-projects\Base27\build\tomcat
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=C:\Users\Berend Tel\studio-projects\Base27\build\tomcat\conf\logging.properties
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
apr 26, 2017 4:27:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
apr 26, 2017 4:27:12 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
apr 26, 2017 4:27:12 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xmx512m
apr 26, 2017 4:27:12 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
apr 26, 2017 4:27:12 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dlogback.configurationFile=../conf/logback.xml
apr 26, 2017 4:27:12 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcom.sun.management.jmxremote
apr 26, 2017 4:27:12 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\Users\Berend Tel\studio-projects\Base27\build\tomcat
apr 26, 2017 4:27:12 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Users\Berend Tel\studio-projects\Base27\build\tomcat
apr 26, 2017 4:27:12 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=C:\Users\Berend Tel\studio-projects\Base27\build\tomcat\temp
apr 26, 2017 4:27:12 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.8.0_121\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files\Git\cmd;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\Berend Tel\AppData\Local\Microsoft\WindowsApps;;.
apr 26, 2017 4:27:13 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
apr 26, 2017 4:27:13 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
apr 26, 2017 4:27:13 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
apr 26, 2017 4:27:13 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
apr 26, 2017 4:27:13 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2319 ms
apr 26, 2017 4:27:13 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
apr 26, 2017 4:27:13 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.5.9
apr 26, 2017 4:27:13 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Berend Tel\studio-projects\Base27\build\tomcat\webapps\app
apr 26, 2017 4:27:14 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing AtmosphereFramework
apr 26, 2017 4:27:14 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework addAtmosphereHandler
INFO: Installed AtmosphereHandler com.vaadin.server.communication.PushAtmosphereHandler mapped to context-path: /*
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework addAtmosphereHandler
INFO: Installed the following AtmosphereInterceptor mapped to AtmosphereHandler com.vaadin.server.communication.PushAtmosphereHandler
apr 26, 2017 4:27:15 PM org.atmosphere.util.IOUtils readServiceFile
INFO: META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework autoConfigureService
INFO: Atmosphere is using org.atmosphere.util.VoidAnnotationProcessor for processing annotation
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework initWebSocket
INFO: Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
apr 26, 2017 4:27:15 PM org.atmosphere.container.JSR356AsyncSupport <init>
INFO: JSR 356 Mapping path /{path}
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework configureAtmosphereInterceptor
INFO: Installing Default AtmosphereInterceptors
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.CorsInterceptor : CORS Interceptor Support
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.CacheHeadersInterceptor : Default Response's Headers Interceptor
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework configureAtmosphereInterceptor
INFO: Dropping Interceptor org.atmosphere.interceptor.HeartbeatInterceptor
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework newAInterceptor
INFO:   org.atmosphere.interceptor.IdleResourceInterceptor : org.atmosphere.interceptor.IdleResourceInterceptor
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework configureAtmosphereInterceptor
INFO: Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Using BroadcasterCache: org.atmosphere.cache.UUIDBroadcasterCache
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Default Broadcaster Class: org.atmosphere.cpr.DefaultBroadcaster
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Broadcaster Polling Wait Time 100
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Shared ExecutorService supported: true
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Messaging Thread Pool Size: Unlimited
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Async I/O Thread Pool Size: 200
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Invoke AtmosphereInterceptor on WebSocket message true
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: HttpSession supported: true
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Atmosphere is using DefaultAtmosphereObjectFactory for dependency injection and object creation
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Atmosphere is using async support: org.atmosphere.container.JSR356AsyncSupport running under container: Apache Tomcat/8.5.9 using javax.servlet/3.0 and jsr356/WebSocket API
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework info
INFO: Atmosphere Framework 2.2.9.vaadin2.cuba0 started.
apr 26, 2017 4:27:15 PM org.atmosphere.cpr.AtmosphereFramework interceptor
INFO: Installed AtmosphereInterceptor  Track Message Size Interceptor using | with priority BEFORE_DEFAULT
16:27:15.684 INFO  c.h.cuba.core.sys.AppComponents - Using app components: [com.haulmont.cuba, com.haulmont.fts, com.haulmont.reports, com.haulmont.charts]
16:27:15.732 INFO  c.h.cuba.web.sys.WebAppContextLoader - Loading app properties from classpath:cuba-web-app.properties
16:27:15.735 INFO  c.h.cuba.web.sys.WebAppContextLoader - Loading app properties from classpath:com/axxemble/base27/web-app.properties
16:27:16.061 INFO  c.h.c.c.s.CubaClassPathXmlApplicationContext - Refreshing com.haulmont.cuba.core.sys.CubaClassPathXmlApplicationContext@2fadbcee: startup date [Wed Apr 26 16:27:16 CEST 2017]; root of context hierarchy
16:27:19.477 INFO  c.h.c.c.s.r.d.StaticServerSelector - Server URL(s): http://localhost:8080/app-core
16:27:19.506 WARN  c.h.c.c.s.CubaClassPathXmlApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.haulmont.cuba.web.sys.remoting.WebRemoteProxyBeanCreator#0' defined in class path resource [com/axxemble/base27/web-spring.xml]: Cannot resolve reference to bean 'cuba_clusterInvocationSupport' while setting bean property 'clusterInvocationSupport'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cuba_clusterInvocationSupport' is defined
16:27:19.528 ERROR c.h.cuba.web.sys.WebAppContextLoader - Error initializing application
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.haulmont.cuba.web.sys.remoting.WebRemoteProxyBeanCreator#0' defined in class path resource [com/axxemble/base27/web-spring.xml]: Cannot resolve reference to bean 'cuba_clusterInvocationSupport' while setting bean property 'clusterInvocationSupport'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cuba_clusterInvocationSupport' is defined
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1486) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:179) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at com.haulmont.cuba.core.sys.CubaClassPathXmlApplicationContext.<init>(CubaClassPathXmlApplicationContext.java:27) ~[cuba-global-6.5.0.jar:6.5.0]
        at com.haulmont.cuba.core.sys.AbstractAppContextLoader.createApplicationContext(AbstractAppContextLoader.java:79) ~[cuba-global-6.5.0.jar:6.5.0]
        at com.haulmont.cuba.core.sys.AbstractAppContextLoader.initAppContext(AbstractAppContextLoader.java:56) ~[cuba-global-6.5.0.jar:6.5.0]
        at com.haulmont.cuba.core.sys.AbstractWebAppContextLoader.contextInitialized(AbstractWebAppContextLoader.java:73) ~[cuba-global-6.5.0.jar:6.5.0]
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) [catalina.jar:8.5.9]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189) [catalina.jar:8.5.9]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.9]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) [catalina.jar:8.5.9]
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) [catalina.jar:8.5.9]
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.9]
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107) [catalina.jar:8.5.9]
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841) [catalina.jar:8.5.9]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_121]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cuba_clusterInvocationSupport' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:677) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1180) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
        ... 31 common frames omitted
apr 26, 2017 4:27:19 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.haulmont.cuba.web.sys.WebAppContextLoader
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.haulmont.cuba.web.sys.remoting.WebRemoteProxyBeanCreator#0' defined in class path resource [com/axxemble/base27/web-spring.xml]: Cannot resolve reference to bean 'cuba_clusterInvocationSupport' while setting bean property 'clusterInvocationSupport'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cuba_clusterInvocationSupport' is defined
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1486)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:179)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:681)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:523)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
        at com.haulmont.cuba.core.sys.CubaClassPathXmlApplicationContext.<init>(CubaClassPathXmlApplicationContext.java:27)
        at com.haulmont.cuba.core.sys.AbstractAppContextLoader.createApplicationContext(AbstractAppContextLoader.java:79)
        at com.haulmont.cuba.core.sys.AbstractAppContextLoader.initAppContext(AbstractAppContextLoader.java:56)
        at com.haulmont.cuba.core.sys.AbstractWebAppContextLoader.contextInitialized(AbstractWebAppContextLoader.java:73)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'cuba_clusterInvocationSupport' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:677)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1180)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
        ... 31 more

apr 26, 2017 4:27:19 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
apr 26, 2017 4:27:19 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/app] startup failed due to previous errors
apr 26, 2017 4:27:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Berend Tel\studio-projects\Base27\build\tomcat\webapps\app has finished in 5,727 ms
apr 26, 2017 4:27:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Berend Tel\studio-projects\Base27\build\tomcat\webapps\app-core
apr 26, 2017 4:27:19 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing AtmosphereFramework
apr 26, 2017 4:27:19 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
apr 26, 2017 4:27:39 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'remoting'
apr 26, 2017 4:27:40 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Berend Tel\studio-projects\Base27\build\tomcat\webapps\app-core has finished in 20,869 ms
apr 26, 2017 4:27:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [http-nio-8080]
apr 26, 2017 4:27:40 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ajp-nio-8009]
apr 26, 2017 4:27:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 26696 ms

build.gradle (8.2K)

Hmm… My build\tomcat\webapps\app(-core)\WEB-INF\lib directories contain 6.5.0 jar files. That is not right. Is there a way to clean this up in the right way? I actually thought the build would do that…

Great, we got it! Was going to suggest to look in local tomcat. Remove the whole folder build/tomcat and then run gradle setupTomcat and you should be fine.

Yep that did the trick - it is running ok now. Thanks a lot -especially for the quick support - really great.

Was this something I should have know when reverting the sources?

I really cannot say. As I am not part of the CUBA team - just a user - and we do not use CUBA studio. But generally, when you have issues like this, the last resort is to check, whether right libraries are in the local tomcat directory.

Ok - I thought initially that you were not part of the Cuba team but you made such good comments and provided quick support that I was to believe you were.

Thanks again!

Good to hear that some problems are getting solved without CUBA team - thanks Jan!

As for the problem with versions, when you reverted your sources back to 6.4, the 6.5 jars were still present in your local Tomcat. When you built and deployed 6.4, our deployment procedure resolved version conflicts giving priority to the higher version, so your 6.5 jars had not been replaced. The clean task also doesn’t help here, because it doesn’t clean Tomcat (intentionally).

So after playing with upgrading/downgrading you should use either undeploy task which is available in Run > Undeploy, it does exactly this - removes shared/lib and webapps folders from Tomcat. Or you can just remove the whole Tomcat if you are sure you didn’t make any manual modifications in it.

Thanks for getting back on this. Running the undeploy was something I hadn’t tried nor considered. But good to know!