changing coldfusion 9 standard license

2015-02-09 Thread Chris h

 0 down vote favorite


I understand Coldfusion 9 is not supported, but being used for some systems 
till we migrate to Coldfusion 10.

We were using a hosting provider who was providing us the Coldfusion 9 standard 
license and charging us for it. We found a unused license key(for Coldfusion 9 
standard) and want to use that instead of getting charged a leasing fee from 
the hosting provider.

I understand the steps are to log-in to CF Admin, click on System Information 
icon, enter the new license key.

Anything else we need to be aware of so that there are no unexpected issues?

Thanks

~|
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:360094
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Using caching and threading to load a page quickly

2014-10-03 Thread Chris h

Thanks Jonah,

I am sorry for the late reply.

The WordPress's RSS feed is stable but due to excessive resource usage, the 
newswebsite has been suspended a few times after which we had to call the 
Hosting company to restore it. 

To have the rest of the page load and then the feed display later, 
you'll have to use AJAX to pull in a separate CF page clientside. (You'd 
still use caching in the feed.cfm so it'd only be slow occasionally.)

Would the following code http://collabedit.com/tmjwj/history function as 
expected in an environment with less users than actual production?

If the newswebsite is suspended because it is using too many resources on 
shared hosting, the thread reading the feed will timeout in 30 seconds, so 
there will be no results. Will News feed not available be shown?

Or, since the variable #feedResult.entriesNews# had a value from the last 
successful read, those results will be displayed?



Another approach would have the feed fetching functionality in a 
separate template which is run as a scheduled task every 2 minutes. That 
task can shove the parsed (and potentially formatted) feed into the 
application scope. (With a lock.) And then your main page can output 
that variable (with a lock). Then your home page would load as fast as 
it would as if the feed were local.


So, as you suggest, I need to get the feed, write to the machine running CF 
server which will be used if the RSS feed is unavailable, in case the 
newswebsite is suspended again.

I will make the feed loading a scheduled task and have to call it in the 
Application.cfm(I know most people have already moved to Application.cfc) and 
if no response is used, use the previous feed obtained from the past successful 
fetch.


I appreciate your assistance and time.


~|
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:359404
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Using caching and threading to load a page quickly

2014-09-28 Thread Chris h

Hi All,

I have a main index page which is in ColdFusion which gets a RSS feed from 
another website(Newswebsite which is a WordPress 3.9.2 website running on 
shared hosting). The Newswebsite is on shared hosting so takes about 7 seconds 
to load(a little slow, I know, but the decision to go with a shared hosting was 
done to save on costs by the purchasing people).

Now, people don't want the main index page to take 7 seconds to load. I 
estimate using caching of the RSS feed so that updates are retrieved from the 
feed only every 2 minutes and having a thread so that the main index page 
loads(in 2 seconds or less) without waiting for the RSS feed can alleviate the 
issue. The thread which fetches the data from RSS feed can display the feeds on 
the main index page after the data is retrieved.

1. If the idea is viable, would something like the below work?

-

cftry
cfset rssUrl = http://www.testsite.com/?feed=rss2;
   
!--- Caching the RSS feed from newssite so that it is checked every 2 
minutes only---
cfcache action = cache timespan = #createtimespan(0,0,2,0)#   
   
!--- Start a thread and wait for it to read the RSS feed from newssite ---
cfthread action=run name=thread1
cffeed action=read source=#rssUrl# query=entriesNews 
properties=info timeout = 180  
 /cfthread
   
 cfthread action=join name=thread1 timeout=7000 /
 
  cfset feedResult=cfthread[thread1]

 !--- Display feed information if it was obtained in 7 seconds 
--- 
   cfif isDefined(feedResult.entriesNews)
   ul
 cfoutput query=entriesNews startrow=1 maxrows=3 
 cfset tempTextNews = #title#  
 cfif len(tempTextNews) gt '75'   
 li
 a class=NewsEvents href=#rssLink# 
