You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Andrew Willerding <aw...@itsurcom.com> on 2020/02/05 23:48:32 UTC

Can't extract a master key error

I have never come across this error before.

2020-02-05,18:45:23:149,ERROR,[http-nio-8080-exec-468],app,4FA39E6D::Database 
save error->->[v.4.1.RC2 Oct 25 2019 07:58:09] Can't extract a master 
key. Missing key (id), master ID (<ObjectId:Address, 
TEMP:000001BDF4F9150A>)**Exception==>org.apache.cayenne.CayenneRuntimeException: 
[v.4.1.RC2 Oct 25 2019 07:58:09] Can't extract a master key. Missing key 
(id), master ID (<ObjectId:Address, TEMP:000001BDF4F9150A>)

What does it mean and how do I correct for it?

Thanks,

Andrew



Re: Can't extract a master key error

Posted by Nikita Timofeev <nt...@objectstyle.com>.
Hi Andrew,

This exception means that Cayenne was unable to resolve some foreign
key referred to Address.id
because this primary key wasn't there at the referring entity commit time.

You could check if the Address entity commits ok. If it is then
something wrong with the relationship setup.
Though I'm not sure what that could be.

Hope this helps.


On Thu, Feb 6, 2020 at 2:48 AM Andrew Willerding
<aw...@itsurcom.com> wrote:
>
> I have never come across this error before.
>
> 2020-02-05,18:45:23:149,ERROR,[http-nio-8080-exec-468],app,4FA39E6D::Database
> save error->->[v.4.1.RC2 Oct 25 2019 07:58:09] Can't extract a master
> key. Missing key (id), master ID (<ObjectId:Address,
> TEMP:000001BDF4F9150A>)**Exception==>org.apache.cayenne.CayenneRuntimeException:
> [v.4.1.RC2 Oct 25 2019 07:58:09] Can't extract a master key. Missing key
> (id), master ID (<ObjectId:Address, TEMP:000001BDF4F9150A>)
>
> What does it mean and how do I correct for it?
>
> Thanks,
>
> Andrew
>
>


--
Best regards,
Nikita Timofeev