Re: Problem with Apache 2.2 not starting on windows -- CF9.01

2011-07-07 Thread Dave Watts

 I HATE the fact that 9.0 works (and has the check) for 32bit
 applications, but 9.01 borks that all to hell.  I ran into this (several
 times), and the only means I had that corrected it is to completely wipe
 CF and start fresh.  From there, be sure to run the JRun config BEFORE
 you put on the 9.01 update... else, you see the error that you hit.

I suspect you could work around this by using the wsconfig.jar from 9
on your 9.0.1 install.

Dave Watts, CTO, Fig Leaf Software
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 onsit

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


Re: Webroot has changed

2011-07-07 Thread Duncan

How does one control the location of the webroot within jrun / cf?

On Thu, Jul 7, 2011 at 10:01 AM, Duncan duncan.lox...@gmail.com wrote:

 ok so the second error is a known issue in enterprise where it cant read
 the jvm.config, I am ok with that, i need to work out why my webroot path is
 now the path to the server, and not to the webroot.



 On Thu, Jul 7, 2011 at 8:44 AM, Duncan duncan.lox...@gmail.com wrote:

 This was a 3am post for me, so no details really!

 Centos 5, Coldfusion 8,0,1,195765
 And as far as updates go,
 :opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/hf801-2.jar:
  
 :opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/hf801-71557.jar:
  
 :opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/chf8010004.jar:


 http://kb2.adobe.com/cps/529/cpsid_52915.html

 http://kb2.adobe.com/cps/857/cpsid_85766.html

 http://www.adobe.com/support/security/bulletins/apsb09-09.html
 *CVE-2009-1873 and CVE-2009-1874
 **CVE-2009-1875
 **CVE-2009-1878 *

 Issues appear to have been caused when doing this one

 http://kb2.adobe.com/cps/890/cpsid_89094.html
 On Thu, Jul 7, 2011 at 3:20 AM, Wil Genovese jugg...@trunkful.comwrote:


 It would help to know which version of ColdFusion and what other patches
 were installed, if any.

 Also, several of us have written articles on CF Patching.  My own blog
 post http://www.trunkful.com/index.cfm/2011/3/7/When-the-Patch-Fails

 I also mention the blog post by the very knowledgeable Charlie Arehart
 http://www.carehart.org/blog/client/index.cfm/2010/12/12/cfmyths_cumulative_hotfixes

 These should help in some fashion.




 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 CF Webtools
 www.cfwebtools.com

 wilg...@trunkful.com
 www.trunkful.com

 On Jul 6, 2011, at 12:07 PM, Duncan wrote:

 
  I have also just discovered that when I go to the cfadmin  Settings
  Summary, at the bottom of the page there is an error:
 
  Variable VMARGS is undefined.
 
  Resources:
 
 * Enable Robust Exception Information to provide greater detail
 about
  the source of errors. In the Administrator, click Debugging  Logging 
  Debug Output Settings, and select the Robust Exception Information
 option.
 * Check the ColdFusion documentation to verify that you are using
 the
  correct syntax.
 * Search the Knowledge Base to find a solution to your problem.
 
  Browser   Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US;
 rv:1.9.2.18)
  Gecko/20110614 Firefox/3.6.18
  Remote Address   60.241.179.75
  Referrer   http://113.192.20.248/CFIDE/administrator/navserver.cfm
 
  What on earth is this?
 
  Its now 3am for me, I think I have had enough for the night.
 
 
 
  On Thu, Jul 7, 2011 at 2:55 AM, Duncan duncan.lox...@gmail.com
 wrote:
 
  Hi Folks,
 
  After installing a few of the updates (I believe this one screwed
 mehttp://kb2.adobe.com/cps/890/cpsid_89094.html)
  http://kb2.adobe.com/cps/890/cpsid_89094.html
  I discovered after some debugging that the ExpandPath function had
 started
  to reference this location at
  /opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/ rather than
  /var/www/html
 
  Can anyone help me find out why, or set it back to the webroot it
 should
  be?
 
  For the moment I have hardcoded it, but this is not sustainable.
 
  Thanks
 
  --
  Duncan I Loxton
  duncan.lox...@gmail.com
 
 
 
 
  --
  Duncan I Loxton
  duncan.lox...@gmail.com
 
 
 

 

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


Re: Problem with Apache 2.2 not starting on windows -- CF9.01

2011-07-07 Thread Matthew Williams

You would also think that moving the compiled .so file over from a known 
good install should work... but no dice there.


Matthew Williams
Geodesic GraFX
www.geodesicgrafx.com/blog

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


Re: Webroot has changed

2011-07-07 Thread Russ Michaels

try in the JRun4\servers\cfusion\SERVER-INF
check the xml files in here for the settings



On Thu, Jul 7, 2011 at 10:38 AM, Duncan duncan.lox...@gmail.com wrote:


 How does one control the location of the webroot within jrun / cf?

 On Thu, Jul 7, 2011 at 10:01 AM, Duncan duncan.lox...@gmail.com wrote:

  ok so the second error is a known issue in enterprise where it cant read
  the jvm.config, I am ok with that, i need to work out why my webroot path
 is
  now the path to the server, and not to the webroot.
 
 
 
  On Thu, Jul 7, 2011 at 8:44 AM, Duncan duncan.lox...@gmail.com wrote:
 
  This was a 3am post for me, so no details really!
 
  Centos 5, Coldfusion 8,0,1,195765
  And as far as updates go,
 
 :opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/hf801-2.jar:
 
  
 :opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/hf801-71557.jar:
 
  
 :opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/chf8010004.jar:
 
 
  http://kb2.adobe.com/cps/529/cpsid_52915.html
 
  http://kb2.adobe.com/cps/857/cpsid_85766.html
 
  http://www.adobe.com/support/security/bulletins/apsb09-09.html
  *CVE-2009-1873 and CVE-2009-1874
  **CVE-2009-1875
  **CVE-2009-1878 *
 
  Issues appear to have been caused when doing this one
 
  http://kb2.adobe.com/cps/890/cpsid_89094.html
  On Thu, Jul 7, 2011 at 3:20 AM, Wil Genovese jugg...@trunkful.com
 wrote:
 
 
  It would help to know which version of ColdFusion and what other
 patches
  were installed, if any.
 
  Also, several of us have written articles on CF Patching.  My own blog
  post http://www.trunkful.com/index.cfm/2011/3/7/When-the-Patch-Fails
 
  I also mention the blog post by the very knowledgeable Charlie Arehart
 
 http://www.carehart.org/blog/client/index.cfm/2010/12/12/cfmyths_cumulative_hotfixes
 
  These should help in some fashion.
 
 
 
 
  Wil Genovese
  Sr. Web Application Developer/
  Systems Administrator
  CF Webtools
  www.cfwebtools.com
 
  wilg...@trunkful.com
  www.trunkful.com
 
  On Jul 6, 2011, at 12:07 PM, Duncan wrote:
 
  
   I have also just discovered that when I go to the cfadmin  Settings
   Summary, at the bottom of the page there is an error:
  
   Variable VMARGS is undefined.
  
   Resources:
  
  * Enable Robust Exception Information to provide greater detail
  about
   the source of errors. In the Administrator, click Debugging  Logging
 
   Debug Output Settings, and select the Robust Exception Information
  option.
  * Check the ColdFusion documentation to verify that you are using
  the
   correct syntax.
  * Search the Knowledge Base to find a solution to your problem.
  
   Browser   Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US;
  rv:1.9.2.18)
   Gecko/20110614 Firefox/3.6.18
   Remote Address   60.241.179.75
   Referrer
 http://113.192.20.248/CFIDE/administrator/navserver.cfm
  
   What on earth is this?
  
   Its now 3am for me, I think I have had enough for the night.
  
  
  
   On Thu, Jul 7, 2011 at 2:55 AM, Duncan duncan.lox...@gmail.com
  wrote:
  
   Hi Folks,
  
   After installing a few of the updates (I believe this one screwed
  mehttp://kb2.adobe.com/cps/890/cpsid_89094.html)
   http://kb2.adobe.com/cps/890/cpsid_89094.html
   I discovered after some debugging that the ExpandPath function had
  started
   to reference this location at
   /opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/ rather than
   /var/www/html
  
   Can anyone help me find out why, or set it back to the webroot it
  should
   be?
  
   For the moment I have hardcoded it, but this is not sustainable.
  
   Thanks
  
   --
   Duncan I Loxton
   duncan.lox...@gmail.com
  
  
  
  
   --
   Duncan I Loxton
   duncan.lox...@gmail.com
  
  
  
 
 

 

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


dynamic if statements

2011-07-07 Thread Richard White

Hi,

i have an if statement that checks multiple values such as:

cfif (a eq 1) and (b eq 2) and (c eq 3)
/cfif

however i need it to be dynamic, for example sometimes it may:

cfif (a eq 1)
cfif (a eq 1) and (b eq 2) and (c eq 3) 
cfif (a eq 1) and (b eq 2) and (c eq 3) and (d eq 4) 

i have tried creating a string and then using the evaluate function which works 
fine until one of the values has a double or single quote, e.g

cfset a = '' /
cfset b = - /
cfif evaluate(a eq b)/cfif

... it then throws an error due to the double quote being encapsulated within 
the double quotes of the evaluation function.

would appreciate some help on the best way to achieve this

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


Re: dynamic if statements

2011-07-07 Thread Richard White

apologies, the evaluate works fine, there was a mistake in my code :) 