target=_blank#Left(tempTextNews, 75)#...more/a
 /li
 cfelse
 li
 a class=NewsEvents href=#rssLink# 
target=_blank#title#...more/a
 /li
 /cfif
 /cfoutput
  /cfif   

/cfcache 
 
cfcatch type=any
!--cfdump var=#entriesNews# ---
!--cfdump var=#info# ---  
 
News Feed not available  
/cfcatch 
/ul
/cftry


-

2. Are there other better ways to tackle the issue?

I want the other parts of the main index page which is in ColdFusion to load 
and not get delayed because getting data from the RSS feed of news website 
takes 7 seconds.

Any suggestions would be appreciated.

Thanks 

~|
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:359368
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-28 Thread Chris h

That was my original suggestion was to check the firewall of the receiving
server :-)

I agree Robert, but I told them to check and they responded there was nothing 
in the firewall blocking that IP address.

I appreciate your assistance and time with this thread.


~|
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:359367
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-26 Thread Chris h

Hi Dave,

The server hosting WordPress was blocking the IP address of server running 
ColdFusion because it was seeing too much traffic for the news feeds from the 
server running ColdFusion. I just wish the hosting company which was running 
WordPress had told me this before.

I appreciate all your assistance and time.



Packets can leave which server? Your CF server?

The relevant question here (to me) is: what happens when you ping the
WP server from the CF server console? What happens when you run a
traceroute to the WP server from the CF server console?

 Anyway, I appreciate all your assistance and time.

You're welcome! Good luck!

Dave Watts, CTO, Fig Leaf Software
1-202-527-9569
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite. 

~|
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:359360
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Using caching for a RSS feed

2014-09-26 Thread Chris h

Hi All, 

Below is the code which is being used for reading a RSS feed from a 
Wordpress(WP) site running Wordpress 3.9.1 
--
 
cftry 
cfset rssUrl = http://www.testsite.com/?feed=rss2;;
cfcache action = cache timespan = #createtimespan(0,0,2,0)#
  cffeed action=read source=#rssUrl# query=entriesNews 
properties=info timeout = 180   
  ul  
  cfoutput query=entriesNews startrow=1 maxrows=3   
 cfset tempTextNews = #title# 

  cfif len(tempTextNews) gt '75' 
lia class=NewsEvents href=#rssLink# 
target=_blank#Left(tempTextNews, 75)#...more/a/li 
  cfelse 
  li
  a class=NewsEvents href=#rssLink# 
target=_blank#title#...more/a
  /li
 /cfif
 /cfoutput
/cfcache
 cfcatch type=any
 !--cfdump var=#entriesNews# --- 
 !--cfdump var=#info# --- 
   
 
 News Feed Temporarily Unavailable   
 /cfcatch /ul   
 
 /cftry 
 
 
--
 

For Application Server Caching, we have Cache Template in Request and Save 
Class Files enabled. Since lot of files are in ColdFusion, 
Trusted Cache is disabled.
 
 I added a basic cache so that the server running ColdFusion 9 reaches out to 
the server hosting Wordpress site every 2 minutes
 
 1. If 10(or 1000) people visit the webpage in an hour, where the above code 
exists, will it connect to the server hosting Wordpress site every 2 minutes 
for the RSS feed? 
 
 2. Or, will it be sooner if the RSS feed on WordPress changes between the 2 
minute interval?
 
Thanks 

~|
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:359362
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-26 Thread Chris h

Wow. How in hell did you figure that out?

Ben


Hi Ben,

I asked for the firewall logs of the server running WordPress and saw that the 
IP address of server running ColdFusion was blocked. 

~|
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:359363
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-22 Thread Chris h

Thanks Dave.
 
 This is no longer a programming issue, though. It has nothing to do
 with reading and displaying the RSS feeds at this point. Instead, it
 has to do with fixing the connectivity problem between the two
 machines.
 
 People on a mailing list are not going to be able to help you do this
 effectively. And, you should be able to demonstrate to a network
 administrator somewhere (your organization, the hosting company where
 your CF server is) that this is not a CF problem but rather a
 networking problem.

