Fixed it. The applib-StringWithAdditionalInfo had some properties with getters and setters. Removing the setters worked.

On 11/27/2015 09:33 AM, Erik de Hair wrote:
Hi,

I use a custom component in some view model. When I click to another entity from this view model and then go back to the view model using the browser's back-button I get the following error:

Caused by: org.apache.isis.core.commons.exceptions.IsisException: Resolve state (for PojoAdapter@296eac2b[T:!nl.pocos.applib.StringWithAdditionalInfo:c7bc4f62-4425-463a-b142-148020171ff0,specification=StringWithAdditionalInfo,version=null,pojo-toString=null,pojo-hash=#1b3d10bf]) inconsistent with fact that data exists for fields at org.apache.isis.core.runtime.memento.Memento.updateFieldsAndResolveState(Memento.java:307) at org.apache.isis.core.runtime.memento.Memento.updateObject(Memento.java:283) at org.apache.isis.core.runtime.memento.Memento.recreateObject(Memento.java:224) at org.apache.isis.viewer.wicket.model.mementos.ObjectAdapterMemento$Type$3.recreateAdapter(ObjectAdapterMemento.java:159) at org.apache.isis.viewer.wicket.model.mementos.ObjectAdapterMemento$Type.getAdapter(ObjectAdapterMemento.java:183) at org.apache.isis.viewer.wicket.model.mementos.ObjectAdapterMemento.getObjectAdapter(ObjectAdapterMemento.java:280) at org.apache.isis.viewer.wicket.model.models.EntityModel.load(EntityModel.java:326) at org.apache.isis.viewer.wicket.model.models.EntityModel.load(EntityModel.java:341) at org.apache.isis.viewer.wicket.model.models.EntityModel.load(EntityModel.java:62)

Does that ring a bell?

My component is nl.pocos.wicket.ui.components.scalars.string.AdditionalInfoStringPanel (shared some code [1])

Thanks,
Erik

[1] https://github.com/erikdehair/additionalinfostringpanel


Reply via email to