java.lang.ClassCastException: atg.repository.query.AndQuery cannot be cast to atg.adapter.gsa.query.

799 views
Skip to first unread message

Fredy Antonio Correa Medina

unread,
Jun 24, 2013, 1:26:16 PM6/24/13
to atg_...@googlegroups.com
Hi Experts.
This exceptions are raise from ATG libs OOTB, we not have custom rql´s.
I spent considerable time trying to fix it and I've failed.
Could someone give me some help?
this is the full stack trace:

 java.lang.ClassCastException: atg.repository.query.AndQuery cannot be cast to atg.adapter.gsa.query.Clause
    at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7521)
    at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:332)
    at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
    at atg.repository.query.QueryCache.populateEntry(QueryCache.java:912)
    at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
    at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
    at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:281)
    at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
    at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:526)
    at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:569)
    at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:673)
    at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
    at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
2013-06-24 10:24:23,733 1839097 ERROR [nucleusNamespace.atg.commerce.pricing.ItemPricingEngine] [SessionId=] (/atg/dynamo/service/Scheduler-reusablejobhandler-reinitialize pricing engine:)
CAUGHT AT:
CONTAINER:atg.repository.RepositoryException: Attempt to execute or build a query with a Query or QueryExpression object that is null or was not created by this repository.; SOURCE:java.lang.ClassCastException: atg.repository.query.AndQuery cannot be cast to atg.adapter.gsa.query.Clause
    at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7525)
    at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:332)
    at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
    at atg.repository.query.QueryCache.populateEntry(QueryCache.java:912)
    at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
    at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
    at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:281)
    at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
    at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:526)
    at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:569)
    at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:673)
    at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
    at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
Caused by: java.lang.ClassCastException: atg.repository.query.AndQuery cannot be cast to atg.adapter.gsa.query.Clause
    at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7521)
    ... 12 more
SOURCE EXCEPTION:
java.lang.ClassCastException: atg.repository.query.AndQuery cannot be cast to atg.adapter.gsa.query.Clause
    at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7521)
    at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:332)
    at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
    at atg.repository.query.QueryCache.populateEntry(QueryCache.java:912)
    at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
    at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
    at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:281)
    at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
    at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:526)
    at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:569)
    at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:673)
    at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
    at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
2013-06-24 10:24:25,061 1840425 ERROR [nucleusNamespace.atg.commerce.pricing.ShippingPricingEngine] [SessionId=] (/atg/dynamo/service/Scheduler-reusablejobhandler-reinitialize pricing engine:)
CAUGHT AT:
CONTAINER:atg.repository.RepositoryException: Attempt to execute or build a query with a Query or QueryExpression object that is null or was not created by this repository.; SOURCE:java.lang.ClassCastException: atg.repository.query.AndQuery cannot be cast to atg.adapter.gsa.query.Clause
    at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7525)
    at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:332)
    at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
    at atg.repository.query.QueryCache.populateEntry(QueryCache.java:912)
    at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
    at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
    at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:281)
    at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
    at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:526)
    at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:569)
    at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:673)
    at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
    at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)
Caused by: java.lang.ClassCastException: atg.repository.query.AndQuery cannot be cast to atg.adapter.gsa.query.Clause
    at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7521)
    ... 12 more
SOURCE EXCEPTION:
java.lang.ClassCastException: atg.repository.query.AndQuery cannot be cast to atg.adapter.gsa.query.Clause
    at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:7521)
    at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:332)
    at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:693)
    at atg.repository.query.QueryCache.populateEntry(QueryCache.java:912)
    at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:433)
    at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:344)
    at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:281)
    at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:211)
    at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:526)
    at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:569)
    at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:673)
    at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)
    at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)

best regards,
Thanks,
Reply all
Reply to author
Forward
0 new messages