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 <ajash...@gmail.com> 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. :-)




<Ajas Mohammed /> 

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 <douglasknud...@gmail.com>
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
-------------------------------------------------------------

Reply via email to