RE: CFHTTP wierdness

2010-01-08 Thread Asha K S

Hi Jeff,

You might want to look to 
http://www.coldfusionmuse.com/index.cfm/2008/10/9/cfhttp-troubleshooting

Thanks,
Asha.

-Original Message-
From: Jeff Langevin [mailto:jlange...@outdoors.org] 
Sent: Friday, January 08, 2010 2:22 AM
To: cf-talk
Subject: CFHTTP wierdness


So I've got a production and a live server.  Both running CF8, Win 2003 Server 
Standard Ed, IIS6.  Both have the same code calling a remote, non-CF-based web 
service via a cfhttp call to an https URL.  We are getting sporadic Connection 
Failure messages from cfhttp.  This clearly isn't the old cfhttp_5 inability 
to connect to a secure site because it works normally.  However, it the dev 
server can still often connect when the production server can't.  Though we 
definitely sometimes experience the inability to connect on both sometimes.  
I've tried changing timeouts anywhere from 5 to 60 seconds.  I now loop over 
the attempt to connect a bunch of times before showing an error message to the 
user.  

I know this is a shot in the dark, but I figured I would ask if anyone has 
experienced anything like this or has any thoughts.  I'm also open to 
suggestions on how to try to diagnose the problem.

--Jeff

p.s.  The web service is pretty esoteric - Kintera Sphere



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329492
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CF Error after new install

2009-12-21 Thread Asha K S

HI Jason,

Can you manually create a file jrunserver.store under 
/opt/coldfusion8/runtime/lib/wsconfig/1/ and try and see if it works.

Thanks,
Asha.
-Original Message-
From: Jason Slack [mailto:applesl...@gmail.com] 
Sent: Tuesday, December 22, 2009 4:34 AM
To: cf-talk
Subject: CF Error after new install


Hello All,

I am setting up CF 8 on a new server, CentOS 5.4.

I install like normal

I made sure httpd-devel was installed

I run the following:

/opt/coldfusion8/runtime/bin/wsconfig -server coldfusion -ws Apache -bin 
/usr/sbin/httpd \
-script /etc/init.d/httpd -dir /etc/httpd/conf -coldfusion -v

I then run:

chcon --reference=/usr/sbin/httpd 
/opt/coldfusion8/runtime/lib/wsconfig/1/mod_jrun22.so


I am getting in /var/log/httpd/error.log:
[Mon Dec 21 13:17:34 2009] [notice] jrApache[2511: 56737]  127.0.0.1:51800 
connect failed[20]: 13 13 Permission denied
[Mon Dec 21 13:17:34 2009] [notice] jrApache[2511: 56737]  could not open 
serverstore /opt/coldfusion8/runtime/lib/wsconfig/1/jrunserver.store: No such 
file or directory
[Mon Dec 21 13:17:34 2009] [notice] jrApache[2511: 56737]  Couldn't initialize 
from remote server, JRun server(s) probably down.

There is no file at: /opt/coldfusion8/runtime/lib/wsconfig/1/jrunserver.store

I am not sure what goes in here.

I cannot hit CFIDE/Administrator either at this point due to the errors above.

Does anyone have any ideas?

-ML 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329305
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: please help with CF8 install

2007-10-10 Thread Asha K S
Hi,
Can you check the following
1) Is the ColdFusion  server running?
2) netstat -a can be used to confirm the port is actively being listened
to on
4) If not, is a firewall blocking the port?  Does wsconfig still fail
when the firewall is off?
5)Is there any other program that might have been running and listening
on port 2930?

The following links could be helpful
http://www.talkingtree.com/blog/index.cfm/2005/2/9/WsconfigRandPort
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19575slice
Id=1
http://kb.adobe.com/selfservice/viewContent.do?externalId=8a0aaf29slice
Id=2


Thanks,
Asha.
-Original Message-
From: Andy Allan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 1:43 PM
To: CF-Talk
Subject: Re: please help with CF8 install

Did you try to hook up the Web Server during the install process? Or
did you initially install with the built in web server and are now
running wsconfig afterwards?

Just looking to see if CF actually installed OK.

Is there a firewall blocking port 2930?
Is there something else already using port 2930?

You can also bypass wsconfig and manually install the web server
connection if it comes down to it. We typically do this when dealing
with Distributed Mode installs (web and application tiers on different
physical servers).

Andy

On 10/10/2007, Phill B [EMAIL PROTECTED] wrote:
 I have been trying to get CF8 to install on a Win 2k3 server for two
 nights now and with out success. I'm having the same problem that I've
 had with CF 7 and the wsconfig.

 This is the error in the connectorinstall0.txt file

 could not connect to port 2930 on host 127.0.0.1
 javax.naming.ServiceUnavailableException: The connection to the remote
 JNDI server on host 127.0.0.1 at port 2930 has failed (as have all
 backup hosts listed, if any) - please verify that the server is
 running and the NamingService is available

 I have tried the email help that Adobe offers for installations and
 that didn't help much. Just got a link to this page but it doesnt tell
 me how to fix my problem.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=webser