i was unnecessarily wrapping the variables with hashes: cfif evaluate(#a# eq 
#b#)/cfif



 Hi,
 
 i have an if statement that checks multiple values such as:
 
 cfif (a eq 1) and (b eq 2) and (c eq 3)
 /cfif
 
 however i need it to be dynamic, for example sometimes it may:
 
 cfif (a eq 1)
 cfif (a eq 1) and (b eq 2) and (c eq 3) 
 cfif (a eq 1) and (b eq 2) and (c eq 3) and (d eq 4) 
 
 i have tried creating a string and then using the evaluate function 
 which works fine until one of the values has a double or single quote, 
 e.g
 
 cfset a = '' /
 cfset b = - /
 cfif evaluate(a eq b)/cfif
 
... 
 it then throws an error due to the double quote being encapsulated 
 within the double quotes of the evaluation function.
 
 would appreciate some help on the best way to achieve this
 
 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:346130
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


System.Runtime.InteropServices.ExternalException

2011-07-07 Thread Stefan Richter

My CF 9 machine on EC2 has suddenly started throwing this error (which I am 
catching):
System.Runtime.InteropServices.ExternalException 

I am logging Type, Message and Detail but this is all I see - 
System.Runtime.InteropServices.ExternalException 

I guess this points again at the .NET integration I am running? Or does anyone 
else know what may cause this?

Regards,

Stefan




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


populate table from query results

2011-07-07 Thread Julie Davenport

What is the fastest way to populate a table with the results of a query?  I 
have a join query over 2 tables in database A and I need to insert all the rows 
found into a table in database B.  

I cannot do it all in one query:
insert into table3 (select ... from table1, table2...);
because the tables are in different databases and postgresql does not allow 
inter-db queries (and the cfquery datasource can only point to one database at 
a time anyway).  

I'd like to use Coldfusion Query of Query to help but don't see how.  I cannot 
query from the query results and insert into a table all in the same cfquery 
(since a cfquery tag can have EITHER the datasource pointing to database table 
is in, OR dbtype=query to do QofQ):
insert into table3 (select * from myQuery);

As a result, I have to do the query, then loop through the query results, and 
each time through the loop, I insert a row of the results into the table.  This 
is very slow!  Is there a faster way with CF?

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


RE: IIS 6.0 ignores default document and serves index.cfm

2011-07-07 Thread UXB

 The problem is that IIS 6.0 is ignoring the default document (index.html)

In the IIS manager right click on the website in questions and select
properties then the Documents tab.  Be sure to check Enable Default Content
Page then sort the list in the order you want IIS to serve the files.  

For example my list is 

index.cfm
index.htm
index.html

So IIS will first look for the .cfm then default to .htm then .html before
giving a 404.  In your application be sure that index.html is first at the
top of the list.


Dennis Powers
UXB Internet - A website Design and Hosting Company
P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
W: http://www.uxbinternet.com
W: http://www.ctbusinesslist.com



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


Re: populate table from query results

2011-07-07 Thread Shane Montgomery

Hi Julie,

If I am understanding correctly, but have you checked out DbLink for
postgresql?

http://www.postgresonline.com/journal/archives/44-Using-DbLink-to-access-other-PostgreSQL-Databases-and-Servers.html

Can you provide some more context such as what database type/versions?

On Thu, Jul 7, 2011 at 11:21 AM, Julie Davenport
julie.davenp...@ctcd.eduwrote:


 What is the fastest way to populate a table with the results of a query?  I
 have a join query over 2 tables in database A and I need to insert all the
 rows found into a table in database B.

 I cannot do it all in one query:
 insert into table3 (select ... from table1, table2...);
 because the tables are in different databases and postgresql does not allow
 inter-db queries (and the cfquery datasource can only point to one database
 at a time anyway).

 I'd like to use Coldfusion Query of Query to help but don't see how.  I
 cannot query from the query results and insert into a table all in the same
 cfquery (since a cfquery tag can have EITHER the datasource pointing to
 database table is in, OR dbtype=query to do QofQ):
 insert into table3 (select * from myQuery);

 As a result, I have to do the query, then loop through the query results,
 and each time through the loop, I insert a row of the results into the
 table.  This is very slow!  Is there a faster way with CF?

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


Re: populate table from query results

2011-07-07 Thread Rex

One way is to use two DSNs, and create the INSERT once:

cfquery name=q1 datasource=DSN1
 select col1, col2 from table1
/

cfsavecontent variable=q
 INSERT INTO table2 (col1, col2) VALUES
cfloop query=q1
 (#q1.col1#,  '#q1.col2#')
cfif q1.currentRow EQ q1.recordCount;cfelse,/cfif
/
/

cfquery name=q2 datasource=DSN2
 #q#
/

Something like that, HTH.

- Rex

On 7/7/2011 11:21 AM, Julie Davenport wrote:
 What is the fastest way to populate a table with the results of a query?  I 
 have a join query over 2 tables in database A and I need to insert all the 
 rows found into a table in database B.

 I cannot do it all in one query:
 insert into table3 (select ... from table1, table2...);
 because the tables are in different databases and postgresql does not allow 
 inter-db queries (and the cfquery datasource can only point to one database 
 at a time anyway).

 I'd like to use Coldfusion Query of Query to help but don't see how.  I 
 cannot query from the query results and insert into a table all in the same 
 cfquery (since a cfquery tag can have EITHER the datasource pointing to 
 database table is in, OR dbtype=query to do QofQ):
 insert into table3 (select * from myQuery);

 As a result, I have to do the query, then loop through the query results, and 
 each time through the loop, I insert a row of the results into the table.  
 This is very slow!  Is there a faster way with CF?

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


xmlSearch() tip

2011-07-07 Thread Sean Henderson

Having problems performing a subsequent XML search on a array item that looks 
like XML and was produced from a previous XML search? Basic XPath strings 
returning empty arrays?  

Then try removing any xhtml declaration attributes, in paricular from the base 
node, in the array item prior to xmlSearch().  This fixed where I was not 
getting any results back from xmlSearch() for a known XML element even using 
the most basic of XPath criteria. 

The takeaway here is that even though isXML() may return true, that does not 
mean xmlSearch() will work as expected/hoped/described.

Sean


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


Re: populate table from query results

2011-07-07 Thread Julie Davenport

Shane,
No, I was not familiar with DbLink, but I will check it out, thanks for the 
suggestion.  I remember using database link objects in Oracle and they really 
helped, but had always read they did not exist in postgres.  I will see if 
DbLink can work in my case:  the tables I need to query from are in a postgres 
8.4 database on one server, the table I need to insert to is in a postgres 7.4 
database on another server.  Thanks again,
Julie 

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


RE: IIS 6.0 ignores default document and serves index.cfm

2011-07-07 Thread Brook Davies

That's whats supposed to happen but was not. Strangely enough this problem
disappeared on its own after a reboot. 

Brook

-Original Message-
From: UXB [mailto:denn...@uxbinternet.com] 
Sent: July-07-11 11:21 AM
To: cf-talk
Subject: RE: IIS 6.0 ignores default document and serves index.cfm


 The problem is that IIS 6.0 is ignoring the default document 
 (index.html)

In the IIS manager right click on the website in questions and select
properties then the Documents tab.  Be sure to check Enable Default Content
Page then sort the list in the order you want IIS to serve the files.  

For example my list is 

index.cfm
index.htm
index.html

So IIS will first look for the .cfm then default to .htm then .html before
giving a 404.  In your application be sure that index.html is first at the
top of the list.


Dennis Powers
UXB Internet - A website Design and Hosting Company P.O. Box 6028, Wolcott,
CT 06716 - T:203-879-2844
W: http://www.uxbinternet.com
W: http://www.ctbusinesslist.com





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


Re: populate table from query results

2011-07-07 Thread Julie Davenport

Rex,
Ahah, I see what you are doing -- very interesting approach.  I have not used 
cfsavecontent before.  I will have to test this and see how much faster it is.
Thanks much. 

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


Getter error Error: The method GET was not found in component

2011-07-07 Thread Leon Chalnick

I'm encountering the problem on a newly configured CF9 server (no hotfixes yet).

I'm using cfajaxproxy to create a JS proxy for a CFC. Here's the method in the 
CFC:

cffunction name=test access=remote returntype=string returnformat=JSON
cfargument name=text
cfreturn agruments.text
/cffunction

Here's the code in the template that that is attempting to invoke this:

cfajaxproxy cfc=cfcs.utilities jsclassname=xxx
...

script type=text/javascript
  var util = new xxx();
  var x = util.test(hello);
/script
...

When I run this code, I get an error message in Firebug Error: The method GET 
was not found in component C:\MyPATH\CFCS\UTILITIES.CFC

I've used cfajaxproxy successfully to do this on other servers before; this is 
the first time I'm trying it on this particular server using CF9. Anyone have 
any clues what the GET method is about in this case? BTW, I get the same 
message from Firebug re: method GET was not found, not matter which function I 
try calling in the CFC. 

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


Re: Getter error Error: The method GET was not found in component

2011-07-07 Thread Shane Montgomery

Not sure if this was just your typing or the actual code but
you've misspelled  your return in the test function. cfreturn
agruments.text should be cfreturn arguments.text

On Thu, Jul 7, 2011 at 4:57 PM, Leon Chalnick 
lchaln...@advantasolutions.com wrote:


 I'm encountering the problem on a newly configured CF9 server (no hotfixes
 yet).

 I'm using cfajaxproxy to create a JS proxy for a CFC. Here's the method in
 the CFC:

 cffunction name=test access=remote returntype=string
 returnformat=JSON
cfargument name=text
cfreturn agruments.text
 /cffunction

 Here's the code in the template that that is attempting to invoke this:

 cfajaxproxy cfc=cfcs.utilities jsclassname=xxx
 ...

 script type=text/javascript
  var util = new xxx();
  var x = util.test(hello);
 /script
 ...

 When I run this code, I get an error message in Firebug Error: The method
 GET was not found in component C:\MyPATH\CFCS\UTILITIES.CFC

 I've used cfajaxproxy successfully to do this on other servers before; this
 is the first time I'm trying it on this particular server using CF9. Anyone
 have any clues what the GET method is about in this case? BTW, I get the
 same message from Firebug re: method GET was not found, not matter which
 function I try calling in the CFC.

 

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


RE: dynamic if statements

2011-07-07 Thread Bobby Hartsfield

This might work as well (and get rid of evaluate for you)

cfif variables[a] eq variables[b]


.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk] 
Sent: Thursday, July 07, 2011 9:29 AM
To: cf-talk
Subject: Re: dynamic if statements


