I don't think it is really a bug, but a case that isn't supported, and
perhaps should be prevented in the assembly phase. UnitOfWorkCallback
was intended to be called to various providers (such as Indexing) and
not to the Entities themselves.


Cheers
Niclas

On Thu, Nov 4, 2010 at 6:25 AM, Ronnie Nessa <[email protected]> wrote:
> Hi.
>
> I´m not sure if this is the correct list to submit bugs, please tell me if I 
> should use another list.
>
> I´m trying to implement UnitOfWorkCallback in an entity. Either I´m using it 
> wrong or there is a bug in the callback handling. Because when I delete an 
> entity which implements the callback I get an UnitOfWorkCompletionException.
>
> org.qi4j.api.unitofwork.UnitOfWorkCompletionException: 
> org.qi4j.api.unitofwork.NoSuchEntityException: Could not find entity 
> (test_entity_id)
>        at 
> org.qi4j.runtime.unitofwork.UnitOfWorkInstance.notifyBeforeCompletion(UnitOfWorkInstance.java:430)
>        at 
> org.qi4j.runtime.unitofwork.UnitOfWorkInstance.complete(UnitOfWorkInstance.java:261)
>        at 
> org.qi4j.runtime.structure.ModuleUnitOfWork.complete(ModuleUnitOfWork.java:255)
>        at
>
> Please see attached testcase.
>
> Can anyone confirm if this is a bug? If so, is there any workarounds for the 
> error?
>
> Best regards
> Ronnie Nessa
>
>
>
>
>
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>
>



-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to