Figured it out!

Fortunately, a programming error - I'd mistakenly defined an argument in a
REST-enabled CFC with an HTTPMethod of "GET" as an array instead of a
string. As such, even if it wasn't being called, it still caused the REST
response of an unrelated CFC to fail (or, at least, return null).

I'm glad it's working, but this is easily the worst error situation I've
come across, and it seems like it's an issue with remote-access CFCs in
general. I've had strange errors before with a remote-invoked
JSON-returning CFC (through CFAJAXPROXY) that had an error, but the server,
instead of passing along an exception, said it was unable to find the CFC.

It's more than a little annoying that there wasn't a single understandable
error message or even a meaningful stack trace in any of the error logs at
the very least.

Ok, rant over, Thanks for your help/sanity check, Ray - it helped me narrow
things down quite a bit. I'm going to go for a walk now :)

- Jim


On Tue, Jan 15, 2013 at 10:51 PM, Dan Baughman <[email protected]>wrote:

>
> I'm an old school coder and  always serialize stuff manually without
> using the built-in garbage and it works great that way.  The other
> serialization I use often is cfwddx
>
> On Tue, Jan 15, 2013 at 2:55 PM, Jim Campbell <[email protected]> wrote:
> >
> > No worries - the way it's built, it's not *too* much of a stretch to
> switch
> > gears and go to the old "http://domain/foo.cfc?kicking=it&old=school";
> > method - the REST interface itself is a minor aspect of the functional
> > nature of the application. I'll keep an eye on this thread, though -
> maybe
> > there's a solution, and I'll check in with Adobe support and file a bug
> > report if necessary.
> >
> > Thanks!
> >
> > - Jim
> >
> >
> > On Tue, Jan 15, 2013 at 3:46 PM, Raymond Camden <[email protected]
> >wrote:
> >
> >>
> >> You got me man. Sorry. The virtual server thing is something I ran into
> and
> >> was never able to get around. Unless someone else can help, best I'd
> >> recommend is Adobe support.
> >>
> >> Actually - let me ping someone.
> >>
> >>
> >> On Tue, Jan 15, 2013 at 3:42 PM, Jim Campbell <[email protected]> wrote:
> >>
> >> >
> >> > The REST CFCs themselves are not in virtual directories. I have two
> local
> >> > servers created in IIS - dev.remote (which handles the REST requests)
> and
> >> > dev.local (everything else). Both of these environments have virtual
> >> > directories for CFIDE and jakarta, but, for dev.local, the REST CFCs
> are
> >> > physically there.
> >> >
> >> > I've tried CF mapping the folder containing the REST CFCs ("/API"),
> but
> >> it
> >> > doesn't make a difference.
> >> >
> >> > Just now, I tried using restDeleteApplication() and
> restInitApplication()
> >> > in onApplicationStart(), but no dice. At this point, there doesn't
> seem
> >> to
> >> > be any way to re-register the app.
> >> >
> >> > Is there possibly a neo-something.xml file that could contain some
> fouled
> >> > up registration code?
> >> >
> >> > - Jim
> >> >
> >> > On Tue, Jan 15, 2013 at 3:13 PM, Raymond Camden <
> [email protected]
> >> > >wrote:
> >> >
> >> > >
> >> > > By any chance are these CFCs under a virtual folder? (Not CF
> mapping,a
> >> > > virtual IIS folder).
> >> > >
> >> > >
> >> > > On Tue, Jan 15, 2013 at 2:46 PM, Jim Campbell <[email protected]>
> wrote:
> >> > >
> >> > > >
> >> > > > Yep - that did nothing notable (no errors on the page or in the
> logs)
> >> > and
> >> > > > no difference in response. For the record, all of my REST
> responses
> >> are
> >> > > > coming back empty, regardless of the return type.
> >> > > > On Jan 15, 2013 2:30 PM, "Raymond Camden" <
> [email protected]>
> >> > > wrote:
> >> > > >
> >> > > > >
> >> > > > > Have you tried reloading it in the REST page in the CF Admin?
> >> > > > >
> >> > > >
> >> > > --
> >> > >
> >> >
> >>
> ===========================================================================
> >> > > Raymond Camden, Adobe Developer Evangelist
> >> > >
> >> > > Email : [email protected]
> >> > > Blog : www.raymondcamden.com
> >> > > Twitter: cfjedimaster
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353942
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to