apologies, the evaluate works fine, there was a mistake in my code :) 

i was unnecessarily wrapping the variables with hashes: cfif evaluate(#a#
eq #b#)/cfif



 Hi,
 
 i have an if statement that checks multiple values such as:
 
 cfif (a eq 1) and (b eq 2) and (c eq 3)
 /cfif
 
 however i need it to be dynamic, for example sometimes it may:
 
 cfif (a eq 1)
 cfif (a eq 1) and (b eq 2) and (c eq 3) 
 cfif (a eq 1) and (b eq 2) and (c eq 3) and (d eq 4) 
 
 i have tried creating a string and then using the evaluate function 
 which works fine until one of the values has a double or single quote, 
 e.g
 
 cfset a = '' /
 cfset b = - /
 cfif evaluate(a eq b)/cfif
 
... 
 it then throws an error due to the double quote being encapsulated 
 within the double quotes of the evaluation function.
 
 would appreciate some help on the best way to achieve this
 
 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:346142
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Getter error Error: The method GET was not found in component

2011-07-07 Thread Leon Chalnick

Not sure if this was just your typing or the actual code but
you've misspelled  your return in the test function. cfreturn
agruments.text should be cfreturn arguments.text

Thanks Shane, that's just a problem in my typing (sorry about that). The actual 
codes that is executing has the correct spelling of 'arguments'. 

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


Re: Getter error Error: The method GET was not found in component

2011-07-07 Thread Leigh

Does your component actually contain a method named GET or is that name 
coming out of nowhere?


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


Re: Getter error Error: The method GET was not found in component

2011-07-07 Thread Shane Montgomery

I was able to mock up a test.cfc and access the method just fine, an
alert(); showed the value come back.

My guess is something else in the cfc is causing it to hiccup.

Post the cfc if possible.

On Thu, Jul 7, 2011 at 6:23 PM, Leon Chalnick 
lchaln...@advantasolutions.com wrote:


 Not sure if this was just your typing or the actual code but
 you've misspelled  your return in the test function. cfreturn
 agruments.text should be cfreturn arguments.text

 Thanks Shane, that's just a problem in my typing (sorry about that). The
 actual codes that is executing has the correct spelling of 'arguments'.

 

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


Re: Weird ColdFusion Admin Error

2011-07-07 Thread Robert Mack

500 coldfusion.runtime.CfJspPage._setCurrentLineNo(I)V
coldfusion.runtime.CfJspPage._setCurrentLineNo(I)V

anyone ever see this before?

tw

-- 
'Never have anything in your life that you can't walk out on in thirty
seconds flat, if you spot the heat coming around the corner'

robert deniro - heat (1995) 

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


Re: Weird ColdFusion Admin Error

2011-07-07 Thread Robert Mack

Did you ever resolve this?  I'm getting it now on an MX 7 installation when I 
try to access the administrator page.  It's a Virtual Private Server and I bet 
some config change was made that screwed up the encryption.  May have to 
reinstall and reconfigure ColdFusion -- ugh!  Bob Mack

500 coldfusion.runtime.CfJspPage._setCurrentLineNo(I)V
coldfusion.runtime.CfJspPage._setCurrentLineNo(I)V

anyone ever see this before?

tw

-- 
'Never have anything in your life that you can't walk out on in thirty
seconds flat, if you spot the heat coming around the corner'

robert deniro - heat (1995) 

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


Re: Weird ColdFusion Admin Error

2011-07-07 Thread Russ Michaels

have you just done an update by any chance ?

try loading the cfadministrator


Russ

On Fri, Jul 8, 2011 at 1:19 AM, Robert Mack ya...@rmack.com wrote:


 500 coldfusion.runtime.CfJspPage._setCurrentLineNo(I)V
 coldfusion.runtime.CfJspPage._setCurrentLineNo(I)V
 
 anyone ever see this before?
 
 tw
 
 --
 'Never have anything in your life that you can't walk out on in thirty
 seconds flat, if you spot the heat coming around the corner'
 
 robert deniro - heat (1995)

 

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