Bill,
Don't know if you're still following this thread, but something that
sticks out to me between the differences in my Flex Output Console
when running the contact sample and the cfcontact sample are in the
following lines:

for the contact sample:
...
[Flex] [DEBUG] Started transaction using jndi name:
java:comp/UserTransaction
[Flex] [DEBUG] Committed transaction
[Flex] [DEBUG] Before manage sequence sequence info for: contact
numSequences= 0
numClients=0 numItems=0 numFills=0 numAssociations=0
[Flex] [DEBUG] After manage sequence sequence info for: contact
numSequences= 0
numClients=0 numItems=0 numFills=0 numAssociations=0
[Flex] [DEBUG] After invoke service: data-service
  reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
...


for the cfcontact sample:
...
[Flex] [DEBUG] Started transaction using jndi name:
java:comp/UserTransaction
[Flex] [DEBUG] [CFDataServicesAdapter] destination: cfcontact invoking
SYNC meth
od, 1 change(s) to process.
[Flex] [DEBUG] Rolledback transaction
[Flex] [DEBUG] After invoke service: data-service
  reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
...

I can't find any information on what "Rolledback transaction" means,
but if this is any indication where my error is happening, than it's
in the processing of my SYNC method call, not AFTER the method has
returned. Is this correct?
-Dustin