I agree, but here is where it becomes strange. They(hosting company where
your CF server is) claim packets can leave the server, but then they are 
getting lost on the route so tell me to check with the hosting company where 
the wordpress website who say that they are not blocking any requests from the 
machine running CF server. I need to dive into it and solve it.

Anyway, I appreciate all your assistance and time.

 Dave Watts, CTO, Fig Leaf Software
 1-202-527-9569
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

~|
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:359339
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-11 Thread Chris h

Thanks Robert,

 but don't think they(hostingcompanyA) would block a particular IP 
 address(server running CF which belongs to hosting company B)
 
 Yes, they would if they detected something funny coming your server... 
 like a bunch of pings or form bots or something... for that matter a 
 bunch of unexpected reads of the RSS file your reading could have set 
 off some kind of alarm that caused them to block the IP.  It depends 
 on them and what they see as an intrusion.   A lot of hosting 
 companies are great professional companies that can really analyze 
 threats... a lot of them are some guy with a server or two in basement 
 too and anything odd they see they block.  Yes, it's possible they 
 blocked you intentionally if they saw a lot of unexplained requests 
 coming from your server.  

I checked with the hosting company(hostingcompanyA) who host the website my 
machine running CF is trying to access and they told, they are not blocking the 
IP address of the server running CF.

 
  try displaying it in a browser that shows the same external IP 
 address  as your server
  How do I do that?
 
 If the server is at a separate location (hosting company), you may have 
 to ask them for help with this.  

Yes, that is with hosting company B and they say we are not blocking the 
website your CF server is trying to read.

 Honestly, at this point with what you know this does not sound like a 
 job for a programming issue and it may not be best for a programmer to 
 be troubleshooting it.  You should get a network engineer to take a 
 look. 
Hosting company B says we are not blocking the website your CF server is trying 
to read. They say all is well with the machine running CF server. We went with 
a hosting company because network engineers in our organization did not have 
time for such things. Reading the RSS feeds and getting them to display is my 
task.

I appreciate all your assistance and time.
 
 Robert Harrison 
 Director of Interactive Services
 
 Austin  Williams
 Advertising I Branding I Digital I Direct  
 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
 T 631.231.6600 X 119   F 631.434.7022   
 http://www.austin-williams.com
 
 Blog:  http://www.austin-williams.com/blog
 Twitter:  http://www.twitter.
com/austi

~|
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:359284
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-10 Thread Chris h

Thanks Dave,
 
 Just to clarify: from the machine running CF, if you use a browser,
 can you get to the site correctly?

No, I cannot access the site from the machine running CF.
 
 If the server admin can't tell you why a machine he or she manages
 can't get to a remote server, you need to replace your server admin.

I am not the decision maker who can replace server admins. The server admin 
told me they do not restrict outbound traffic nor there are any rules in 
firewall blocking that site. I already checked the localhosts file and nothing 
in it also could be stopping it.
 
  Well, the CF service was restarted and so was the server, so if the 
 DNS entry changed, CF should have updated its cache.
 
  1. Should I change the below line in 
 C:\ColdFusion9\runtime\jre\lib\security\java.security
 
  #networkaddress.cache.ttl=-1 to something like
  networkaddress.cache.ttl= 14400
 
  2. Also, does CF9 cache a positive lookup forever? Meaning if 
 http://www.testsite.com/?feed=rss2 was on IP address
  A.B.C.1 when CF cached it, it will not update its cache when the 
 feed's IP address changes to A.B.C.10
 
 If you can't get to the site from a browser on the machine running CF,
 
 I wouldn't bother messing with CF - the problem isn't with CF. If you
 can get to the site from a browser on the machine running CF, but CF
 itself can't get to it, there's probably some sort of DNS caching
 issue within CF itself.

I appreciate your assistance and time. 

~|
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:359273
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-10 Thread Chris h

Thanks Russ,

you need to do some basic tests, which your server admin should have
already done.

