2 Replies Latest reply on May 21, 2014 2:54 PM by Aaaaaparz1

    Preloading Caches issue

    Aaaaaparz1

      Hi,

       

      I have used preload for catalog items like catalog, category,product sku,etc., On using this i am getting the following error after server startup.

      Please help me to resolve this.

       

       

       

      18:01:37,748 ERROR [ItemPricingEngine]

      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

      at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:8131)

      at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:362)

      at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:719)

      at atg.repository.query.QueryCache.populateEntry(QueryCache.java:1011)

      at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:459)

      at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:366)

      at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:307)

      at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:233)

      at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:628)

      at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:673)

      at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:777)

      at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:466)

      at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:782)

      Caused by: java.lang.ClassCastException

      SOURCE EXCEPTION:

      1. java.lang.ClassCastException

      18:01:38,691 ERROR [OrderPricingEngine]

      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:8131)

      at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:362)

      at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:719)

      at atg.repository.query.QueryCache.populateEntry(QueryCache.java:1011)

      at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:459)

      at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:366)

      at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:307)

      at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:233)

      at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:628)

      at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:673)

      at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:777)

      at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:466)

      at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:782)

      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:8127)

      ... 12 more

      SOURCE EXCEPTION:

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

      at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:8127)

      at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:362)

      at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:719)

      at atg.repository.query.QueryCache.populateEntry(QueryCache.java:1011)

      at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:459)

      at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:366)

      at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:307)

      at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:233)

      at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:628)

      at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:673)

      at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:777)

      at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:466)

      at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:782)

      18:01:39,900 ERROR [ShippingPricingEngine]

      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:8131)

      at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:362)

      at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:719)

      at atg.repository.query.QueryCache.populateEntry(QueryCache.java:1011)

      at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:459)

      at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:366)

      at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:307)

      at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:233)

      at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:628)

      at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:673)

      at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:777)

      at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:466)

      at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:782)

      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:8127)

      ... 12 more

      SOURCE EXCEPTION:

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

      at atg.adapter.gsa.GSAItemDescriptor.executeQuery(GSAItemDescriptor.java:8127)

      at atg.adapter.gsa.GSAView.executeUncachedQuery(GSAView.java:362)

      at atg.repository.query.QueryCache.executeUncachedQuery(QueryCache.java:719)

      at atg.repository.query.QueryCache.populateEntry(QueryCache.java:1011)

      at atg.repository.query.QueryCache.executeCachedQuery(QueryCache.java:459)

      at atg.repository.RepositoryViewImpl.executeQuery(RepositoryViewImpl.java:366)

      at atg.adapter.gsa.GSAView.executeQuery(GSAView.java:307)

      at atg.repository.rql.RqlStatement.executeQuery(RqlStatement.java:233)

      at atg.commerce.pricing.PricingEngineService.findGlobalPromotions(PricingEngineService.java:628)

      at atg.commerce.pricing.PricingEngineService.loadGlobalPromotions(PricingEngineService.java:673)

      at atg.commerce.pricing.PricingEngineService.performScheduledTask(PricingEngineService.java:777)

      at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:466)

      at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:782)

       

      Thanks in advance

      Raj.