AssertionError means you went into a corner case :-)
On Apr 24, 2012, at 4:53 PM, Matt Wringe wrote:
nvm, I think I go it, Thanks
On Tue, 2012-04-24 at 10:45 -0400, Matt Wringe wrote:
> On Tue, 2012-04-24 at 16:02 +0200, Julien Viet wrote:
>> the reason is that the child should be added to the parent node before you start
to set property on it.
>>
>> the main reason is that in JCR you can only create a Node object by an add method
before setting property on it.
>>
>> let me know if it works
>
> I have tried so many permutations trying to get things to work. Now I
> get an error about retrieving the list of child elements:
>
> Caused by: java.lang.AssertionError: Cannot invoke method getRedirects()
> with arguments ()
> at
> org.chromattic.core.ObjectContext.createCannotInvokeError(ObjectContext.java:113)
> at org.chromattic.core.ObjectContext.invoke(ObjectContext.java:67)
>
>
>> On Apr 24, 2012, at 3:50 PM, Matt Wringe wrote:
>>
>>> I have been struggling to get the mobile configuration stored into mop
>>> through chromattic (not an expert on jcr/mop/chromattic/... and having
>>> many of the error messages not being outputted doesn't really help).
>>>
>>> I can add a mixin with a property without having problems, but trying to
>>> add a mixin with contains child elements is where I am running into
>>> issues.
>>>
>>> I can create a child node from the mixin using a create, but when I go
>>> to set a value on the child node I always get a IllegalStateException on
>>> TransientEntityContextState.setPropertyValue
>>>
>>> I assume I am doing something obviously wrong somewhere and that is
>>> should be a simple change to get it working.
>>>
>>> Any jcr/mop/chromattic experts know what I am doing wrong here?
>>>
>>> Thanks,
>>>
>>> Matt Wringe
>>>
>>> The nodetypes.xml:
>>>
https://github.com/mwringe/gatein-portal/commit/ad9dea55c0601281d9e988f76...
>>>
>>> Mixin class:
>>>
https://github.com/mwringe/gatein-portal/blob/ad9dea55c0601281d9e988f76e0...
>>>
>>> Child class:
>>>
https://github.com/mwringe/gatein-portal/blob/ad9dea55c0601281d9e988f76e0...
>>>
>>>
>>> _______________________________________________
>>> gatein-dev mailing list
>>> gatein-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/gatein-dev
>>
>
>
> _______________________________________________
> gatein-dev mailing list
> gatein-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/gatein-dev