RE: [cfaussie] Cached 404 on remote rest webservice

2012-05-07 Thread Steve Onnis
CF will cache the web service anyway.  In the CFAdmin under webservices you
should be able to just delete the entry there and it will get recreated and
refreshed or you can try this...

 

 

cfobject type=JAVA

  action=Create

  name=factory

  class=coldfusion.server.ServiceFactory /

   

cfset RpcService = factory.XmlRpcService /

 

cfset RpcService.refreshWebService([webservice wsdl path])

 

That should reload the web service for you also

 

Steve

 

From: Rawdyn Nutting [mailto:raw...@gmail.com] 
Sent: Monday, 7 May 2012 11:47 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Cached 404 on remote rest webservice

 

Struck by an odd one tonight and I am hoping it is just me being a dope
but...

 

CF 901, Win2K3, IIS

 

We connect to the MyCareer job site through their REST web service that
allows us to post jobs from our system to their job board.

They were down over the weekend doing an upgrade so our connector would spit
errors each hour that it ran while they were offline.

 

Once they came back online our system continued to spit out the 404 error.

I inspected the DNS cache, nothing there... flushed it anyway. No joy.

Added some random variables to the uri call. Nothing.

Reset all Application settings. Nada.

(Wished I'd thought to clear template cache via admin but, alas, I didn't
get to try that)

Bounced the CF service and bingo. Back in business.

 

In case this helps; the Scheduled Task calls a .cfm that invoked the CFC
that handled the 'REST' of it (boom boom).

 

I know back in V7 they had issues with CF caching a 404 but  a) thought it
was fixed and  b) not sure if that was remote 404s anyway.

 

Anyone have any input? Is there a setting I am missing somewhere in the
CFADMIN? Do I need to go get a job selling news papers?

 

Thanks a bunch.

 

Rawdy

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To view this discussion on the web visit
https://groups.google.com/d/msg/cfaussie/-/MekIDZLckiwJ.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Cached 404 on remote rest webservice

2012-05-07 Thread charlie arehart
Actually, I suspect it's the same problem and solution as discussed then:
not a CF bug, but rather a JVM setting about network address caching time to
live, which is configurable, as discussed in the following blog entries.

From the CF6-7 days, see
http://tjordahl.blogspot.com/2004/10/cfmx-and-dns-caching.html.  From the
CF8 days, see
http://coldfused.blogspot.com/2008/01/dns-lookup-caching-in-coldfusionjava.h
tml. 

Let us know if that helps. 

 

/charlie

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Rawdyn Nutting
Sent: Monday, May 07, 2012 9:47 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Cached 404 on remote rest webservice

 

Struck by an odd one tonight and I am hoping it is just me being a dope
but...

 

CF 901, Win2K3, IIS

 

We connect to the MyCareer job site through their REST web service that
allows us to post jobs from our system to their job board.

They were down over the weekend doing an upgrade so our connector would spit
errors each hour that it ran while they were offline.

 

Once they came back online our system continued to spit out the 404 error.

I inspected the DNS cache, nothing there... flushed it anyway. No joy.

Added some random variables to the uri call. Nothing.

Reset all Application settings. Nada.

(Wished I'd thought to clear template cache via admin but, alas, I didn't
get to try that)

Bounced the CF service and bingo. Back in business.

 

In case this helps; the Scheduled Task calls a .cfm that invoked the CFC
that handled the 'REST' of it (boom boom).

 

I know back in V7 they had issues with CF caching a 404 but  a) thought it
was fixed and  b) not sure if that was remote 404s anyway.

 

Anyone have any input? Is there a setting I am missing somewhere in the
CFADMIN? Do I need to go get a job selling news papers?

 

Thanks a bunch.

 

Rawdy

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To view this discussion on the web visit
https://groups.google.com/d/msg/cfaussie/-/MekIDZLckiwJ.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Cached 404 on remote rest webservice

2012-05-07 Thread charlie arehart
Steve, that's a good one, but for a different problem. That's about the
caching of the java classes based on the SOAP web service WSDL. You'd use
that (or other approaches) when the problem is that the web service
definition (methods or args) changed, and you need to update what CF has
saved in these class files to associate with the remote service.

Given that Rawdyn was getting a 404, I really suspect it's the other issue I
shared, which I'd send just before I saw your note here.

BTW, with regard to your code for refreshing web services, I'll note that
there are a few more modern ways (over that servicefactory) that have been
added, first in CF7:

http://carehart.org/blog/client/index.cfm/2006/12/12/refreshing_web_services
_programmatically 


(where I discuss the Admin API approach, and that older servicefactory
approach in more detail).

And then there were still two more ways added in CF8:

http://carehart.org/blog/client/index.cfm/2007/9/3/cf8_hiddengem_refreshwsdl

http://carehart.org/blog/client/index.cfm/2007/9/5/cf8_hiddengem_createobjec
t_argstruct

Each tries to make the task a little easier (and of course, with power comes
responsibility, so heed the warnings I share, especially with regard to the
last two.)

/charlie

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Steve Onnis
Sent: Monday, May 07, 2012 10:41 AM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] Cached 404 on remote rest webservice

 

CF will cache the web service anyway.  In the CFAdmin under webservices you
should be able to just delete the entry there and it will get recreated and
refreshed or you can try this...

 

 

cfobject type=JAVA

  action=Create

  name=factory

  class=coldfusion.server.ServiceFactory /

   

cfset RpcService = factory.XmlRpcService /

 

cfset RpcService.refreshWebService([webservice wsdl path])

 

That should reload the web service for you also

 

Steve

 

From: Rawdyn Nutting [mailto:raw...@gmail.com] 
Sent: Monday, 7 May 2012 11:47 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Cached 404 on remote rest webservice

 

Struck by an odd one tonight and I am hoping it is just me being a dope
but...

 

CF 901, Win2K3, IIS

 

We connect to the MyCareer job site through their REST web service that
allows us to post jobs from our system to their job board.

They were down over the weekend doing an upgrade so our connector would spit
errors each hour that it ran while they were offline.

 

Once they came back online our system continued to spit out the 404 error.

I inspected the DNS cache, nothing there... flushed it anyway. No joy.

Added some random variables to the uri call. Nothing.

Reset all Application settings. Nada.

(Wished I'd thought to clear template cache via admin but, alas, I didn't
get to try that)

Bounced the CF service and bingo. Back in business.

 

In case this helps; the Scheduled Task calls a .cfm that invoked the CFC
that handled the 'REST' of it (boom boom).

 

I know back in V7 they had issues with CF caching a 404 but  a) thought it
was fixed and  b) not sure if that was remote 404s anyway.

 

Anyone have any input? Is there a setting I am missing somewhere in the
CFADMIN? Do I need to go get a job selling news papers?

 

Thanks a bunch.

 

Rawdy

 

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To view this discussion on the web visit
https://groups.google.com/d/msg/cfaussie/-/MekIDZLckiwJ.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.