Re: Unable to re-create a view model

2015-02-09 Thread Dan Haywood
Yes, this stack trace seems to confirm my earlier guess... on rehydration this bookmark is converted to an oid and then being (incorrectly) given to the JDO object store. However, looking at the code it seems that PojoRecreatorForDataNucleus is going down the wrong branch for the referenced view m

Re: Unable to re-create a view model

2015-02-09 Thread GESCONSULTOR - Óscar Bou
In fact, more details about it. Seems to be failing while processing the internal ViewModel property: *com.tellmegen.app.myresults.inheritedconditions.UserInheritedConditionViewModel:PD94b --> being the ViewModel to be represented KIVM:PD94bWwgdmV ... .--> Being "KIVM" the object type of a View

Re: Unable to re-create a view model

2015-02-09 Thread GESCONSULTOR - Óscar Bou
Hi all. One of the properties is another View Model. > El 9/2/2015, a las 15:40, Martin Grigorov escribió: > > On Mon, Feb 9, 2015 at 4:35 PM, Dan Haywood > wrote: > >> My guess, then, is that the @ViewModel isn't handling references to other >> view models. I suspect that anything that is

Re: Unable to re-create a view model

2015-02-09 Thread Martin Grigorov
On Mon, Feb 9, 2015 at 4:35 PM, Dan Haywood wrote: > My guess, then, is that the @ViewModel isn't handling references to other > view models. I suspect that anything that isn't a simple value (int, > string, date etc) is being processed as an entity, and a bookmark is being > created for it. Bu

Re: Unable to re-create a view model

2015-02-09 Thread Dan Haywood
My guess, then, is that the @ViewModel isn't handling references to other view models. I suspect that anything that isn't a simple value (int, string, date etc) is being processed as an entity, and a bookmark is being created for it. But on rehydration this bookmark is converted to an oid and the

Re: Unable to re-create a view model

2015-02-09 Thread Martin Grigorov
Hi Dan, The commit was a minor optimization. The problem is still there. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Feb 9, 2015 at 4:20 PM, Dan Haywood wrote: > Hi Martin, > > I saw a commit from you on JdoObjectIdSerializer following on from this > m

Re: Unable to re-create a view model

2015-02-09 Thread Dan Haywood
Hi Martin, I saw a commit from you on JdoObjectIdSerializer following on from this mail, so did you sort out the issue (or do I need to take a look tonight?) Cheers Dan On 9 February 2015 at 08:17, Martin Grigorov wrote: > Hi, > > What could be the reason a ViewModel cannot be recreated with

Unable to re-create a view model

2015-02-09 Thread Martin Grigorov
Hi, What could be the reason a ViewModel cannot be recreated with the exception below ? Looking at org.apache.isis.objectstore.jdo.datanucleus.persistence.spi.JdoObjectIdSerializer#toJdoObjectId() it tries to find '_' separator and use the string before it to decide what class to load (byte, int,