--- In [email protected], "dirtmediaworld" <[EMAIL PROTECTED]> wrote:
>
> Ok, so I reinstalled the flash player, and ran
> http://localhost:8700/samples/dataservice/contact/contactmgr.mxml and
> that worked fine. Then I ran
> http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml
> again, and I got the same errors as before.
>
> Since it is successfully updating the database and then giving me an
> error from conflictHandler saying "Reverting to server value", doesn't
> the error have to be happening somewhere between the return from my
> ContactAssembler.cfc and my mxml conflictHandler()?
>
> I output the conflicts object from inside my conflictHandler and here
> it is:
>
> (mx.data::Conflict)#0
>   cause = (mx.data.messages::DataMessage)#1
>     body = (Array)#2
>       [0] (Array)#3
>         [0] "phone"
>       [1] (samples.contact::Contact)#4
>         address = "sAddre"
>         city = "sCity"
>         contactId = 36
>         firstName = "sample"
>         lastName = "sLast"
>         phone = "sPhone2"
>         state = "sState"
>         uid = "36"
>         zip = "sZip"
>       [2] (samples.contact::Contact)#5
>         address = "sAddre"
>         city = "sCity"
>         contactId = 36
>         firstName = "sample"
>         lastName = "sLast"
>         phone = "sPhone2s"
>         state = "sState"
>         uid = "36"
>         zip = "sZip"
>     clientId = "E5812991-6534-A44D-387C-483FE2875CF1"
>     correlationId = "621A7278-80E8-5A78-5F0A-483FF053212A"
>     destination = "cfcontact"
>     headers = (Object)#6
>       DSEndpoint = "cf-dataservice-rtmp"
>     identity = (Object)#7
>       contactId = 36
>     messageId = "12A6A6EA-28A7-49D1-849B-483FEC0D3E59"
>     operation = 3
>     timestamp = 1147968417984
>     timeToLive = 0
>   clientObject = (samples.contact::Contact)#8
>     address = "sAddre"
>     city = "sCity"
>     contactId = 36
>     firstName = "sample"
>     lastName = "sLast"
>     phone = "sPhone2s"
>     state = "sState"
>     uid = "36"
>     zip = "sZip"
>   destination = "cfcontact"
>   originalObject = (samples.contact::Contact)#9
>     address = "sAddre"
>     city = "sCity"
>     contactId = 36
>     firstName = "sample"
>     lastName = "sLast"
>     phone = "sPhone2"
>     state = "sState"
>     uid = "36"
>     zip = "sZip"
>   propertyNames = (Array)#10
>     [0] "phone"
>     [1] "address"
>     [2] "contactId"
>     [3] "state"
>     [4] "zip"
>     [5] "city"
>     [6] "firstName"
>     [7] "lastName"
>   resolved = false
>   serverObject = (mx.collections::ArrayCollection)#11
>     filterFunction = (null)
>     length = 1
>     list = (mx.collections::ArrayList)#12
>       length = 1
>       source = (Array)#13
>         [0] (samples.contact::Contact)#14
>           address = "sAddre"
>           city = "sCity"
>           contactId = 36
>           firstName = "sample"
>           lastName = "sLast"
>           phone = "sPhone2s"
>           state = "sState"
>           uid = "296FF520-07FC-215C-C81A-483FF1CAACBC"
>           zip = "sZip"
>       uid = "E8FA3493-7D92-18F2-450B-483FF18BE9C9"
>     sort = (null)
>     source = (Array)#13
>   serverObjectReferencedIds = (null)
>
> I've tried reconfiguring all the files and starting from scratch. The
> only thing I can think of is to try it again. No one else has had this
> problem?
>
> Thanks!
> -Dustin
>
>
> --- In [email protected], "Bill Sahlas" <bsahlas@> wrote:
> >
> > Although you've described your situation and problem very well,
nothing
> > stands out as a problem or missed-step.  You say that the values are
> > going through and there's no errors on the CF side (console output).
> > One thing I don't think that the CF lab's readme's or notes say is to
> > make sure that as you install these updated version of these products
> > that you must also upgrade the Flash Player along with it using the
> > player installers located at C:\fds2\resources\player\debug.  Perhaps
> > there's a glitch with how the player is interpreting and
processing the
> > compiled flex code.  Another thing to try is if/when you run the
> > http://localhost:8700/samples/dataservice/contact/contactmgr.mxml
using
> > the same flash player does that work when updating?
> >
> > 
> >
> > Bill
> >
> > ________________________________
> >
> > From: [email protected]
[mailto:[EMAIL PROTECTED] On
> > Behalf Of dirtmediaworld
> > Sent: Wednesday, May 17, 2006 9:05 PM
> > To: [email protected]
> > Subject: [flexcoders] Re: CF Flex Connectivity : Contact Example
> >
> > 
> >
> > I'm connecting to the contact.mdb that was included in the Adobe Labs
> > contact_sample.zip file. I've named the datasource: FlexDataServices.
> >
> > The database fields are:
> > contactId  [AutoNumer]
> > firstName  [Text]
> > lastName   [Text]
> > address    [Text]
> > city       [Text]
> > state      [Text]
> > zip        [Text]
> > phone      [Text]
> >
> > My Contact.as file is in here:
> >
C:\fds2\jrun4\servers\default\samples\dataservice\cfcontact\samples\cont
> > act\Contact.as
> >
> > and it looks like this:
> > package samples.contact
> > {
> >
> >         [Managed]
> >       [RemoteClass(alias="samples.contact.Contact")]
> >       public class Contact
> >       {
> >             public var contactId:int;
> >
> >             public var firstName:String = "";
> >
> >             public var lastName:String = "";
> >
> >             public var address:String = "";
> >
> >             public var city:String = "";
> >
> >             public var state:String = "";
> >
> >             public var zip:String = "";
> >
> >             public var phone:String = "";
> >       }
> > }
> >
> > My Contact.cfc is here:
> > C:\CFusionMX7\wwwroot\samples\contact\Contact.cfc
> >
> > and it looks like this:
> >
> > <cfcomponent output="false" alias="samples.contact.Contact">
> >       <!---
> >             These are properties that are exposed by this CFC object.
> >             These property definitions are used when calling this
CFC as
> > a web
> > services,
> >             passed back to a flash movie, or when generating
> > documentation
> >
> >             NOTE: these cfproperty tags do not set any default
property
> > values.
> >       --->
> >       <cfproperty name="contactId" type="numeric" default="0">
> >       <cfproperty name="firstName" type="string" default="">
> >       <cfproperty name="lastName" type="string" default="">
> >       <cfproperty name="address" type="string" default="">
> >       <cfproperty name="city" type="string" default="">
> >       <cfproperty name="state" type="string" default="">
> >       <cfproperty name="zip" type="string" default="">
> >       <cfproperty name="phone" type="string" default="">
> >
> >       <cfscript>
> >             //Initialize the CFC with the default properties values.
> >             variables.contactId = 0;
> >             variables.firstName = "";
> >             variables.lastName = "";
> >             variables.address = "";
> >             variables.city = "";
> >             variables.state = "";
> >             variables.zip = "";
> >             variables.phone = "";
> >       </cfscript>
> >
> >       <cffunction name="init" output="false" returntype="Contact">
> >             <cfreturn this>
> >       </cffunction>
> >       <cffunction name="getContactId" output="false" access="public"
> > returntype="any">
> >             <cfreturn variables.ContactId>
> >       </cffunction>
> >
> >       <cffunction name="setContactId" output="false" access="public"
> > returntype="void">
> >             <cfargument name="val" required="true">
> >             <cfif (IsNumeric(arguments.val)) OR (arguments.val EQ "")>
> >                   <cfset variables.ContactId = arguments.val>
> >             <cfelse>
> >                   <cfthrow message="'#arguments.val#' is not a valid
> > numeric"/>
> >             </cfif>
> >       </cffunction>
> >
> >       <cffunction name="getFirstName" output="false" access="public"
> > returntype="any">
> >             <cfreturn variables.FirstName>
> >       </cffunction>
> >
> >       <cffunction name="setFirstName" output="false" access="public"
> > returntype="void">
> >             <cfargument name="val" required="true">
> >             <cfset variables.FirstName = arguments.val>
> >       </cffunction>
> >
> >       <cffunction name="getLastName" output="false" access="public"
> > returntype="any">
> >             <cfreturn variables.LastName>
> >       </cffunction>
> >
> >       <cffunction name="setLastName" output="false" access="public"
> > returntype="void">
> >             <cfargument name="val" required="true">
> >             <cfset variables.LastName = arguments.val>
> >       </cffunction>
> >
> >       <cffunction name="getAddress" output="false" access="public"
> > returntype="any">
> >             <cfreturn variables.Address>
> >       </cffunction>
> >
> >       <cffunction name="setAddress" output="false" access="public"
> > returntype="void">
> >             <cfargument name="val" required="true">
> >             <cfset variables.Address = arguments.val>
> >       </cffunction>
> >
> >       <cffunction name="getCity" output="false" access="public"
> > returntype="any">
> >             <cfreturn variables.City>
> >       </cffunction>
> >
> >       <cffunction name="setCity" output="false" access="public"
> > returntype="void">
> >             <cfargument name="val" required="true">
> >             <cfset variables.City = arguments.val>
> >       </cffunction>
> >
> >       <cffunction name="getState" output="false" access="public"
> > returntype="any">
> >             <cfreturn variables.State>
> >       </cffunction>
> >
> >       <cffunction name="setState" output="false" access="public"
> > returntype="void">
> >             <cfargument name="val" required="true">
> >             <cfset variables.State = arguments.val>
> >       </cffunction>
> >
> >       <cffunction name="getZip" output="false" access="public"
> > returntype="any">
> >             <cfreturn variables.Zip>
> >       </cffunction>
> >
> >       <cffunction name="setZip" output="false" access="public"
> > returntype="void">
> >             <cfargument name="val" required="true">
> >             <cfset variables.Zip = arguments.val>
> >       </cffunction>
> >
> >       <cffunction name="getPhone" output="false" access="public"
> > returntype="any">
> >             <cfreturn variables.Phone>
> >       </cffunction>
> >
> >       <cffunction name="setPhone" output="false" access="public"
> > returntype="void">
> >             <cfargument name="val" required="true">
> >             <cfset variables.Phone = arguments.val>
> >       </cffunction>
> > </cfcomponent>
> >
> > All the above files are unmodified originals from the
> > contact_sample.zip. Just dropped them in where the tutorial told me
> > too. Any clues? Thanks!
> > -Dustin
> >
> >
> > --- In [email protected], "Bill Sahlas" <bsahlas@> wrote:
> > >
> > > What database are you connecting to and updating? The properties in
> > the
> > > Contact.as class case must match that in the db
> > >
> > > 
> > >
> > > ________________________________
> > >
> > > From: [email protected] [mailto:[EMAIL PROTECTED]
> > On
> > > Behalf Of dirtmediaworld
> > > Sent: Wednesday, May 17, 2006 3:31 PM
> > > To: [email protected]
> > > Subject: [flexcoders] Re: CF Flex Connectivity : Contact Example
> > >
> > > 
> > >
> > > I should also note that the database is being updated with the new
> > > values no matter if I'm use "Update", "Delete", or "New". Just
getting
> > > these errors with it.
> > > -Dustin
> > >
> > > --- In [email protected], "dirtmediaworld" <dustin@> wrote:
> > > >
> > > > I've followed Adobe Labs cfcontact example to a T and am
getting the
> > > > following error when trying to "Update" the contact form. It
has no
> > > > problem running the Fill command, but on the Sync command I get
> > these:
> > > >
> > > > Flash Player 9 error is:
> > > >
> > > > Error: Unknown Property 'phone'.
> > > >       at
> > > >
> > >
> >
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscrip
> > > t/flash/proxy::getProperty()
> > > >       at mx.data::ConflictResolver/acceptServer()
> > > >       at mx.data::Conflict/acceptServer()
> > > >       at contactmgr/::conflictHandler()
> > > >       at flash.events::EventDispatcher/dispatchEvent()
> > > >       at
> > > >
> > >
> >
mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::processCo
> > > nflict()
> > > >       at mx.data::CommitResponder/result()
> > > >       at mx.rpc::AsyncRequest/acknowledge()
> > > >       at
> > > >
> > >
> >
::NetConnectionMessageResponder/NetConnectionChannel.as$42:NetConnection
> > > MessageResponder::resultHandler()
> > > >       at mx.messaging::MessageResponder/result()
> > > >
> > > >
> > > >
> > > > And the flex console output window error is:
> > > >
> > > > [Flex] [DEBUG] Before invoke service: data-service
> > > >   incomingMessage: Flex Message (flex.data.messages.DataMessage)
> > > >     operation = transacted
> > > >     id = null
> > > >     clientId = 80397338-7A0E-A187-567C-37A549BDCEA9
> > > >     correlationId =
> > > >     destination = cfcontact
> > > >     messageId = BBA042B3-2C63-9E1B-0E3D-43B3C63324C1
> > > >     timestamp = 1147892123281
> > > >     timeToLive = 0
> > > >     body =
> > > >     [
> > > >       Flex Message (flex.data.messages.DataMessage)
> > > >           operation = update
> > > >           id = {contactId=1}
> > > >           clientId = 9281CCE5-0A19-2654-396D-43ACDD38628A
> > > >           correlationId = BBA042B3-2C63-9E1B-0E3D-43B3C63324C1
> > > >           destination = cfcontact
> > > >           messageId = BDA31D07-AD70-147B-C9BD-43ACF9F7AC61
> > > >           timestamp = 0
> > > >           timeToLive = 0
> > > >           body =
> > > >           [
> > > >
> > > >             [
> > > >               zip
> > > >             ],
> > > >             {phone=555-1111, uid=1, address=1234 Main st,
state=MA,
> > > > contactId=1,
> > > >  zip=02123, firstName=Tom, city=Boston, lastName=Jordahl},
> > > >             {phone=555-1111, uid=1, address=1234 Main st,
state=MA,
> > > > contactId=1,
> > > >  zip=02123d, firstName=Tom, city=Boston, lastName=Jordahl}
> > > >           ]
> > > >     ]
> > > >     hdr(DSEndpoint) = cf-dataservice-rtmp
> > > >
> > > > [Flex] [DEBUG] Started transaction using jndi name:
> > > > java:comp/UserTransaction
> > > > [Flex] [DEBUG] [CFDataServicesAdapter] destination: cfcontact
> > invoking
> > > > SYNC meth
> > > > od, 1 change(s) to process.
> > > > [Flex] [DEBUG] Rolledback transaction
> > > > [Flex] [DEBUG] After invoke service: data-service
> > > >   reply: Flex Message (flex.messaging.messages.AcknowledgeMessage)
> > > >     clientId = null
> > > >     correlationId = null
> > > >     destination = null
> > > >     messageId = 8049E96B-ED19-41D0-2757-CEBD2E604544
> > > >     timestamp = 1147892123453
> > > >     timeToLive = 0
> > > >     body =
> > > >     [
> > > >       Flex Message (flex.data.messages.DataErrorMessage)
> > > >           clientId = null
> > > >           correlationId = BDA31D07-AD70-147B-C9BD-43ACF9F7AC61
> > > >           destination = null
> > > >           messageId = 8049E96B-ED0C-3675-8198-42CAEF3BF4E4
> > > >           timestamp = 1147892123453
> > > >           timeToLive = 0
> > > >           body = null
> > > >           code =  null
> > > >           message =  null
> > > >           details =  null
> > > >           rootCause =  null
> > > >           body =  null
> > > >           extendedData =  null
> > > >           cause = Flex Message (flex.data.messages.DataMessage)
> > > >             operation = update
> > > >             id = {contactId=1}
> > > >             clientId = 9281CCE5-0A19-2654-396D-43ACDD38628A
> > > >             correlationId = BBA042B3-2C63-9E1B-0E3D-43B3C63324C1
> > > >             destination = cfcontact
> > > >             messageId = BDA31D07-AD70-147B-C9BD-43ACF9F7AC61
> > > >             timestamp = 1147892123281
> > > >             timeToLive = 0
> > > >             body =
> > > >             [
> > > >
> > > >               [
> > > >                 zip
> > > >               ],
> > > >               {phone=555-1111, uid=1, address=1234 Main st,
> > state=MA,
> > > > contactId=
> > > > 1, zip=02123, firstName=Tom, city=Boston, lastName=Jordahl},
> > > >               {phone=555-1111, uid=1, address=1234 Main st,
> > state=MA,
> > > > contactId=
> > > > 1, zip=02123d, firstName=Tom, city=Boston, lastName=Jordahl}
> > > >             ]
> > > >             hdr(DSEndpoint) = cf-dataservice-rtmp
> > > >           serverObject = [{phone=555-1111, address=1234 Main st,
> > > > contactId=1, st
> > > > ate=MA, zip=02123d, city=Boston, firstName=Tom, lastName=Jordahl}]
> > > >           propertyNames =
> > > >           [
> > > >             phone,
> > > >             address,
> > > >             contactId,
> > > >             state,
> > > >             zip,
> > > >             city,
> > > >             firstName,
> > > >             lastName
> > > >           ]
> > > >     ]
> > > >
> > > >
> > > > And nothing happens in my Cold Fusion console output window.
Anyone
> > > > have any ideas? I'm pretty new at Flex and CF so I could be
missing
> > > > something small and simple. I haven't made any changes to the CFCs
> > or
> > > > the flex xml configuration files other than those described at:
> > > >
> > >
> >
http://labs.adobe.com/wiki/index.php/ColdFusion/Flex_Connectivity:Sample
> > > s:Contact_Manager
> > > >
> > > > Thanks!
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > >
> > >
> > >
> > >
> > > SPONSORED LINKS
> > >
> > > Web site design development
> > >
> >
<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> > >
> >
site+design+development&w2=Computer+software+development&w3=Software+des
> > >
> >
ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> > > tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> 
> > >
> > > Computer software development
> > >
> >
<http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We
> > >
> >
b+site+design+development&w2=Computer+software+development&w3=Software+d
> > >
> >
esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> > > actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> 
> > >
> > > Software design and development
> > >
> >
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
> > >
> >
Web+site+design+development&w2=Computer+software+development&w3=Software
> > >
> >
+design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> > > practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> 
> > >
> > > Macromedia flex
> > >
> >
<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
> > >
> >
development&w2=Computer+software+development&w3=Software+design+and+deve
> > >
> >
lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> > > 66&.sig=OO6nPIrz7_EpZI36cYzBjw> 
> > >
> > > Software development best practice
> > >
> >
<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&
> > >
> >
w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> > >
> >
are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> > > st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> 
> > >
> > > 
> > >
> > > 
> > >
> > > ________________________________
> > >
> > > YAHOO! GROUPS LINKS
> > >
> > > 
> > >
> > > *      Visit your group "flexcoders
> > > <http://groups.yahoo.com/group/flexcoders> " on the web.
> > >        
> > > *      To unsubscribe from this group, send an email to:
> > >       [EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>
> > >        
> > > *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > > Service <http://docs.yahoo.com/info/terms/> .
> > >
> > > 
> > >
> > > ________________________________
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> >
> >
> >
> > ________________________________
> >
> > YAHOO! GROUPS LINKS
> >
> > 
> >
> > *      Visit your group "flexcoders
> > <http://groups.yahoo.com/group/flexcoders> " on the web.
> >        
> > *      To unsubscribe from this group, send an email to:
> >       [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>
> >        
> > *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service <http://docs.yahoo.com/info/terms/> .
> >
> > 
> >
> > ________________________________
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to