Problem upgrading

#1

Hello!

We are trying to upgrade from 2.6.3 to 2.6.6.

Now our application throws an exception. It's generating endless log files. I had to turn up Xmx to even see it before the JVM crashes. (Our web framework tried to show the exception on the client) I did a full rebuild of the project. It's using the right version of the enhancer. There are no code errors.

If I change everything back to 2.6.3 it starts to work again.

Any ideas?

Best Regards

 

Here's a part of the output:

org.springframework.orm.jpa.JpaSystemException: Failed to set reference value of field property at.co.pjm.tracker.persistence.Unit.channelConfigurationSets using reflection; nested exception is com.objectdb.o._PersistenceException: Failed to set reference value of field property at.co.pjm.tracker.persistence.Unit.channelConfigurationSets using reflection
at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:418) ~[spring-orm-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect.ajc$afterThrowing$org_springframework_orm_jpa_aspectj_JpaExceptionTranslatorAspect$1$18a1ac9(JpaExceptionTranslatorAspect.aj:37) ~[spring-aspects-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at at.co.pjm.tracker.data.impl.TrackerUserDAO.findByName_aroundBody0(TrackerUserDAO.java:51) ~[WaggonTrackerRepository-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
at at.co.pjm.tracker.data.impl.TrackerUserDAO$AjcClosure1.run(TrackerUserDAO.java:1) ~[WaggonTrackerRepository-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96cproceed(AbstractTransactionAspect.aj:66) ~[spring-aspects-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.transaction.aspectj.AbstractTransactionAspect$AbstractTransactionAspect$1.proceedWithInvocation(AbstractTransactionAspect.aj:72) ~[spring-aspects-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) ~[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:70) ~[spring-aspects-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at at.co.pjm.tracker.data.impl.TrackerUserDAO.findByName(TrackerUserDAO.java:47) ~[WaggonTrackerRepository-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
at at.co.pjm.tracker.data.impl.TrackerUserDAO$$FastClassBySpringCGLIB$$669c0331.invoke(<generated>) ~[WaggonTrackerRepository-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:718) ~[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136) ~[spring-tx-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:654) ~[spring-aop-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at at.co.pjm.tracker.data.impl.TrackerUserDAO$$EnhancerBySpringCGLIB$$7f6f1787.findByName(<generated>) ~[WaggonTrackerRepository-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
at at.co.pjm.tracker.webinterface.usermanagement.UserManager.setupUserDB(UserManager.java:77) ~[classes/:na]
at at.co.pjm.tracker.webinterface.usermanagement.UserManager.authenticateUser(UserManager.java:47) ~[classes/:na]
at at.co.pjm.tracker.webinterface.gui.MainWindow.login(MainWindow.java:416) ~[classes/:na]
at at.co.pjm.tracker.webinterface.gui.LoginPanel$1.buttonClick(LoginPanel.java:65) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_72]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_72]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_72]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72]
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508) ~[vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:198) ~[vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161) ~[vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1003) ~[vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.ui.Button.fireClick(Button.java:393) ~[vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.ui.Button$1.click(Button.java:61) ~[vaadin-server-7.5.6.jar:7.5.6]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_72]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_72]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_72]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72]
at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158) ~[vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:118) ~[vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:313) [vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:202) [vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:95) [vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41) [vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1408) [vaadin-server-7.5.6.jar:7.5.6]
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:351) [vaadin-server-7.5.6.jar:7.5.6]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:242) [spring-boot-actuator-1.3.0.RELEASE.jar:1.3.0.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:111) [spring-boot-actuator-1.3.0.RELEASE.jar:1.3.0.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176) [spring-security-web-4.0.3.RELEASE.jar:4.0.3.RELEASE]
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103) [spring-boot-actuator-1.3.0.RELEASE.jar:1.3.0.RELEASE]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:217) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500) [tomcat-embed-core-8.0.28.jar:8.0.28]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456) [tomcat-embed-core-8.0.28.jar:8.0.28]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_72]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_72]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.0.28.jar:8.0.28]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72]
Caused by: com.objectdb.o._PersistenceException: Failed to set reference value of field property at.co.pjm.tracker.persistence.Unit.channelConfigurationSets using reflection
at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.JPE.g(JPE.java:145) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ERR.f(ERR.java:56) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.OBC.onObjectDBError(OBC.java:1504) ~[objectdb-2.6.6.jar:na]
at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:757) ~[objectdb-2.6.6.jar:na]
... 120 common frames omitted
Caused by: com.objectdb.o.UserException: Failed to set reference value of field property at.co.pjm.tracker.persistence.Unit.channelConfigurationSets using reflection
at com.objectdb.o.MSG.d(MSG.java:75) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.P(UMR.java:936) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.D(UMR.java:687) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.u(UMR.java:484) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.MMM.af(MMM.java:1052) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENH.c(ENH.java:136) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENH.b(ENH.java:111) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.LDR.J(LDR.java:800) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.LDR.Ve(LDR.java:1031) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.CST.ac(CST.java:578) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.CST.Vl(CST.java:502) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.LDR.F(LDR.java:563) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.LDR.E(LDR.java:470) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.OBC.U1(OBC.java:1081) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.QRR.f(QRR.java:222) ~[objectdb-2.6.6.jar:na]
at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:750) ~[objectdb-2.6.6.jar:na]
... 120 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_72]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_72]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_72]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72]
at com.objectdb.o.UMR$ac.E(UMR.java:1402) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.D(UMR.java:684) ~[objectdb-2.6.6.jar:na]
... 133 common frames omitted
Caused by: com.objectdb.o._PersistenceException: Failed to get reference value of field property at.co.pjm.tracker.persistence.Unit.channelConfigurationSets using reflection
at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.JPE.g(JPE.java:145) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ERR.f(ERR.java:56) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.OBC.onObjectDBError(OBC.java:1504) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENT.al(ENT.java:1657) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENT.beforeModifyMember(ENT.java:1172) ~[objectdb-2.6.6.jar:na]
at at.co.pjm.tracker.persistence.Unit.setChannelConfigurationSets(Unit.java:1) ~[WaggonTrackerPersistence-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
... 139 common frames omitted
Caused by: com.objectdb.o.UserException: Failed to get reference value of field property at.co.pjm.tracker.persistence.Unit.channelConfigurationSets using reflection
at com.objectdb.o.MSG.d(MSG.java:75) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.P(UMR.java:936) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.F(UMR.java:719) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENT.ah(ENT.java:1261) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENT.beforeModifyMember(ENT.java:1169) ~[objectdb-2.6.6.jar:na]
... 140 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_72]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72]
at com.objectdb.o.UMR$ac.H(UMR.java:1406) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.F(UMR.java:713) ~[objectdb-2.6.6.jar:na]
... 142 common frames omitted
Caused by: com.objectdb.o._PersistenceException: Failed to get reference value of field property at.co.pjm.tracker.persistence.Unit.channelConfigurationSets using reflection
at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.JPE.g(JPE.java:145) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ERR.f(ERR.java:56) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.OBC.onObjectDBError(OBC.java:1504) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENT.al(ENT.java:1657) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENT.beforeAccess(ENT.java:1141) ~[objectdb-2.6.6.jar:na]
at at.co.pjm.tracker.persistence.Unit.getChannelConfigurationSets(Unit.java:1) ~[WaggonTrackerPersistence-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
... 147 common frames omitted
Caused by: com.objectdb.o.UserException: Failed to get reference value of field property at.co.pjm.tracker.persistence.Unit.channelConfigurationSets using reflection
at com.objectdb.o.MSG.d(MSG.java:75) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.P(UMR.java:936) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.G(UMR.java:735) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.TYT.c(TYT.java:68) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.TYT.b(TYT.java:47) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENT.beforeAccess(ENT.java:1138) ~[objectdb-2.6.6.jar:na]
... 148 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_72]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72]
at com.objectdb.o.UMR$ac.H(UMR.java:1406) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.UMR.G(UMR.java:732) ~[objectdb-2.6.6.jar:na]
... 151 common frames omitted
Caused by: com.objectdb.o._PersistenceException: Failed to get reference value of field property at.co.pjm.tracker.persistence.Unit.channelConfigurationSets using reflection
at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.JPE.g(JPE.java:145) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ERR.f(ERR.java:56) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.OBC.onObjectDBError(OBC.java:1504) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENT.al(ENT.java:1657) ~[objectdb-2.6.6.jar:na]
at com.objectdb.o.ENT.beforeAccess(ENT.java:1141) ~[objectdb-2.6.6.jar:na]
at at.co.pjm.tracker.persistence.Unit.getChannelConfigurationSets(Unit.java:1) ~[WaggonTrackerPersistence-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
... 156 common frames omitted
#2

ObjectDB is trying to use reflection for field at.co.pjm.tracker.persistence.Unit.channelConfigurationSets (which fails due to unknown reason), so maybe the enhancement is incomplete.

Try to rebuild everything and run the Enhancer on all your entity classes before starting the application.

ObjectDB Support
#3

That's exactly what I did. I even delete my whole local maven repository to force a clean install of every artifact.

That's the output of the enhancer:

[ObjectDB 2.6.6 Enhancer]
35 persistable types have been enhanced:
    at.co.pjm.tracker.persistence.AdjustmentValues
    at.co.pjm.tracker.persistence.AnalogChannelConfiguration
    at.co.pjm.tracker.persistence.CANBusConfiguration
    at.co.pjm.tracker.persistence.CANChannelConfiguration
    at.co.pjm.tracker.persistence.CANDecoderChannelConfiguration
    at.co.pjm.tracker.persistence.ChannelConfigurationSet
    at.co.pjm.tracker.persistence.ChannelSet
    at.co.pjm.tracker.persistence.Circle
    at.co.pjm.tracker.persistence.DeviceConfiguration
    at.co.pjm.tracker.persistence.DigitalInputChannelConfiguration
    at.co.pjm.tracker.persistence.ExternalSystem
    at.co.pjm.tracker.persistence.ExternalSystemInfo
    at.co.pjm.tracker.persistence.FencingObject
    at.co.pjm.tracker.persistence.GeofencingEvent
    at.co.pjm.tracker.persistence.GeofencingZone
    at.co.pjm.tracker.persistence.LoginEvent
    at.co.pjm.tracker.persistence.Messagegroup
    at.co.pjm.tracker.persistence.Polygon
    at.co.pjm.tracker.persistence.Position
    at.co.pjm.tracker.persistence.PrecalculatedChannelConfiguration
    at.co.pjm.tracker.persistence.RFIDAppV1Configuration
    at.co.pjm.tracker.persistence.RFIDReadResult
    at.co.pjm.tracker.persistence.Rectangle
    at.co.pjm.tracker.persistence.SMSJob
    at.co.pjm.tracker.persistence.ServerSpecificWeightAppV1Configuration
    at.co.pjm.tracker.persistence.TrackerUser
    at.co.pjm.tracker.persistence.Unit
    at.co.pjm.tracker.persistence.UserSpecificWarningMessage
    at.co.pjm.tracker.persistence.UserSpecificWeightAppV1Configuration
    at.co.pjm.tracker.persistence.WarningMessage
    at.co.pjm.tracker.persistence.WarningMessageValue
    at.co.pjm.tracker.persistence.WeightAppV1Configuration
    at.co.pjm.tracker.persistence.WheelSetting
    at.co.pjm.tracker.persistence.Wheelset
    at.co.pjm.tracker.persistence.WheelsetMapping
50 NON persistable types have been enhanced:
    at.co.pjm.tracker.persistence.AccessType
    at.co.pjm.tracker.persistence.AnalogChannelFilter
    at.co.pjm.tracker.persistence.AnalogChannelOperationMode
    at.co.pjm.tracker.persistence.AnalogChannelRate
    at.co.pjm.tracker.persistence.AnalogChannelSupply
    at.co.pjm.tracker.persistence.CANDecoderChannelType
    at.co.pjm.tracker.persistence.DeviceType
    at.co.pjm.tracker.persistence.DigitalInputType
    at.co.pjm.tracker.persistence.ExternalSystemType
    at.co.pjm.tracker.persistence.GeofencingType
    at.co.pjm.tracker.persistence.LampType
    at.co.pjm.tracker.persistence.QAdjustmentValues
    at.co.pjm.tracker.persistence.QAnalogChannelConfiguration
    at.co.pjm.tracker.persistence.QCANBusConfiguration
    at.co.pjm.tracker.persistence.QCANChannelConfiguration
    at.co.pjm.tracker.persistence.QCANDecoderChannelConfiguration
    at.co.pjm.tracker.persistence.QChannelConfigurationSet
    at.co.pjm.tracker.persistence.QChannelSet
    at.co.pjm.tracker.persistence.QCircle
    at.co.pjm.tracker.persistence.QDeviceConfiguration
    at.co.pjm.tracker.persistence.QDigitalInputChannelConfiguration
    at.co.pjm.tracker.persistence.QExternalSystem
    at.co.pjm.tracker.persistence.QExternalSystemInfo
    at.co.pjm.tracker.persistence.QFencingObject
    at.co.pjm.tracker.persistence.QGeofencingEvent
    at.co.pjm.tracker.persistence.QGeofencingZone
    at.co.pjm.tracker.persistence.QLoginEvent
    at.co.pjm.tracker.persistence.QMessagegroup
    at.co.pjm.tracker.persistence.QPolygon
    at.co.pjm.tracker.persistence.QPosition
    at.co.pjm.tracker.persistence.QPrecalculatedChannelConfiguration
    at.co.pjm.tracker.persistence.QRFIDAppV1Configuration
    at.co.pjm.tracker.persistence.QRFIDReadResult
    at.co.pjm.tracker.persistence.QRectangle
    at.co.pjm.tracker.persistence.QSMSJob
    at.co.pjm.tracker.persistence.QServerSpecificWeightAppV1Configuration
    at.co.pjm.tracker.persistence.QTrackerUser
    at.co.pjm.tracker.persistence.QUnit
    at.co.pjm.tracker.persistence.QUserSpecificWarningMessage
    at.co.pjm.tracker.persistence.QUserSpecificWeightAppV1Configuration
    at.co.pjm.tracker.persistence.QWarningMessage
    at.co.pjm.tracker.persistence.QWarningMessageValue
    at.co.pjm.tracker.persistence.QWeightAppV1Configuration
    at.co.pjm.tracker.persistence.QWheelSetting
    at.co.pjm.tracker.persistence.QWheelset
    at.co.pjm.tracker.persistence.QWheelsetMapping
    at.co.pjm.tracker.persistence.SmsFormat
    at.co.pjm.tracker.persistence.TrackerUserStatusType
    at.co.pjm.tracker.persistence.WarningMessageTrigger
    at.co.pjm.tracker.persistence.WeightAppMode

And like I said. If i change the version back and rebuild everything it works again.

#4

More information is needed in order to understand the cause.

The error messages mention field Unit.channelConfigurationSets. Are other fields affected or only that field? What is the type of that field and is there anything special with it?

If possible please provide a test case that throws the exception.

If not, we can try searching for the sequence of two builds, the last that works for you an the first that doesn't, and check the differences. It works with 2.6.3 and fails with 2.6.6. What about 2.6.4 and 2.6.5?

ObjectDB Support

Reply