Ok, let me throw out an oddity... and see if anyone can help me think 
through where to log to understand what is happening:

I have an object, event.event, it has a property, uidRegistrar.  I'm trying 
to create an event object and the decorate has a configure() that sets it 
null: setUidRegistrarNull().  Been in production for 3 years, all good.  On 
CF10 however, I'm getting:

transfer.com.object.exception.PropertyNotFoundException: The property that 
was searched for could not be found 

The property 'uidregistrar' could not be found in the object 'event.event'

URL: http://www3.motorsportreg.com:443/em360/index.cfm/event/events

   - /var/www/pukka/shared-prod/transfer/com/exception/Exception.cfc (*30, 
   CFTHROW*)
   - 
/var/www/pukka/shared-prod/transfer/com/object/exception/PropertyNotFoundException.cfc
 
   (*29, CF_UDFMETHOD*)
   - /var/www/pukka/shared-prod/transfer/com/object/Object.cfc (*233, 
   CF_TEMPLATEPROXY*)
   - /var/www/pukka/shared-prod/transfer/com/sql/Nullable.cfc (*307, 
   CF_TEMPLATEPROXY*)
   - /var/www/pukka/shared-prod/transfer/com/sql/Nullable.cfc (*175, 
   CF_UDFMETHOD*)
   - 
/var/www/pukka/shared-prod/generated/event.event$9BAD77B8699F80787CCAB85B8FEC651C.transfer
 
   (*212, CF_TEMPLATEPROXY*)
   - 
/var/www/pukka/shared-prod/generated/event.event@9BAD77B8699F80787CCAB85B8FEC651C.transfer
 
   (*408, CF_TEMPLATEPROXY*)
   - /var/www/pukka/shared-prod/model/event/event.cfc (*36, CF_UDFMETHOD*)
   - /var/www/pukka/shared-prod/transfer/com/TransferDecorator.cfc (*46, 
   CF_UDFMETHOD*)
   - /var/www/pukka/shared-prod/transfer/com/Transfer.cfc (*77, 
   CF_TEMPLATEPROXY*)
   - /var/www/pukka/shared-prod/transfer/com/Transfer.cfc (*113, 
   CF_UDFMETHOD*)
   - /var/www/pukka/shared-prod/model/event/eventGateway.cfc (*138, 
   CF_TEMPLATEPROXY*)


Now, as I've mentioned, I'm really, really confident that the property is 
defined in transfer.xml. :)  

Now here's the curious part.  In the file 
/var/www/pukka/shared-prod/generated/event.event$9BAD77B8699F80787CCAB85B8FEC651C.transfer,
 
the methods setuidregistrar, getuidregistrar and setuidregistrarnull are 
all defined.   It's this getNullable().getNullUUID(getClassName(), 
"uidregistrar") line that is throwing the error:


<cffunction name="setuidregistrarNull" access="public" returntype="void" 
default="void" hint="Set uidregistrar to its NULL value'" output="false">
<cfscript>
var nullValue = getNullable().getNulluuid(getClassName(), "uidregistrar");
setuidregistrar(nullValue);
</cfscript>
</cffunction>

So in Nullable.cfc, hasNullValue() tries to get the uidregistrar property 
on event.event:

var property = object.getPropertyByName(arguments.propertyName);

And it fails to find it in the property map inside Object.cfc:

<cffunction name="getPropertyByName" hint="Gets a property by name. Throws 
PropertyNotFoundException if the property doesn't exist" access="public" 
returntype="Property" output="false">
    <cfargument name="name" hint="The name of the property" type="string" 
required="Yes">
    <cfscript>
        var map = getPropertyMap();

        if(StructKeyExists(map, arguments.name))
        {
            return map[arguments.name];
        }

        if(getPrimaryKey().getName() eq arguments.name)
        {
            return getPrimaryKey();
        }
        
        createObject("component", 
"transfer.com.object.exception.PropertyNotFoundException").init(getClassName(), 
arguments.name);
    </cfscript>
</cffunction>

So the error is then thrown.  Clearly impossible, I would think, for 
Transfer to know the property exists and generate the transfer file with 
the generated methods but then not know it exists when I try to retrieve it 
and throws an error.  Unfortunately it's happening. :)

So... what I want to know is, is there a way to get at Transfer's 
configuration after it's parsed by XMLFileReader and dump it somehow?  How 
can I get a reference to what Transfer thinks is the current configuration 
and view it to see how it matches/differs what is in transfer.xml?  I know 
it shouldn't be different, but it is, so at least finding out if there's 
anything consistent in the failure would get me pointed towards a possible 
solution.


Brian


-- 
-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to