Re: debugging when invoking cfc's
hi shannon, i dont know if my example is exactly the same as what you were asking as my problem was specifically to do with debugging the cfc's when calling them as a web service. but i just worked out that i shouldnt be calling them as a web service until i have thorougly debugged them!!!. instead of cfinvoking the webservice, i cfinvoke the component directly and then it tells me all about the problem again (as the webservice is just a bridge to the cfc anyway) thanks anyway :) in relation to your question i havent seen any additional debugging provided by the cfeclipse plug in, but not familiar with it enough to say that with confidence :) so will be looking at others responses as well good luck richard >I am interested here as well, as debugging coldfusion code is mostly >involving tags in strategic places... Does the Eclipse plug-in >give any more information than the CF Debugging output? > >Hope this doesn't hi-jack the thread, >speeves > > > >> ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312707 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: debugging when invoking cfc's
I am interested here as well, as debugging coldfusion code is mostly involving tags in strategic places... Does the Eclipse plug-in give any more information than the CF Debugging output? Hope this doesn't hi-jack the thread, speeves On Wed, Sep 17, 2008 at 1:23 PM, Richard White <[EMAIL PROTECTED]> wrote: > thanks for the reply Dan, although that is a problem i do have at present > and as you rightly said it is trying to a reference complex variable as a > simple variable > > although this actual issue is not my problem. my problem is finding the > offending code that has this issue. once i can find the offending piece of > code then i will be able to fix it. > > my problem is that i am using cfinvoke to invoke a method in one of my > cfc's. that cfc method uses lots of other methods to complete its work. but > when i use the cfinvoke the tag context in the resulting error stops at the > cfinvoke tag. so the only detail i get of the error is about the complex > variable trying to be treated as a simple value. but it has no reference as > to what function it is in or what line of code the offending error is > occuring. > > is there a way i can get it to show this? > > thanks > > richard > > >The problem is that you are trying to treat a complex object as a simple > >value. > > > >Take the following example. I am creating array that holds 2 values. If I > >were to dump it everything would be fine but If I tried to output it like > >below I would get the same error you are. > > > > > > > > > > > >#skills# > > > >This is because the compiler does not understand what you are trying to > do. > >If you want to see the string representation of this object you could > always > >use the toString() method. > > > >#skills.toString()# > > > >Hope this clears it up a little. > > > >Thank You > >Dan Vega > >[EMAIL PROTECTED] > >http://www.danvega.org > > > > > > > > > >> > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312704 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: debugging when invoking cfc's
actually i must also say that i am not cfinvoking a cfc, i am actually invoking a web service, would this make any difference, and if so then how can i get it to provide me with more details? thanks > thanks for the reply Dan, although that is a problem i do have at > present and as you rightly said it is trying to a reference complex > variable as a simple variable > > although this actual issue is not my problem. my problem is finding > the offending code that has this issue. once i can find the offending > piece of code then i will be able to fix it. > > my problem is that i am using cfinvoke to invoke a method in one of my > cfc's. that cfc method uses lots of other methods to complete its work. > but when i use the cfinvoke the tag context in the resulting error > stops at the cfinvoke tag. so the only detail i get of the error is > about the complex variable trying to be treated as a simple value. but > it has no reference as to what function it is in or what line of code > the offending error is occuring. > > is there a way i can get it to show this? > > thanks > > richard > > >The problem is that you are trying to treat a complex object as a > simple > >value. > > > >Take the following example. I am creating array that holds 2 values. > If I > >were to dump it everything would be fine but If I tried to output it > like > >below I would get the same error you are. > > > > > > > > > > > >#skills# > > > >This is because the compiler does not understand what you are trying > to do. > >If you want to see the string representation of this object you could > always > >use the toString() method. > > > >#skills.toString()# > > > >Hope this clears it up a little. > > > >Thank You > >Dan Vega > >[EMAIL PROTECTED] > >http://www.danvega.org > > > > > > > > > >> ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312703 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: debugging when invoking cfc's
thanks for the reply Dan, although that is a problem i do have at present and as you rightly said it is trying to a reference complex variable as a simple variable although this actual issue is not my problem. my problem is finding the offending code that has this issue. once i can find the offending piece of code then i will be able to fix it. my problem is that i am using cfinvoke to invoke a method in one of my cfc's. that cfc method uses lots of other methods to complete its work. but when i use the cfinvoke the tag context in the resulting error stops at the cfinvoke tag. so the only detail i get of the error is about the complex variable trying to be treated as a simple value. but it has no reference as to what function it is in or what line of code the offending error is occuring. is there a way i can get it to show this? thanks richard >The problem is that you are trying to treat a complex object as a simple >value. > >Take the following example. I am creating array that holds 2 values. If I >were to dump it everything would be fine but If I tried to output it like >below I would get the same error you are. > > > > > >#skills# > >This is because the compiler does not understand what you are trying to do. >If you want to see the string representation of this object you could always >use the toString() method. > >#skills.toString()# > >Hope this clears it up a little. > >Thank You >Dan Vega >[EMAIL PROTECTED] >http://www.danvega.org > > > > >> ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312702 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: debugging when invoking cfc's
The problem is that you are trying to treat a complex object as a simple value. Take the following example. I am creating array that holds 2 values. If I were to dump it everything would be fine but If I tried to output it like below I would get the same error you are. #skills# This is because the compiler does not understand what you are trying to do. If you want to see the string representation of this object you could always use the toString() method. #skills.toString()# Hope this clears it up a little. Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org On Wed, Sep 17, 2008 at 12:29 PM, Richard White <[EMAIL PROTECTED]> wrote: > to provide more details... i have just got an error and it tells that > complex error types cannot be converted to simple values... but gives me no > clue as to what line of code it is talking about, so i am having to search > through the code to find it > > thanks > > > hi, > > > > i testing my cfc's by using the cfinvoke. and then if there is an > > error when running the cfc's then i have an exception handler to give > > me the details of the error > > > > however, although it gives me the details of the error it only > > provides me with the tag context until it hits the cfinvoke tag - any > > of the processing inside of the cfc's are not included in the tag > > context and therefore even though it may tell me i have an error with > > something it doesnt tell me what page and what line the error occured > > > > does anyone have a solution for this? not too sure if i have explaine > > this correctly but basically i want it to point me to the cfc function > > where the error occured and what line it occured on > > > > thanks > > > > richard > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312699 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: debugging when invoking cfc's
to provide more details... i have just got an error and it tells that complex error types cannot be converted to simple values... but gives me no clue as to what line of code it is talking about, so i am having to search through the code to find it thanks > hi, > > i testing my cfc's by using the cfinvoke. and then if there is an > error when running the cfc's then i have an exception handler to give > me the details of the error > > however, although it gives me the details of the error it only > provides me with the tag context until it hits the cfinvoke tag - any > of the processing inside of the cfc's are not included in the tag > context and therefore even though it may tell me i have an error with > something it doesnt tell me what page and what line the error occured > > does anyone have a solution for this? not too sure if i have explaine > this correctly but basically i want it to point me to the cfc function > where the error occured and what line it occured on > > thanks > > richard ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312697 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
debugging when invoking cfc's
hi, i testing my cfc's by using the cfinvoke. and then if there is an error when running the cfc's then i have an exception handler to give me the details of the error however, although it gives me the details of the error it only provides me with the tag context until it hits the cfinvoke tag - any of the processing inside of the cfc's are not included in the tag context and therefore even though it may tell me i have an error with something it doesnt tell me what page and what line the error occured does anyone have a solution for this? not too sure if i have explaine this correctly but basically i want it to point me to the cfc function where the error occured and what line it occured on thanks richard ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312696 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4