for a start ping the domain from the cf server, does this work and do you
get the right IP, if not then it is a dns issue.
make sure that someone has not created an entry in the local hosts file.

I did a ping and the request timed out. All data packets were lost.

The server admin told me they do not restrict outbound traffic nor there are 
any rules in firewall blocking that site. I already checked the localhosts file 
and nothing in it also could be stopping it. 

I appreciate your assistance and time.


~|
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:359274
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-10 Thread Chris h

If I use a browser, I can see the feeds. Using a feed reader in
Google Chrome browser, I can notice the feeds load correctly.
  
   Are you using a browser from the machine running CF?
 
  No, the machine running CF cannot access the website. I get a 
 message that the request timed out. But, the server
  admin cannot tell me what could be causing it. 1000's of people can 
 access the website properly from their computers.
 
 Just to clarify: from the machine running CF, if you use a browser,
 can you get to the site correctly?

From the machine running CF, if I use a browser(Firefox or Internet Explorer), 
I cannot get to the site. I get a message that connection timed out.
 
 If the server admin can't tell you why a machine he or she manages
 can't get to a remote server, you need to replace your server admin.
 
  Well, the CF service was restarted and so was the server, so if the 
 DNS entry changed, CF should have updated its cache.
 
  1. Should I change the below line in 
 C:\ColdFusion9\runtime\jre\lib\security\java.security
 
  #networkaddress.cache.ttl=-1 to something like
  networkaddress.cache.ttl= 14400
 
  2. Also, does CF9 cache a positive lookup forever? Meaning if 
 http://www.testsite.com/?feed=rss2 was on IP address
  A.B.C.1 when CF cached it, it will not update its cache when the 
 feed's IP address changes to A.B.C.10
 
 If you can't get to the site from a browser on the machine running CF,
 
 I wouldn't bother messing with CF - the problem isn't with CF. If you
 can get to the site from a browser on the machine running CF, but CF
 itself can't get to it, there's probably some sort of DNS caching
 issue within CF itself.
 
 Dave Watts, CTO, Fig Leaf Software
 1-202-527-9569
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

~|
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:359275
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-10 Thread Chris h

Thanks Dave, 
 OK, this is good! This means it's not a CF problem.
 
 But - and now I'm being completely serious - the server admin should
 be able to diagnose the problem preventing the server that he manages
 from connecting to this other server. This is clearly not a CF
 problem.
 
 This could be caused by many things. Here's what I'd try to look at,
 if I were you (assuming you have console access):
 
 Do you get the correct IP address when you ping the server?

Yes, the site I am trying to access is hosted by HostingcompanyA so I get the 
name of that company when I type the IP address in a browser on another 
computer. On the browser of machine running CF, if I try the IP address, I get 
connection timed out.


 Where does it fail if you do a traceroute to the server?
It times out from the first to 30th hop. All I see is hop count, asteriks on 
doing a traceroute.

 Are other servers from the same network able to connect to the 
 server?

I do not have access so will have to ask the serveradmin to try those.
The machine running CF belongs to HostingCompany B.

I appreciate your assistance and time. 

~|
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:359278
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-10 Thread Chris h

Thanks Robert,

  Just to clarify: from the machine running CF, if you use a browser, 
 
  can you get to the site correctly?
 
 No, I cannot access the site from the machine running CF.
 
 It's possible the issue is not on your side.  It could be on the side 
 of the site you are trying to read from.  You can't display the site 
 in a browser on the CF machine... try displaying it in a browser that 
 shows the same external IP address as your server.  It's possible your 
 IP has been blocked by the firewall on the sending side. If that's the 
 issue it will have to be fixed on their side.

The CF server is managed by HostingCompanyB and the site I am trying to read 
from is by HostingcompanyA. 

 try displaying it in a browser that shows the same external IP address as 
 your server

How do I do that?

 It's possible your IP has been blocked by the firewall on the sending side. 
 If that's the issue it will have to be fixed on their side.

