Adrian,

Sorry I couldn't reply you yesterday, today I took the update again, did ant
clean & build, and Ofbiz was running fine .... but then before this I also
did empty the JOB_SANDBOX database table, so I dont know its bcoz of that or
what ?

But as you are saying that you ran the updated code against an existing
database, then I think there is no issues.... but does the database was
having pending jobs, just to be sure ?

Thanks,
Abdullah

On Mon, Oct 5, 2009 at 10:00 PM, Adrian Crum <[email protected]> wrote:

> Abdullah,
>
> I tried running the updated code against an existing database and I was
> unable to duplicate your problem. Are you sure you ran ant clean, then ant
> build?
>
> -Adrian
>
>
> Abdullah Shaikh wrote:
>
>> I just updated ofbiz, and found that all the references to concrete class
>> GenericDelegator has been converted to Delegator, but I guess bcoz of this
>> all the persisted jobs are getting failed.
>>
>> I couldn't start ofbiz, as I was getting the below error because
>> org.ofbiz.base.start.Start.main would exit without starting ofbiz, I could
>> start ofbiz only when I changed getDelegator() method to return
>> GenericDelegator instead of Delegator in JobManager, but once started all
>> the jobs were failing.
>>
>> Error before doing the change in JobManager :
>>
>> 2009-10-05 20:57:19,137 (main) [     ServiceEcaUtil.java:117:INFO ] Loaded
>> [
>> 1] Service ECA Rules from
>>
>> file:/home/abdullah/myprojects/topnaukri_ws/ofbiz/specialpurpose/ebay/servicedef/secas.xml
>>     [java] Exception in thread "main" java.lang.NoSuchMethodError:
>>
>> org.ofbiz.service.job.JobManager.getDelegator()Lorg/ofbiz/entity/GenericDelegator;
>>     [java]     at
>> org.ofbiz.service.job.JobInvoker.<init>(JobInvoker.java:64)
>>     [java]     at
>> org.ofbiz.service.job.JobPoller.createThreadPool(JobPoller.java:238)
>>     [java]     at
>> org.ofbiz.service.job.JobPoller.<init>(JobPoller.java:59)
>>     [java]     at
>> org.ofbiz.service.job.JobManager.<init>(JobManager.java:83)
>>     [java]     at
>> org.ofbiz.service.job.JobManager.getInstance(JobManager.java:91)
>>     [java]     at
>> org.ofbiz.service.ServiceDispatcher.<init>(ServiceDispatcher.java:116)
>>     [java]     at
>> org.ofbiz.service.ServiceDispatcher.<init>(ServiceDispatcher.java:132)
>>     [java]     at
>>
>> org.ofbiz.service.ServiceDispatcher.getInstance(ServiceDispatcher.java:166)
>>     [java]     at
>>
>> org.ofbiz.service.ServiceDispatcher.getInstance(ServiceDispatcher.java:141)
>>     [java]     at
>>
>> org.ofbiz.service.GenericDispatcher.getLocalDispatcher(GenericDispatcher.java:72)
>>     [java]     at
>>
>> org.ofbiz.service.GenericDispatcher.getLocalDispatcher(GenericDispatcher.java:42)
>>     [java]     at
>>
>> org.ofbiz.entityext.EntityServiceFactory.getLocalDispatcher(EntityServiceFactory.java:34)
>>     [java]     at
>>
>> org.ofbiz.entityext.EntityServiceFactory.getDispatchContext(EntityServiceFactory.java:39)
>>     [java]     at
>>
>> org.ofbiz.entityext.eca.DelegatorEcaHandler.setDelegator(DelegatorEcaHandler.java:53)
>>     [java]     at
>>
>> org.ofbiz.entity.GenericDelegator.initEntityEcaHandler(GenericDelegator.java:330)
>>     [java]     at
>> org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:315)
>>     [java]     at
>>
>> org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:43)
>>     [java]     at
>>
>> org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25)
>>     [java]     at
>> org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:181)
>>     [java]     at
>>
>> org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:173)
>>     [java]     at
>>
>> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190)
>>     [java]     at
>> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66)
>>     [java]     at
>> org.ofbiz.base.start.Start.initStartLoaders(Start.java:259)
>>     [java]     at org.ofbiz.base.start.Start.init(Start.java:97)
>>     [java]     at org.ofbiz.base.start.Start.main(Start.java:408)
>>     [java] Java Result: 1
>> BUILD SUCCESSFUL
>> Total time: 8 seconds
>>
>>
>> Error after doing the change in JobManager, when ofbiz could be started :
>>
>> ---- error report
>> --------------------------------------------------------------
>>     [java] Error in polling JobSandbox: [java.lang.NoSuchMethodError:
>>
>> org.ofbiz.entity.GenericValue.getDelegator()Lorg/ofbiz/entity/GenericDelegator;].
>> Rolling back transaction.
>>     [java] Exception: java.lang.NoSuchMethodError
>>     [java] Message:
>>
>> org.ofbiz.entity.GenericValue.getDelegator()Lorg/ofbiz/entity/GenericDelegator;
>>     [java] ---- stack trace
>> ---------------------------------------------------------------
>>     [java] java.lang.NoSuchMethodError:
>>
>> org.ofbiz.entity.GenericValue.getDelegator()Lorg/ofbiz/entity/GenericDelegator;
>>     [java] org.ofbiz.entity.GenericValue.refresh(GenericValue.java:137)
>>     [java]
>>
>> org.ofbiz.service.job.PersistedServiceJob.queue(PersistedServiceJob.java:90)
>>     [java] org.ofbiz.service.job.JobManager.poll(JobManager.java:173)
>>     [java] org.ofbiz.service.job.JobPoller.run(JobPoller.java:90)
>>     [java] java.lang.Thread.run(Thread.java:619)
>>     [java]
>>
>> --------------------------------------------------------------------------------
>>     [java] 2009-10-05 20:54:21,762
>> (org.ofbiz.service.job.jobpol...@610bff0b) [
>> TransactionUtil.java:335:ERROR]
>>     [java] ---- exception report
>> ----------------------------------------------------------
>>     [java] [TransactionUtil.rollback]
>>     [java] Exception: java.lang.Exception
>>     [java] Message: Stack Trace
>>     [java] ---- stack trace
>> ---------------------------------------------------------------
>>     [java] java.lang.Exception: Stack Trace
>>     [java]
>>
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:334)
>>     [java]
>>
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:316)
>>     [java] org.ofbiz.service.job.JobManager.poll(JobManager.java:191)
>>     [java] org.ofbiz.service.job.JobPoller.run(JobPoller.java:90)
>>     [java] java.lang.Thread.run(Thread.java:619)
>>     [java]
>>
>> --------------------------------------------------------------------------------
>>     [java] 2009-10-05 20:54:21,884
>> (org.ofbiz.service.job.jobpol...@610bff0b) [
>> TransactionUtil.java:345:INFO ] [TransactionUtil.rollback] transaction
>> rolled back
>>     [java] 2009-10-05 20:54:21,885
>> (org.ofbiz.service.job.jobpol...@610bff0b) [
>> TransactionUtil.java:268:WARN ] [TransactionUtil.commit] Not committing
>> transaction, status is No Transaction (6)
>>     [java] 2009-10-05 20:54:21,940
>> (org.ofbiz.service.job.jobpol...@610bff0b) [
>> JobManager.java:188:ERROR]
>>     [java] ---- error report
>> --------------------------------------------------------------
>>     [java] Error in polling JobSandbox: [java.lang.NoSuchMethodError:
>>
>> org.ofbiz.entity.GenericValue.getDelegator()Lorg/ofbiz/entity/GenericDelegator;].
>> Rolling back transaction.
>>     [java] Exception: java.lang.NoSuchMethodError
>>     [java] Message:
>>
>> org.ofbiz.entity.GenericValue.getDelegator()Lorg/ofbiz/entity/GenericDelegator;
>>     [java] ---- stack trace
>> ---------------------------------------------------------------
>>     [java] java.lang.NoSuchMethodError:
>>
>> org.ofbiz.entity.GenericValue.getDelegator()Lorg/ofbiz/entity/GenericDelegator;
>>     [java] org.ofbiz.entity.GenericValue.refresh(GenericValue.java:137)
>>     [java]
>>
>> org.ofbiz.service.job.PersistedServiceJob.queue(PersistedServiceJob.java:90)
>>     [java] org.ofbiz.service.job.JobManager.poll(JobManager.java:173)
>>     [java] org.ofbiz.service.job.JobPoller.run(JobPoller.java:90)
>>     [java] java.lang.Thread.run(Thread.java:619)
>>     [java]
>>
>> --------------------------------------------------------------------------------
>>     [java] 2009-10-05 20:54:21,947
>> (org.ofbiz.service.job.jobpol...@610bff0b) [
>> TransactionUtil.java:335:ERROR]
>>     [java] ---- exception report
>> ----------------------------------------------------------
>>     [java] [TransactionUtil.rollback]
>>     [java] Exception: java.lang.Exception
>>     [java] Message: Stack Trace
>>     [java] ---- stack trace
>> ---------------------------------------------------------------
>>     [java] java.lang.Exception: Stack Trace
>>     [java]
>>
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:334)
>>     [java]
>>
>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:316)
>>     [java] org.ofbiz.service.job.JobManager.poll(JobManager.java:191)
>>     [java] org.ofbiz.service.job.JobPoller.run(JobPoller.java:90)
>>     [java] java.lang.Thread.run(Thread.java:619)
>>
>>
>> Also I got the below error, when I went to webtools :
>>
>> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
>> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
>> java.lang.IllegalArgumentException: Error calling service with name
>> getVisualThemeResources: org.ofbiz.service.GenericServiceException:
>> Service
>> [getVisualThemeResources] Failed
>>
>> (org.ofbiz.minilang.method.MethodContext.getDelegator()Lorg/ofbiz/entity/GenericDelegator;)
>> (Error calling service with name getVisualThemeResources:
>> org.ofbiz.service.GenericServiceException: Service
>> [getVisualThemeResources]
>> Failed
>>
>> (org.ofbiz.minilang.method.MethodContext.getDelegator()Lorg/ofbiz/entity/GenericDelegator;))
>>
>> Do I need to clear all the persisted jobs and if so, then I guess I would
>> need to go to the database to delete the jobs as webtools is throwing the
>> same exception ?
>>
>>

Reply via email to