geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jklcom99 <jeff_k...@yahoo.com>
Subject <openjpa-1.0.2-r420667:627158 fatal user error> org.apache.openjpa.persistence.ArgumentException: Errors encountered while resolving metadata. See nested exceptions for details.
Date Thu, 28 Aug 2008 21:17:46 GMT

Hi,

I'm running G2.1.2 and it has been running for a few weeks now.  I'm not
sure why Geronimo is giving this error today:

     [java] 	at
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:522)
     [java] 	at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:302)
     [java] 	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:167)
     [java] 	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:136)
     [java] 	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:216)
     [java] 	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:186)
     [java] 	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:179)
     [java] 	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$500(JPQLExpressionBuilder.java:66)
     [java] 	at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:1677)
     [java] 	at
org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:55)
     [java] 	at
org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:148)
     [java] 	at
org.apache.openjpa.datacache.QueryCacheStoreQuery.populateFromCompilation(QueryCacheStoreQuery.java:240)
     [java] 	at
org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:652)
     [java] 	at
org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:633)
     [java] 	at
org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:599)
     [java] 	at
org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:661)
     [java] 	at
org.apache.openjpa.kernel.QueryImpl.getOperation(QueryImpl.java:1487)
     [java] 	at
org.apache.openjpa.kernel.DelegatingQuery.getOperation(DelegatingQuery.java:123)
     [java] 	at
org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:227)
     [java] 	at
org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:277)
     [java] 	at com.myapp.db.JpaDaoImpl.find(JpaDaoImpl.java:63)
     [java] 	at
com.myapp.server.QuartzDao.findActiveJobs(QuartzDao.java:208)
     [java] 	at
com.myapp.server.impl.ServerJobBrokerImpl.addSavedJobsToScheduler(ServerJobBrokerImpl.java:76)
     [java] 	at
com.myapp.server.impl.ServerJobBrokerImpl.<init>(ServerJobBrokerImpl.java:43)
     [java] 	at com.myapp.server.geronimo.Rmi.setupRmiObjects(Rmi.java:234)
     [java] 	at com.myapp.server.geronimo.Rmi.start(Rmi.java:120)
     [java] 	at com.myapp.server.geronimo.Rmi.doStart(Rmi.java:374)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:998)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:268)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:541)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:176)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:254)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:294)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:555)
     [java] 	at
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
     [java] 	at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
     [java] 	at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:188)
     [java] 	at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:562)
     [java] 	at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
     [java] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] 	at java.lang.reflect.Method.invoke(Method.java:597)
     [java] 	at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
     [java] 	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
     [java] 	at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
     [java] 	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
     [java] 	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
     [java] 	at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$39a71dd.startConfiguration(<generated>)
     [java] 	at
org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:162)
     [java] 	at
org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:79)
     [java] 	at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
     [java] 	at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
     [java] 	at
org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
     [java] Caused by: <openjpa-1.0.2-r420667:627158 fatal user error>
org.apache.openjpa.persistence.ArgumentException: The type for
"com.myapp.entity.User.lastLogin" is mapped to custom strategy
"com.myapp.db.GMTDateStrategy", but this strategy cannot be instantiated.
     [java] 	at
org.apache.openjpa.jdbc.meta.MappingRepository.mappedStrategy(MappingRepository.java:953)
     [java] 	at
org.apache.openjpa.jdbc.meta.MappingRepository.defaultStrategy(MappingRepository.java:750)
     [java] 	at
org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:62)
     [java] 	at
org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(FieldMapping.java:438)
     [java] 	at
org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.java:403)
     [java] 	at
org.apache.openjpa.jdbc.meta.ClassMapping.resolveNonRelationMappings(ClassMapping.java:851)
     [java] 	at
org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(MappingRepository.java:322)
     [java] 	at
org.apache.openjpa.meta.MetaDataRepository.preMapping(MetaDataRepository.java:621)
     [java] 	at
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:508)
     [java] 	... 59 more
     [java] Caused by: <openjpa-1.0.2-r420667:627158 fatal user error>
org.apache.openjpa.persistence.ArgumentException: The class name
"com.myapp.db.GMTDateStrategy" used in a metadata extension on field
"com.myapp.entity.User.lastLogin" is not valid.
     [java] 	at
org.apache.openjpa.meta.JavaTypes.classForName(JavaTypes.java:227)
     [java] 	at
org.apache.openjpa.meta.JavaTypes.classForName(JavaTypes.java:194)
     [java] 	at
org.apache.openjpa.jdbc.meta.MappingRepository.mappedStrategy(MappingRepository.java:943)
     [java] 	... 67 more
     [java] NestedThrowables:
-- 
View this message in context: http://www.nabble.com/%3Copenjpa-1.0.2-r420667%3A627158-fatal-user-error%3E-org.apache.openjpa.persistence.ArgumentException%3A-Errors-encountered-while-resolving-metadata.--See-nested-exceptions-for-details.-tp19209348s134p19209348.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message