Skip to main content
Participant
May 5, 2011
Answered

Cairngorm Persistence w/ Spicelib & Parsley 2.4

  • May 5, 2011
  • 3 replies
  • 6461 views

Doesn't look like this is a compatible combination at the moment. Any word on an update for this library?

At the moment I've been getting an error saying "ReferenceError: Error #1069: Property _bindings not found..." on my SqlMap.  whenever trying to run a query.

This topic has been closed for replies.
Correct answer promanens

This bug has been fixed and should be included with the next release.

3 replies

promanensCorrect answer
Participant
June 21, 2011

This bug has been fixed and should be included with the next release.

Participating Frequently
June 27, 2011

Thanks,

And for this one :https://bugs.adobe.com/jira/browse/CGM-86 any news ?

Participating Frequently
May 7, 2011

I get the same errors, using the samples

using 0.9 I get:

Error #1069: Property _bindingsByDestination not found on com.adobe.cairngorm.persistence.sample.data.PersonSqlMap and there is no default value.

using 0.10 I get :

Error #1069: Property _bindingsBeginWithWord not found on com.adobe.cairngorm.persistence.sample.data.PersonSqlMap and there is no default value.

Always at the same place: ObjectUtil.as (l.62)

Any idea ?

ceas_nycAuthor
Participant
May 7, 2011

From what I can tell so far it looks like the spicelib ClassInfo getProperties method is returning extra properties, more than just the grammar ones defined in sqlmap mxml files. Maybe other properties associated with setting up bindings when converting mxml files to actionscript? I don't know. I'm not too familiar with that area. I don't know if that's the desired feature of that method either. If so then the persistence library would need to change and if not then  the spicefactory guys should know.

I just threw the following in for a quick fix at line 60 of the ObjectUtil class. It seems to be ok so far but not fully tested. all those extra properties had null values on the declaredBy property.

if(property.declaredBy == null)

     continue;

Alex, I was able to reproduce the issue using the PersistenceTest project from svn, but given what I just said do you have any input on where I should be filing this.

Participating Frequently
May 7, 2011

Thank you ceas nyc,

This "fix" works for me... Not fully tested too, but I can temporaly let it like this...

I found nothing about this issue here : http://opensource.powerflasher.com/jira/secure/Dashboard.jspa

Participating Frequently
May 6, 2011

Can you please try the attached SWC?

ceas_nycAuthor
Participant
May 6, 2011

Still getting the same error, happening on line 62 of the library's ObjectUtil class.

Participating Frequently
May 6, 2011

This might not be related to the migration. I don't see currently how it can be related. Looks more like how the library is used in your scenario. That is potentially a bug in the Persistence lib. Do you have a way to isolate this and file a bug into our JIRA bugbase?