Well, it worked fine till some 9 days ago. I know both(machine running CF and 
site being hosted) are maintained by different hosting companies, but don't 
think they(hostingcompanyA) would block a particular IP address(server running 
CF which belongs to hostingcompanyB).


I appreciate your assistance and time.
 

~|
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:359279
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Not able to read a RSS feed from a WordPress website

2014-09-09 Thread Chris h

Thanks Dave,

  If I use a browser, I can see the feeds. Using a feed reader in 
 Google Chrome browser, I can notice the
  feeds load correctly.
 
 Are you using a browser from the machine running CF?

No, the machine running CF cannot access the website. I get a message that the 
request timed out. But, the server admin cannot tell me what could be causing 
it. 1000's of people can access the website properly from their computers. 
 
  Message:Connection refused by the specified host on the 
 specified port.
 
  ...
 
  1. What could have caused a working WordPress RSS feed which was 
 parsed correctly by ColdFusion
  till last week to stop suddenly?
 
  2. How can I resolve the issue?
 
 Looks like the CF server can't connect to that host on that port. 
 This
 could be all kinds of things, but it probably doesn't actually have
 anything to do with CF itself. Perhaps the CF server is on a network
 segment that can't access this server. Perhaps the DNS entry changed
 for the WP server, and the CF server hasn't updated its cache. Etc,
 etc, etc.

Well, the CF service was restarted and so was the server, so if the DNS entry 
changed, CF should have updated its cache.

1. Should I change the below line in 
C:\ColdFusion9\runtime\jre\lib\security\java.security

#networkaddress.cache.ttl=-1 to something like 

networkaddress.cache.ttl= 14400


2. Also, does CF9 cache a positive lookup forever? Meaning if 
http://www.testsite.com/?feed=rss2 was on IP address A.B.C.1 when CF cached it, 
it will not update its cache when the feed's IP address changes to A.B.C.10

I appreciate your assistance and time.
 
 Dave Watts, CTO, Fig Leaf Software
 1-202-527-9569
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.

~|
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:359266
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Not able to read a RSS feed from a WordPress website

2014-09-08 Thread Chris h

Hi All,

Below is the code which was working fine till yesterday for reading a RSS feed 
from a Wordpress site running Wordpress 3.9.1

--

cftry
cfset rssUrl = http://www.testsite.com/?feed=rss2;
cffeed action=read source=#rssUrl# query=entriesNews 
properties=info timeout = 180
ul

cfoutput query=entriesNews startrow=1 
maxrows=3
   
cfset tempTextNews = #title#
cfif len(tempTextNews) gt '75'
lia class=NewsEvents href=#rssLink# 
target=_blank#Left(tempTextNews, 75)#...more/a/li
cfelse
lia class=NewsEvents href=#rssLink# 
target=_blank#title#...more/a/li
/cfif


/cfoutput
cfcatch type=any
!--cfdump var=#entriesNews# ---
!--cfdump var=#info# ---  
 
News Feed Temporarily Unavailable
/cfcatch
/ul
/cftry


--

http://www.testsite.com/?feed=rss2 is a valid RSS feed and I confirmed that 
with http://validator.w3.org/feed/

www.testsite.com is something I am using here for posting instead of the actual 
website which provides the feed.

If I use a browser, I can see the feeds. Using a feed reader in Google Chrome 
browser, I can notice the feeds load correctly.


If the above code is loaded in a page called testfeed.cfm, I get the message 
News Feed Temporarily Unavailable. We are using ColdFusion 9 on a Windows 
server with IIS.


The details of error are 

Detail: Check if the specified host on the port is accessible.

Message:Connection refused by the specified host on the specified port.

StackTrace: coldfusion.syndication.FeedReader$ConnectionRefusedException: 
Connection refused by the specified host on the specified port. at 

coldfusion.syndication.FeedReader.getInputStream(FeedReader.java:394)

1. What could have caused a working WordPress RSS feed which was parsed 
correctly by ColdFusion till last week to stop suddenly?

2. How can I resolve the issue?

Any suggestions would be appreciated.

Thanks 

~|
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:359245
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm