org.apache.openjpa.persistence.ArgumentException

Could not locate metadata for the class using alias "UserVenueMembership". Registered alias mappings: "{Omsmessage=null, Ord=null, UserVenueMembership=null}"

Solutions on the web283

  • Could not locate metadata for the class using alias "UserVenueMembership". Registered alias mappings: "{Omsmessage=null, Ord=null, UserVenueMembership=null}"
  • via Stack Overflow by user888263
    , 1 year ago
    Could not locate metadata for the class using alias "Customer". This could mean that the OpenJPA enhancer or load-time weaver was not run on the type whose alias is "Customer". Registered alias mappings: "{Customer=null}"
  • via java-forum.org by Unknown author, 1 year ago
    A connection could not be obtained for driver class "null" and URL "null". You may have specified an invalid URL.
  • Stack trace

    • org.apache.openjpa.persistence.ArgumentException: Could not locate metadata for the class using alias "UserVenueMembership". Registered alias mappings: "{Omsmessage=null, Ord=null, UserVenueMembership=null}" at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:345) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:164) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:142) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:211) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:181) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:174) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$500(JPQLExpressionBuilder.java:61) at org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:1668) at org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:52) at org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:145) at org.apache.openjpa.datacache.QueryCacheStoreQuery.populateFromCompilation(QueryCacheStoreQuery.java:237) at org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:644) at org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:625) at org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:591) at org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:653) at org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:560) at kodo.kernel.KodoQuery.compile(KodoQuery.java:75) at org.apache.openjpa.persistence.EntityManagerImpl.createNamedQuery(EntityManagerImpl.java:785) at kodo.persistence.KodoEntityManagerImpl.createNamedQuery(KodoEntityManagerImpl.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:340) at $Proxy88.createNamedQuery(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:180) at $Proxy86.createNamedQuery(Unknown Source) at com.git.oms.as.dao.UserDAOImpl.getUserVenueMemberships(UserDAOImpl.java:59) at com.git.oms.as.processor.LoginProcess.execute(LoginProcess.java:371) at com.git.oms.framework.processor.OMSBusinessProcessManager.startProcess(OMSBusinessProcessManager.java:72) at com.git.oms.as.processor.LoginProcessManager.startProcess(LoginProcessManager.java:36) at com.git.oms.as.controller.LoginController.processRequest(LoginController.java:117) at com.git.oms.as.controller.LoginController$$FastClassByCGLIB$$b582410d.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:695) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:630) at com.git.oms.as.controller.LoginController$$EnhancerByCGLIB$$e477a901.processRequest(<generated>) at com.git.oms.as.message.AsRVMessageListener.onMsg(AsRVMessageListener.java:364) at com.tibco.tibrv.TibrvEvent.invoke(TibrvEvent.java:160) at com.tibco.tibrv.TibrvImplQueueC.natDispatch(Native Method) at com.tibco.tibrv.TibrvImplQueueC.dispatch(TibrvImplQueueC.java:44) at com.tibco.tibrv.TibrvQueue.dispatch(TibrvQueue.java:301) at com.tibco.tibrv.TibrvDispatcher.run(TibrvDispatcher.java:169)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.