ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David E Jones <jone...@hotwaxmedia.com>
Subject Re: Flushing the Entity Engine cache ?
Date Thu, 07 Feb 2008 20:20:08 GMT

If you're doing an update you should never read from the cache. It  
used to be possible and caused lots of problems, so we added the error  
message you are seeing.

-David


On Feb 7, 2008, at 1:04 PM, Grant Edwards wrote:

> Hi
>
> My process is as follows:
>
> 1) Log an entity to the db reconrding job start time and some status
> 2) Run the job
> 3) Update the entity from step 1) with job end time and further status
> requirements
>
>
> The first two step run with out a problem, but step 3 throws the  
> exception
> seen below. Is it possible to do something like flush the entity  
> cache after
> step 1 ?
>
>
> ---- exception report
> ----------------------------------------------------------
> Service [updateJobLogEntry] threw an unexpected exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: Service target threw an unexpected exception (This object  
> has been
> flagged as immutable (unchangeable), probably because it came from  
> an Entity
> Engine cache. Cannot set a value in an immutable entity object.)
> ---- stack trace
> ---------------------------------------------------------------
>
>
> Kinds regard
>
> Grant e


Mime
View raw message