From dev-return-25990-archive-asf-public=cust-asf.ponee.io@openjpa.apache.org Thu Feb 21 20:09:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 48FB818077A for ; Thu, 21 Feb 2019 21:09:04 +0100 (CET) Received: (qmail 93863 invoked by uid 500); 21 Feb 2019 20:09:03 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 93851 invoked by uid 99); 21 Feb 2019 20:09:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2019 20:09:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EF399CCA81 for ; Thu, 21 Feb 2019 20:09:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.3 X-Spam-Level: X-Spam-Status: No, score=-110.3 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, LOTS_OF_MONEY=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id bkoyS8TDfkKq for ; Thu, 21 Feb 2019 20:09:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DC8015F19A for ; Thu, 21 Feb 2019 20:09:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6C641E00E1 for ; Thu, 21 Feb 2019 20:09:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2D4BF24527 for ; Thu, 21 Feb 2019 20:09:00 +0000 (UTC) Date: Thu, 21 Feb 2019 20:09:00 +0000 (UTC) From: "chris hankey (JIRA)" To: dev@openjpa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (OPENJPA-2776) org.apache.openjpa.persistence.ArgumentException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 chris hankey created OPENJPA-2776: ------------------------------------- Summary: org.apache.openjpa.persistence.ArgumentException Key: OPENJPA-2776 URL: https://issues.apache.org/jira/browse/OPENJPA-2776 Project: OpenJPA Issue Type: Bug Components: jpa Affects Versions: 2.4.1 Reporter: chris hankey We receive an exception like this or similar to this sometimes when we star= t up our applications.=C2=A0 In today's case all requests were failing due = to this issue or similar issues.=C2=A0Note, to fix this issue we restarted = our app & the problem disappeared.=C2=A0 We did not make=C2=A0 any code or = config changes. This is an intermittent issue and does not always occur, but the issue appe= ars to happen a user calls one our apps services too quickly after a restar= t.=C2=A0 Maybe a request hits open jpa before it has fully initialized?=C2= =A0=C2=A0 Is there a way to force Open JPA to fully initialize all metadata BEFORE to= mcat starts allowing requests through? =C2=A0 {quote}org.apache.openjpa.persistence.ArgumentException: Fields "persistenc= e.User.contacts" are not a default persistent type, and do not have any ann= otations indicating their persistence strategy.=20 They will be treated as non-persistent. If you intended for these fields to= be persistent, be sure to annotate them appropriately. Otherwise annotate = them with @Transient.=20 at org.apache.openjpa.persistence.PersistenceMetaDataFactory.validateStrat= egies(PersistenceMetaDataFactory.java:454)=20 at org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(Persiste= nceMetaDataFactory.java:263)=20 at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaData= Repository.java:587)=20 at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaData= Repository.java:397)=20 at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataReposito= ry.java:389)=20 at org.apache.openjpa.kernel.QueryImpl.createExecutor(QueryImpl.java:734)= =20 at org.apache.openjpa.kernel.QueryImpl.compileForDataStore(QueryImpl.java:= 713)=20 at org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:6= 95)=20 at org.apache.openjpa.kernel.QueryImpl.getOperation(QueryImpl.java:1535)= =20 at org.apache.openjpa.kernel.DelegatingQuery.getOperation(DelegatingQuery.= java:123)=20 at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:268)=20 at org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:2= 90)=20 at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source)=20 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)=20 at java.lang.reflect.Method.invoke(Unknown Source)=20 at org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInv= ocationHandler.invoke(SharedEntityManagerCreator.java:372)=20 at com.sun.proxy.$Proxy155.getResultList(Unknown Source)=20 at com.business.DCImpl.getData(DCImpl.java:84)=20 at com.business.DataBCImpl.getUser(DataBCImpl.java:203)=20 at com.business.DataBCImpl$$FastClassBySpringCGLIB$$c73ad068.invoke()=20 at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204= )=20 at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.i= nvokeJoinpoint(CglibAopProxy.java:721)=20 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re= flectiveMethodInvocation.java:157)=20 at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor= .invoke(MethodBeforeAdviceInterceptor.java:52)=20 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re= flectiveMethodInvocation.java:179)=20 at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheIn= terceptor.java:52)=20 at org.springframework.cache.interceptor.CacheAspectSupport.invokeOperatio= n(CacheAspectSupport.java:345)=20 at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheA= spectSupport.java:408)=20 at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheA= spectSupport.java:327)=20 at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInte= rceptor.java:61)=20 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re= flectiveMethodInvocation.java:179)=20 at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(= ExposeInvocationInterceptor.java:92)=20 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re= flectiveMethodInvocation.java:179)=20 at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedIntercept= or.intercept(CglibAopProxy.java:656)=20 at com.business.DataBCImpl$$EnhancerBySpringCGLIB$$219e9ab4.getUser()=20 at com.business.UserInterfaceBAImpl.doInitSession(UserInterfaceBAImpl.java= :198)=20 at com.business.UserInterfaceBAImpl.doInitSession(UserInterfaceBAImpl.java= :181)=20 at com.business.UserInterfaceBAImpl$$FastClassBySpringCGLIB$$f6a508cb.invo= ke()=20 at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204= )=20 at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.i= nvokeJoinpoint(CglibAopProxy.java:721)=20 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re= flectiveMethodInvocation.java:157)=20 at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor= .invoke(MethodBeforeAdviceInterceptor.java:52)=20 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re= flectiveMethodInvocation.java:179)=20 at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(Aspec= tJAfterThrowingAdvice.java:62)=20 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re= flectiveMethodInvocation.java:179)=20 at org.springframework.security.access.intercept.aopalliance.MethodSecurit= yInterceptor.invoke(MethodSecurityInterceptor.java:69)=20 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re= flectiveMethodInvocation.java:179)=20 at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(= ExposeInvocationInterceptor.java:92)=20 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Re= flectiveMethodInvocation.java:179)=20 at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedIntercept= or.intercept(CglibAopProxy.java:656)=20 at com.business.UserInterfaceBAImpl$$EnhancerBySpringCGLIB$$36891871.doIni= tSession()=20 at com.business.UserInterfaceBARestImpl.doInitSession(UserInterfaceBARestI= mpl.java:325)=20 at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)=20 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)=20 at java.lang.reflect.Method.invoke(Unknown Source)=20 at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(= InvocableHandlerMethod.java:205)=20 at org.springframework.web.method.support.InvocableHandlerMethod.invokeFor= Request(InvocableHandlerMethod.java:133)=20 at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableH= andlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)=20 at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHan= dlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)=20 at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHan= dlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)=20 at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter= .handle(AbstractHandlerMethodAdapter.java:85)=20 at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatcher= Servlet.java:963)=20 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherS= ervlet.java:897)=20 at org.springframework.web.servlet.FrameworkServlet.processRequest(Framewo= rkServlet.java:970)=20 at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet= .java:861)=20 at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)=20 at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServl= et.java:846)=20 at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)=20 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic= ationFilterChain.java:230)=20 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil= terChain.java:165)=20 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)= =20 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic= ationFilterChain.java:192)=20 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil= terChain.java:165)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:317)=20 at org.springframework.security.web.access.intercept.FilterSecurityInterce= ptor.invoke(FilterSecurityInterceptor.java:127)=20 at org.springframework.security.web.access.intercept.FilterSecurityInterce= ptor.doFilter(FilterSecurityInterceptor.java:91)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at org.springframework.security.web.access.ExceptionTranslationFilter.doFi= lter(ExceptionTranslationFilter.java:114)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at org.springframework.security.web.session.SessionManagementFilter.doFilt= er(SessionManagementFilter.java:137)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at org.springframework.security.web.authentication.AnonymousAuthentication= Filter.doFilter(AnonymousAuthenticationFilter.java:111)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at org.springframework.security.web.servletapi.SecurityContextHolderAwareR= equestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.d= oFilter(RequestCacheAwareFilter.java:63)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at waffle.spring.NegotiateSecurityFilter.doFilter(NegotiateSecurityFilter.= java:156)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at org.springframework.security.web.header.HeaderWriterFilter.doFilterInte= rnal(HeaderWriterFilter.java:64)=20 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerReq= uestFilter.java:107)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at org.springframework.security.web.context.request.async.WebAsyncManagerI= ntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)= =20 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerReq= uestFilter.java:107)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at org.springframework.security.web.context.SecurityContextPersistenceFilt= er.doFilter(SecurityContextPersistenceFilter.java:105)=20 at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.do= Filter(FilterChainProxy.java:331)=20 at org.springframework.security.web.FilterChainProxy.doFilterInternal(Filt= erChainProxy.java:214)=20 at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainP= roxy.java:177)=20 at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(Del= egatingFilterProxy.java:346)=20 at org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegatin= gFilterProxy.java:262)=20 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic= ationFilterChain.java:192)=20 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil= terChain.java:165)=20 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal= ve.java:198)=20 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal= ve.java:96)=20 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato= rBase.java:478)=20 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav= a:140)=20 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav= a:80)=20 at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccess= LogValve.java:624)=20 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve= .java:87)=20 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:= 341)=20 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:7= 99)=20 at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight= .java:66)=20 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractPr= otocol.java:861)=20 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoin= t.java:1455)=20 at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.= java:49)=20 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)=20 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)=20 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThre= ad.java:61)=20 at java.lang.Thread.run(Unknown Source) {quote} -- This message was sent by Atlassian JIRA (v7.6.3#76005)