RE: [ACFUG Discuss] CF 10 and REST and wtf?
Thanks, Bill. Thankfully, we have many anchors-and indeed buoys, lighthouses, and radars, if I can stretch the analogy-- both in the wider CF world and in the ACFUG specifically. :-) I've learned from so many of them, and I acknowledged as much in my prefatory remarks of the CF10 WACK book. We are all so very privileged to be in such a great, giving community. I know a lot of people want to regard it as fading. I see it as still pretty vibrant. But then I am old, nostalgic, and need reading classes these days, so perhaps how I "see" things may not really mean as much to some as it used to. ;-) /charlie From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Bill Brock Sent: Tuesday, August 20, 2013 5:37 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] CF 10 and REST and wtf? Ah, for what it's worth, ditto on Ajas's comment - I like your "reference librarian" comment - does fit. J In all seriousness, you are a great anchor resource for the community, and you do deserve the thanks. Bill - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
RE: [ACFUG Discuss] CF 10 and REST and wtf?
Thanks for the kind regards, Ajas. I do feel a bit like the reference librarian for the CF community sometimes. :-) I think it's just that since CF server troubleshooting is all I do, I just have these topics at top of mind, whereas for many they have to rely on what they can google. Sadly, a lot of misinformation is then spread that way, and it's too bad that sometimes I can come off to some as arrogant and condescending in trying to correct some of those misperceptions or misunderstandings. That's probably the negative to my being in this position, and though I try hard not to abuse it or offend others, it seems to just kind of come with the territory. And I can only hope then that I help far more than I hurt. :-) So thanks again for the encouragement. Some may think you're "feeding the monster", but I will accept it simply in the genuine appreciation with which you meant it. :-) /charlie From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Ajas Mohammed Sent: Monday, August 19, 2013 1:42 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] CF 10 and REST and wtf? Wow, Great Points Charlie. We are not on CF 10 yet but that is definitely worth remembering. What would we do without you Charlie? I hate to speak for others, but from my side, I have learned so many *great/cool* things from you. Appreciate it man. iUseDropbox( <http://db.tt/63Lvone9> http://db.tt/63Lvone9) http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Sun, Aug 18, 2013 at 10:27 PM, Charlie Arehart wrote: Doug, here's something even some experienced hoster's don't know: after installing CF10, and/or adding updates, for many of the updates you need to then rebuild the web server connector (meaning they have to open CF's web server config tool, then remove and re-add the connection of a site or all sites to a CF instance.) Only on doing that do they get the benefit of some connector changes that were introduced in a few of the updates (of the 11 updates to CF 10 so far since last May). This is mentioned pretty clearly in the update page, but most people in my experience are just missing/ignoring it, and they just apply the update and never rebuild the connectors. They can confirm if they have by checking the date of that very isapi_redirect.dll page. If it's dates in March of 2012, or November of 2012, it's old. If it's June of 2013, it's as of update 11. If they are not yet on update 11, but it's dated in March, they need to update to at least update 5 and then rebuild the connector, to solve some pretty serious problems that update 5 addressed (last year). Now, I don't know if any of these updates that change the connector will solve your specific REST problem, but if indeed there is some related problem with the connector itself, then it's worth a shot. (I don't work with REST myself, so don't know how to connect any other dots based on what you've reported previously.) /charlie - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
Re: [ACFUG Discuss] CF 10 and REST and wtf?
Wow, Great Points Charlie. We are not on CF 10 yet but that is definitely worth remembering. What would we do without you Charlie? I hate to speak for others, but from my side, I have learned so many *great/cool* things from you. Appreciate it man. iUseDropbox(http://db.tt/63Lvone9) http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Sun, Aug 18, 2013 at 10:27 PM, Charlie Arehart wrote: > Doug, here’s something even some experienced hoster’s don’t know: after > installing CF10, and/or adding updates, for many of the updates you need to > then rebuild the web server connector (meaning they have to open CF’s web > server config tool, then remove and re-add the connection of a site or all > sites to a CF instance.) Only on doing that do they get the benefit of some > connector changes that were introduced in a few of the updates (of the 11 > updates to CF 10 so far since last May). > > This is mentioned pretty clearly in the update page, but most people in my > experience are just missing/ignoring it, and they just apply the update and > never rebuild the connectors. They can confirm if they have by checking the > date of that very isapi_redirect.dll page. If it’s dates in March of 2012, > or November of 2012, it’s old. If it’s June of 2013, it’s as of update 11. > If they are not yet on update 11, but it’s dated in March, they need to > update to at least update 5 and then rebuild the connector, to solve some > pretty serious problems that update 5 addressed (last year). > > Now, I don’t know if any of these updates that change the connector will > solve your specific REST problem, but if indeed there is some related > problem with the connector itself, then it’s worth a shot. (I don’t work > with REST myself, so don’t know how to connect any other dots based on what > you’ve reported previously.) > > /charlie > > ** ** > > *From:* ad...@acfug.org [mailto:ad...@acfug.org] *On Behalf Of *Douglas > Knudsen > *Sent:* Sunday, August 18, 2013 10:16 AM > > *To:* discussion@acfug.org > *Subject:* Re: [ACFUG Discuss] CF 10 and REST and wtf? > > ** ** > > WEll, no solution still on this. Hostek moved the site to a different > "newer" server, the "hands in the air we already rebooted" solution. Still > same behavior. The REST service cranks up, but then dies out within 24 > hours. "*C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll" *is in > the error page from IIS, almost makes me think the connectors are at fault. > But then, I've been away from admining CF for too long. Might ask Hostek > to try out using a Linux server instead... > > ** ** > > DK > > > > > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? > > ** ** > > On Fri, Aug 9, 2013 at 9:03 AM, Douglas Knudsen > wrote: > > righto Bill, thanks. That Adam Tuttle was the author of Taffy, eh? > Anyway, I do have a call to restInitApplication(); inside the main > application.cfc which houses the index.cfm. I also have a simple CFM with > the call in it just to be sure in my testing. Once this is called, about > 50% of the time, my issue goes awaybut then returns within 24 hours. > The host is befuddled of course :) how I wish this simple client still > used fusionlink! > > ** ** > > DK > > > > > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? > > ** ** > > On Fri, Aug 9, 2013 at 1:48 AM, Bill Beers > wrote: > > Doug, > > > > Not sure if this is related to your issue, but I read at the following > link about having to refresh the rest services. > > > > http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/ > > > > > Look at the discussion below the blog post. I am about to begin a REST > project so I am interested in your results. Although, in my project, I > have access to the CFAdmin…**** > > **** > > Regards, > > > > Bill Beers > > bbe...@beersconsulting.com > > > > > > > > > > > > > > > > *From:* ad...@acfug.org [mailto:ad...@acfug.org] *On Behalf Of *Douglas > Knudsen > *Sent:* Thursday, August 08, 2013 3:57 PM > *To:* discussion@acfug.org >
RE: [ACFUG Discuss] CF 10 and REST and wtf?
Doug, here's something even some experienced hoster's don't know: after installing CF10, and/or adding updates, for many of the updates you need to then rebuild the web server connector (meaning they have to open CF's web server config tool, then remove and re-add the connection of a site or all sites to a CF instance.) Only on doing that do they get the benefit of some connector changes that were introduced in a few of the updates (of the 11 updates to CF 10 so far since last May). This is mentioned pretty clearly in the update page, but most people in my experience are just missing/ignoring it, and they just apply the update and never rebuild the connectors. They can confirm if they have by checking the date of that very isapi_redirect.dll page. If it's dates in March of 2012, or November of 2012, it's old. If it's June of 2013, it's as of update 11. If they are not yet on update 11, but it's dated in March, they need to update to at least update 5 and then rebuild the connector, to solve some pretty serious problems that update 5 addressed (last year). Now, I don't know if any of these updates that change the connector will solve your specific REST problem, but if indeed there is some related problem with the connector itself, then it's worth a shot. (I don't work with REST myself, so don't know how to connect any other dots based on what you've reported previously.) /charlie From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Douglas Knudsen Sent: Sunday, August 18, 2013 10:16 AM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] CF 10 and REST and wtf? WEll, no solution still on this. Hostek moved the site to a different "newer" server, the "hands in the air we already rebooted" solution. Still same behavior. The REST service cranks up, but then dies out within 24 hours. "C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll" is in the error page from IIS, almost makes me think the connectors are at fault. But then, I've been away from admining CF for too long. Might ask Hostek to try out using a Linux server instead... DK Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Fri, Aug 9, 2013 at 9:03 AM, Douglas Knudsen wrote: righto Bill, thanks. That Adam Tuttle was the author of Taffy, eh? Anyway, I do have a call to restInitApplication(); inside the main application.cfc which houses the index.cfm. I also have a simple CFM with the call in it just to be sure in my testing. Once this is called, about 50% of the time, my issue goes awaybut then returns within 24 hours. The host is befuddled of course :) how I wish this simple client still used fusionlink! DK Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Fri, Aug 9, 2013 at 1:48 AM, Bill Beers wrote: Doug, Not sure if this is related to your issue, but I read at the following link about having to refresh the rest services. http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/ Look at the discussion below the blog post. I am about to begin a REST project so I am interested in your results. Although, in my project, I have access to the CFAdmin. Regards, Bill Beers bbe...@beersconsulting.com From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Douglas Knudsen Sent: Thursday, August 08, 2013 3:57 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] CF 10 and REST and wtf? so far no luck. Host just "reset things" but problem came back after another day. I get one of these IIS 500 pages https://app.box.com/s/5iarseihfwzxdnqn6ecs The CFC I have setup is real basic for testing this issue, it should 'just work!' something like this component restpath="/works" rest="true" { remote any function getAll() httpMethod="GET" produces="application/json"{ return "{foo:42}"; } } Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Tue, Aug 6, 2013 at 10:56 AM, Ajas Mohammed wrote: Douglas, Any luck on this? You said it never fails on local server so I guess someone (haha me) testing it locally for you wont help. Let us know what you find. :-) iUseDropbox( <http://db.tt/63Lvone9> http://db.tt/63Lvone9) http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Mon, Aug 5, 2013 at 2:57 PM, Douglas Knudsen wrote: tooling around a wee bit on something old and re-working
Re: [ACFUG Discuss] CF 10 and REST and wtf?
WEll, no solution still on this. Hostek moved the site to a different "newer" server, the "hands in the air we already rebooted" solution. Still same behavior. The REST service cranks up, but then dies out within 24 hours. "C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll" is in the error page from IIS, almost makes me think the connectors are at fault. But then, I've been away from admining CF for too long. Might ask Hostek to try out using a Linux server instead... DK Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Fri, Aug 9, 2013 at 9:03 AM, Douglas Knudsen wrote: > righto Bill, thanks. That Adam Tuttle was the author of Taffy, eh? > Anyway, I do have a call to restInitApplication(); inside the main > application.cfc which houses the index.cfm. I also have a simple CFM with > the call in it just to be sure in my testing. Once this is called, about > 50% of the time, my issue goes awaybut then returns within 24 hours. > The host is befuddled of course :) how I wish this simple client still > used fusionlink! > > DK > > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? > > > On Fri, Aug 9, 2013 at 1:48 AM, Bill Beers wrote: > >> Doug, >> >> ** ** >> >> Not sure if this is related to your issue, but I read at the following >> link about having to refresh the rest services. >> >> ** ** >> >> http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/ >> >> >> ** ** >> >> Look at the discussion below the blog post. I am about to begin a REST >> project so I am interested in your results. Although, in my project, I >> have access to the CFAdmin… >> >> ** ** >> >> Regards, >> >> ** ** >> >> Bill Beers >> >> bbe...@beersconsulting.com >> >> ** ** >> >> ** ** >> >> ** ** >> >> ** ** >> >> ** ** >> >> ** ** >> >> ** ** >> >> *From:* ad...@acfug.org [mailto:ad...@acfug.org] *On Behalf Of *Douglas >> Knudsen >> *Sent:* Thursday, August 08, 2013 3:57 PM >> *To:* discussion@acfug.org >> *Subject:* Re: [ACFUG Discuss] CF 10 and REST and wtf? >> >> ** ** >> >> so far no luck. Host just "reset things" but problem came back after >> another day. I get one of these IIS 500 pages >> https://app.box.com/s/5iarseihfwzxdnqn6ecs >> >> ** ** >> >> The CFC I have setup is real basic for testing this issue, it should >> 'just work!' >> >> ** ** >> >> something like this >> >> ** ** >> >> component restpath="/works" rest="true" { >> >> ** ** >> >> remote any function getAll() httpMethod="GET" >> produces="application/json"{ >> >> ** ** >> >> return "{foo:42}"; >> >> ** ** >> >> } >> >> ** ** >> >> } >> >> >> >> >> Douglas Knudsen >> http://www.cubicleman.com >> this is my signature, like it? >> >> ** ** >> >> On Tue, Aug 6, 2013 at 10:56 AM, Ajas Mohammed >> wrote: >> >> Douglas, >> >> Any luck on this? You said it never fails on local server so I guess >> someone (haha me) testing it locally for you wont help. >> >> Let us know what you find. :-) >> >> >> >> >> >> >> iUseDropbox(http://db.tt/63Lvone9) >> http://ajashadi.blogspot.com >> We cannot become what we need to be, remaining what we are. >> No matter what, find a way. Because thats what winners do. >> You can't improve what you don't measure. >> Quality is never an accident; it is always the result of high intention, >> sincere effort, intelligent direction and skillful execution; it represents >> the wise choice of many alternatives. >> >> ** ** >> >> On Mon, Aug 5, 2013 at 2:57 PM, Douglas Knudsen >> wrote: >> >> tooling around a wee bit on something old and re-working a site with >> Angular + Bootstrap...its fun. So I figured I'd make use of the fancy new >> REST stuff in CF10. Simple to set up, no need to use the CFAdmin to setup, >> and bamm! Deploy to shared host, bamm! well, maybe not. Seems to >> consistently fail after initial success. I push up the CFC, test, all is >> good. Come bac
Re: [ACFUG Discuss] CF 10 and REST and wtf?
righto Bill, thanks. That Adam Tuttle was the author of Taffy, eh? Anyway, I do have a call to restInitApplication(); inside the main application.cfc which houses the index.cfm. I also have a simple CFM with the call in it just to be sure in my testing. Once this is called, about 50% of the time, my issue goes awaybut then returns within 24 hours. The host is befuddled of course :) how I wish this simple client still used fusionlink! DK Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Fri, Aug 9, 2013 at 1:48 AM, Bill Beers wrote: > Doug, > > ** ** > > Not sure if this is related to your issue, but I read at the following > link about having to refresh the rest services. > > ** ** > > http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/ > > > ** ** > > Look at the discussion below the blog post. I am about to begin a REST > project so I am interested in your results. Although, in my project, I > have access to the CFAdmin… > > ** ** > > Regards, > > ** ** > > Bill Beers > > bbe...@beersconsulting.com > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > *From:* ad...@acfug.org [mailto:ad...@acfug.org] *On Behalf Of *Douglas > Knudsen > *Sent:* Thursday, August 08, 2013 3:57 PM > *To:* discussion@acfug.org > *Subject:* Re: [ACFUG Discuss] CF 10 and REST and wtf? > > ** ** > > so far no luck. Host just "reset things" but problem came back after > another day. I get one of these IIS 500 pages > https://app.box.com/s/5iarseihfwzxdnqn6ecs > > ** ** > > The CFC I have setup is real basic for testing this issue, it should 'just > work!' > > ** ** > > something like this > > ** ** > > component restpath="/works" rest="true" { > > ** ** > > remote any function getAll() httpMethod="GET" > produces="application/json"{ > > ** ** > > return "{foo:42}"; > > ** ** > > } > > ** ** > > } > > > > > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? > > ** ** > > On Tue, Aug 6, 2013 at 10:56 AM, Ajas Mohammed wrote: > > > Douglas, > > Any luck on this? You said it never fails on local server so I guess > someone (haha me) testing it locally for you wont help. > > Let us know what you find. :-) > > > > > > > iUseDropbox(http://db.tt/63Lvone9) > http://ajashadi.blogspot.com > We cannot become what we need to be, remaining what we are. > No matter what, find a way. Because thats what winners do. > You can't improve what you don't measure. > Quality is never an accident; it is always the result of high intention, > sincere effort, intelligent direction and skillful execution; it represents > the wise choice of many alternatives. > > ** ** > > On Mon, Aug 5, 2013 at 2:57 PM, Douglas Knudsen > wrote: > > tooling around a wee bit on something old and re-working a site with > Angular + Bootstrap...its fun. So I figured I'd make use of the fancy new > REST stuff in CF10. Simple to set up, no need to use the CFAdmin to setup, > and bamm! Deploy to shared host, bamm! well, maybe not. Seems to > consistently fail after initial success. I push up the CFC, test, all is > good. Come back 1,2, or 12 hours later, its random, and the REST call is > failing with > > ** ** > HTTP Error 500.0 - object is not an instance of declaring class > > ** ** > > ** ** > > Anyone have any clues? No access to CFAdmin of course. It never fails on > the local server. > > ** ** > > Its a really simple thing too. When this REST call fails, a test page > using the model.Content.ContentService runs fine. So it has something to > do with the REST gimmickery. > > ** ** > > component restpath="/content" rest="true" { > > ** ** > > remote any function getAll() httpMethod="GET" > produces="application/json"{ > > ** ** > > var service = ""; > > var entries = ""; > > var works = ""; > > ** ** > > service = CreateObject("component", > "model.Content.ContentService").init(); > > entries = service.getAllItems(); > > response = serializeJSON( entries ); > > return response; > > } > > ** ** > > } > > > > > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? > > ** ** > > ** ** > > - > To unsubscribe from this list, manage your profile @ > http://www.acfug.org?fa=login.edituserform > > For more info, see http://www.acfug.org/mailinglists > Archive @ http://www.mail-archive.com/discussion%40acfug.org/ > List hosted by FusionLink <http://www.fusionlink.com> > -
RE: [ACFUG Discuss] CF 10 and REST and wtf?
Doug, Not sure if this is related to your issue, but I read at the following link about having to refresh the rest services. http://www.anujgakhar.com/2012/02/20/using-rest-services-in-coldfusion-10/ Look at the discussion below the blog post. I am about to begin a REST project so I am interested in your results. Although, in my project, I have access to the CFAdmin. Regards, Bill Beers <mailto:bbe...@beersconsulting.com> bbe...@beersconsulting.com From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Douglas Knudsen Sent: Thursday, August 08, 2013 3:57 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] CF 10 and REST and wtf? so far no luck. Host just "reset things" but problem came back after another day. I get one of these IIS 500 pages https://app.box.com/s/5iarseihfwzxdnqn6ecs The CFC I have setup is real basic for testing this issue, it should 'just work!' something like this component restpath="/works" rest="true" { remote any function getAll() httpMethod="GET" produces="application/json"{ return "{foo:42}"; } } Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Tue, Aug 6, 2013 at 10:56 AM, Ajas Mohammed wrote: Douglas, Any luck on this? You said it never fails on local server so I guess someone (haha me) testing it locally for you wont help. Let us know what you find. :-) iUseDropbox( <http://db.tt/63Lvone9> http://db.tt/63Lvone9) http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Mon, Aug 5, 2013 at 2:57 PM, Douglas Knudsen wrote: tooling around a wee bit on something old and re-working a site with Angular + Bootstrap...its fun. So I figured I'd make use of the fancy new REST stuff in CF10. Simple to set up, no need to use the CFAdmin to setup, and bamm! Deploy to shared host, bamm! well, maybe not. Seems to consistently fail after initial success. I push up the CFC, test, all is good. Come back 1,2, or 12 hours later, its random, and the REST call is failing with HTTP Error 500.0 - object is not an instance of declaring class Anyone have any clues? No access to CFAdmin of course. It never fails on the local server. Its a really simple thing too. When this REST call fails, a test page using the model.Content.ContentService runs fine. So it has something to do with the REST gimmickery. component restpath="/content" rest="true" { remote any function getAll() httpMethod="GET" produces="application/json"{ var service = ""; var entries = ""; var works = ""; service = CreateObject("component", "model.Content.ContentService").init(); entries = service.getAllItems(); response = serializeJSON( entries ); return response; } } Douglas Knudsen http://www.cubicleman.com this is my signature, like it? - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
Re: [ACFUG Discuss] CF 10 and REST and wtf?
so far no luck. Host just "reset things" but problem came back after another day. I get one of these IIS 500 pages https://app.box.com/s/5iarseihfwzxdnqn6ecs The CFC I have setup is real basic for testing this issue, it should 'just work!' something like this component restpath="/works" rest="true" { remote any function getAll() httpMethod="GET" produces="application/json"{ return "{foo:42}"; } } Douglas Knudsen http://www.cubicleman.com this is my signature, like it? On Tue, Aug 6, 2013 at 10:56 AM, Ajas Mohammed wrote: > Douglas, > > Any luck on this? You said it never fails on local server so I guess > someone (haha me) testing it locally for you wont help. > > Let us know what you find. :-) > > > iUseDropbox(http://db.tt/63Lvone9) > http://ajashadi.blogspot.com > We cannot become what we need to be, remaining what we are. > No matter what, find a way. Because thats what winners do. > You can't improve what you don't measure. > Quality is never an accident; it is always the result of high intention, > sincere effort, intelligent direction and skillful execution; it represents > the wise choice of many alternatives. > > > On Mon, Aug 5, 2013 at 2:57 PM, Douglas Knudsen > wrote: > >> tooling around a wee bit on something old and re-working a site with >> Angular + Bootstrap...its fun. So I figured I'd make use of the fancy new >> REST stuff in CF10. Simple to set up, no need to use the CFAdmin to setup, >> and bamm! Deploy to shared host, bamm! well, maybe not. Seems to >> consistently fail after initial success. I push up the CFC, test, all is >> good. Come back 1,2, or 12 hours later, its random, and the REST call is >> failing with >> >> HTTP Error 500.0 - object is not an instance of declaring class >> >> >> Anyone have any clues? No access to CFAdmin of course. It never fails >> on the local server. >> >> Its a really simple thing too. When this REST call fails, a test page >> using the model.Content.ContentService runs fine. So it has something to >> do with the REST gimmickery. >> >> component restpath="/content" rest="true" { >> >> remote any function getAll() httpMethod="GET" >> produces="application/json"{ >> >> var service = ""; >> var entries = ""; >> var works = ""; >> >> service = CreateObject("component", >> "model.Content.ContentService").init(); >> entries = service.getAllItems(); >> response = serializeJSON( entries ); >> return response; >> } >> >> } >> >> Douglas Knudsen >> http://www.cubicleman.com >> this is my signature, like it? >> > >
Re: [ACFUG Discuss] CF 10 and REST and wtf?
Douglas, Any luck on this? You said it never fails on local server so I guess someone (haha me) testing it locally for you wont help. Let us know what you find. :-) iUseDropbox(http://db.tt/63Lvone9) http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. On Mon, Aug 5, 2013 at 2:57 PM, Douglas Knudsen wrote: > tooling around a wee bit on something old and re-working a site with > Angular + Bootstrap...its fun. So I figured I'd make use of the fancy new > REST stuff in CF10. Simple to set up, no need to use the CFAdmin to setup, > and bamm! Deploy to shared host, bamm! well, maybe not. Seems to > consistently fail after initial success. I push up the CFC, test, all is > good. Come back 1,2, or 12 hours later, its random, and the REST call is > failing with > > HTTP Error 500.0 - object is not an instance of declaring class > > > Anyone have any clues? No access to CFAdmin of course. It never fails on > the local server. > > Its a really simple thing too. When this REST call fails, a test page > using the model.Content.ContentService runs fine. So it has something to > do with the REST gimmickery. > > component restpath="/content" rest="true" { > > remote any function getAll() httpMethod="GET" > produces="application/json"{ > > var service = ""; > var entries = ""; > var works = ""; > > service = CreateObject("component", > "model.Content.ContentService").init(); > entries = service.getAllItems(); > response = serializeJSON( entries ); > return response; > } > > } > > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? >
[ACFUG Discuss] CF 10 and REST and wtf?
tooling around a wee bit on something old and re-working a site with Angular + Bootstrap...its fun. So I figured I'd make use of the fancy new REST stuff in CF10. Simple to set up, no need to use the CFAdmin to setup, and bamm! Deploy to shared host, bamm! well, maybe not. Seems to consistently fail after initial success. I push up the CFC, test, all is good. Come back 1,2, or 12 hours later, its random, and the REST call is failing with HTTP Error 500.0 - object is not an instance of declaring class Anyone have any clues? No access to CFAdmin of course. It never fails on the local server. Its a really simple thing too. When this REST call fails, a test page using the model.Content.ContentService runs fine. So it has something to do with the REST gimmickery. component restpath="/content" rest="true" { remote any function getAll() httpMethod="GET" produces="application/json"{ var service = ""; var entries = ""; var works = ""; service = CreateObject("component", "model.Content.ContentService").init(); entries = service.getAllItems(); response = serializeJSON( entries ); return response; } } Douglas Knudsen http://www.cubicleman.com this is my signature, like it?