vmgmt_5.html

 Any suggestions? I cant find any real help on the net for this and
 I've been looking for two days now.

 --
 Phil

 



~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290725
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Next lowest number from array (or list).

2007-10-04 Thread Asha K S
Hey thanks a lot for correcting I have just started learning. And one
more thing in the code I posted was we need to  break once the res has
been set in order to avoid looping through the whole list.


Thanks,
Asha.

-Original Message-
From: Patti Lee [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 1:21 AM
To: CF-Talk
Subject: Re: Next lowest number from array (or list).

That was kind of my point.  Pound signs within IF/ELSE/ELSEIF
statements are wholly unnecessary and are, to me at least, somewhat
indicative of a person who doesn't understand how ColdFusion processes
variables.  Not meant as harshly as it sounds, I promise, but might be
a useful thing to remember .

 I don't think it is necessary to put pound signs around your variables
 until and unless you need to print them on the screen. You can try
 removing them from the code given by Asha.



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290135
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Decimalformat() to round

2007-10-04 Thread Asha K S
Hi,

Why don't you try #round(test)#.


Thanks,
Asha.

-Original Message-
From: ismail cassiem [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 03, 2007 9:17 PM
To: CF-Talk
Subject: Decimalformat() to round

Hi, Need help.

#Decimalformat(test)#  
Result = 87.666

I want a result of 88. 

Anyone please assist.

Regards




~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290139
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Next lowest number from array (or list).

2007-10-03 Thread Asha K S
Another solution could be 
Here value would be input from the user.

cfset l=32,48,64,72,144,160,200,288,320,400,512,576,640,720,800
cfset len=#ListLen(l)#
cfif #value# LT 32
 cfset res=32
cfelseif #value# GT 800
 cfset res=800
cfelse
  cfloop  index=i from=1 to=#len-1#
 cfset k=ListGetAt(l,i)
 cfset q=ListGetAt(l,i+1)
 cfif #value# GT #k# AND #value# LT #q#
cfset res=#k#
cfelseif #value# EQ #k#
cfset res=#k#
cfelseif #value# EQ #q#
cfset res=#q#
cfelse
 /cfif
   /cfloop
/cfif
cfoutput#res#/cfoutput

Thanks,
Asha.


-Original Message-
From: William Seiter [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 03, 2007 1:04 PM
To: CF-Talk
Subject: RE: Next lowest number from array (or list).

Depending on deployment and expected usage, I would suggest adding an
'if'
statement around the loop to Dale's code in order to check if the
arguments.value is greater than 32.
This will reduce the 'if' statement inside the loop to only 1 value
check,
allowing for a cfbreak to be added as an 'else' statement.


cfif arguments.value gt local.return
cfloop index=local.index list=#arguments.list#
cfif local.index lt arguments.value
cfset local.return = local.index /
cfelse
cfbreak
/cfif
/cfloop
/cfif

This will allow the function to not perform the loop in the case of the
default value of local.return being the only 'true' value to return.  It
will also allow the loop to stop running the moment a 'true' value is
found.

In a small deployment, this won't mean a thing, but in a large scale
deployment anticipating a lot of use, the milliseconds saved can be
valuable.

Just my 2 cents
William

-- 
William E. Seiter
 
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
-Original Message-
From: Dale Fraser [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 02, 2007 10:09 PM
To: CF-Talk
Subject: RE: Next lowest number from array (or list).

cfset myList =
32,48,64,72,144,160,200,288,320,400,512,576,640,720,800
cfoutput#getNextLowest(myList, 12)#/cfoutput


cffunction name=getNextLowest returntype=numeric
cfargument name=list type=string required=true /
cfargument name=value type=numeric required=true /

cfset local = structNew() /
cfset local.return = 32 /

cfloop index=local.index list=#arguments.list#
cfif local.index lt arguments.value and local.index gt
local.return
cfset local.return = local.index /
/cfif
/cfloop

cfreturn local.return /
/cffunction


Regards
Dale Fraser

http://learncf.com

-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 3 October 2007 3:20 PM
To: CF-Talk
Subject: Next lowest number from array (or list).

Say that I have a list of allowed nmbers:
32,48,64,72,144,160,200,288,320,400,512,576,640,720,800

If I give the user the option of selecting a number, and it happens to
not
be in this list, how might I go about automagically selecting the next
lowest number? One exception being if the user selects a number lower
than
32, in which case the code should return 32.

Examples:
User selects 100, the code would return 72.
User selects 480, the code would return 400.
User selects 25, the code would return 32.

Currently the numbers are stored in a simple list, but I have control
over
that list and they can be in whatever format makes the most sense. One
caveat is that they need to stay in code (so no database interaction). 







~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290059
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4