Re: Problem with CFC web service & Flash

2004-05-21 Thread Rick Root
More info... this definately has something to do with my CFC datatypes..

Here's the code where I'm invoking the CFC datatypes:
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Problem with CFC web service & Flash

2004-05-21 Thread Rick Root
Here is my WSDL:

https://www.ads.duke.edu/components/authorization/authorize.cfc?WSDL

and a sample HTTP invocation...

https://www.ads.duke.edu/components/authorization/authorize.cfc?method=authByUsername&UNAME=foo&PWORD=foo&SPECIFICLOGINS=&SPECIFICGROUPS=&APPNAME=ENTITY_LOOKUP

But it will NOT invoke via CFINVOKE or via Flash

HELP!

Rick Root wrote:

> Rick Root wrote:
> 
>  > I've got a web service that I use to authorize users against our DB2
>  > Mainframe, and I recently changed it up to return an array of CFC
>  > datatypes instead of a structure.
>  >
>  > The WSDL generates fine... I can call the methods from the browser
>  > directly.  But when Flash tries to access it, it simply says there was
>  > an error accessing the URL.
>  >
>  > There is nothing logged in any of the coldfusion logs that I can find..
>  > all I can find is a 500 server error in the web server's access logs.
> 
> I invoked the web service using coldfusion and got the world's ugliest
> error.
> 
> "Dependent CFC(s) have been modified"?  seems to be a key issue...
> 
> Anyone want to take a stab at this?
> 
>   - Rick
> 
> "Error","jrpp-202","05/21/04","10:54:16","ADSWEB","Could not perform web
> service invocation ""authByUsername"" because AxisFault   faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> faultSubcode:    faultString: [org.apache.axis.AxisFault : ; nested
> exception is:   coldfusion.xml.rpc.CFCInvocationException:
> [java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have
> been modified. Please refresh your web service client.]]; nested
> exception is:   coldfusion.xml.rpc.CFCInvocationException:
> [org.apache.axis.AxisFault : ; nested exception is:
> coldfusion.xml.rpc.CFCInvocationException:
> [java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have
> been modified. Please refresh your web service client.]]   faultActor:
>    faultNode:    faultDetail:
> {http://xml.apache.org/axis/}stackTrace: AxisFault   faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
> faultSubcode:    faultString: [org.apache.axis.AxisFault : ; nested
> exception is:    coldfusion.xml.rpc.CFCInvocationException:
> [java.lang.Inco... The specific sequence of files included or processed
> is: E:\Inetpub\wwwroot\components\authorization\authtest.cfm "
> coldfusion.xml.rpc.ServiceProxy$ServiceInvocationException: Could not
> perform web service invocation "authByUsername" because AxisFault
>   faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>   faultSubcode:
>   faultString: [org.apache.axis.AxisFault : ; nested exception is:
> coldfusion.xml.rpc.CFCInvocationException:
> [java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have
> been modified. Please refresh your web service client.]]; nested
> exception is:
> coldfusion.xml.rpc.CFCInvocationException: [org.apache.axis.AxisFault :
> ; nested exception is:
> coldfusion.xml.rpc.CFCInvocationException:
> [java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have
> been modified. Please refresh your web service client.]]
>   faultActor:
>   faultNode:
>   faultDetail:
> {http://xml.apache.org/axis/}stackTrace: AxisFault
>   faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
>   faultSubcode:
>   faultString: [org.apache.axis.AxisFault : ; nested exception is:
> coldfusion.xml.rpc.CFCInvocationException:
> [java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have
> been modifie...
> at coldfusion.xml.rpc.ServiceProxy.invokeImpl(ServiceProxy.java:219)
> at coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:132)
> at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1582)
> at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:372)
> at
> cfauthtest2ecfm225933356.runPage(E:\Inetpub\wwwroot\components\authorization\authtest.cfm:4)
> at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
> at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
> at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
> at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
> at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
> at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
> at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
> at
> coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
> at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
> at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
> at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
> at coldfusion.CfmServlet.service(CfmServlet.java:105)
> at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
> at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
> at
> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
> at
> jrun.servlet.Ser

Re: Problem with CFC web service & Flash

2004-05-21 Thread Rick Root
Rick Root wrote:

> I've got a web service that I use to authorize users against our DB2
> Mainframe, and I recently changed it up to return an array of CFC
> datatypes instead of a structure.
> 
> The WSDL generates fine... I can call the methods from the browser
> directly.  But when Flash tries to access it, it simply says there was
> an error accessing the URL.
> 
> There is nothing logged in any of the coldfusion logs that I can find..
> all I can find is a 500 server error in the web server's access logs.

I invoked the web service using coldfusion and got the world's ugliest 
error.

"Dependent CFC(s) have been modified"?  seems to be a key issue...

Anyone want to take a stab at this?

  - Rick

"Error","jrpp-202","05/21/04","10:54:16","ADSWEB","Could not perform web 
service invocation ""authByUsername"" because AxisFault   faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException 
faultSubcode:    faultString: [org.apache.axis.AxisFault : ; nested 
exception is:  	coldfusion.xml.rpc.CFCInvocationException: 
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have 
been modified. Please refresh your web service client.]]; nested 
exception is:  	coldfusion.xml.rpc.CFCInvocationException: 
[org.apache.axis.AxisFault : ; nested exception is: 
coldfusion.xml.rpc.CFCInvocationException: 
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have 
been modified. Please refresh your web service client.]]   faultActor: 
   faultNode:    faultDetail: 
{http://xml.apache.org/axis/}stackTrace: AxisFault   faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException 
faultSubcode:    faultString: [org.apache.axis.AxisFault : ; nested 
exception is:   	coldfusion.xml.rpc.CFCInvocationException: 
[java.lang.Inco... The specific sequence of files included or processed 
is: E:\Inetpub\wwwroot\components\authorization\authtest.cfm "
coldfusion.xml.rpc.ServiceProxy$ServiceInvocationException: Could not 
perform web service invocation "authByUsername" because AxisFault
  faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
  faultSubcode:
  faultString: [org.apache.axis.AxisFault : ; nested exception is:
	coldfusion.xml.rpc.CFCInvocationException: 
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have 
been modified. Please refresh your web service client.]]; nested 
exception is:
	coldfusion.xml.rpc.CFCInvocationException: [org.apache.axis.AxisFault : 
; nested exception is:
	coldfusion.xml.rpc.CFCInvocationException: 
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have 
been modified. Please refresh your web service client.]]
  faultActor:
  faultNode:
  faultDetail:
	{http://xml.apache.org/axis/}stackTrace: AxisFault
  faultCode: 
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
  faultSubcode:
  faultString: [org.apache.axis.AxisFault : ; nested exception is:
	coldfusion.xml.rpc.CFCInvocationException: 
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s) have 
been modifie...
	at coldfusion.xml.rpc.ServiceProxy.invokeImpl(ServiceProxy.java:219)
	at coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:132)
	at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1582)
	at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:372)
	at 
cfauthtest2ecfm225933356.runPage(E:\Inetpub\wwwroot\components\authorization\authtest.cfm:4)
	at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
	at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
	at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
	at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
	at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
	at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
	at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
	at 
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
	at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
	at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
	at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
	at coldfusion.CfmServlet.service(CfmServlet.java:105)
	at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
	at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
	at 
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
	at 
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
	at 
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
	at 
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
	at 
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
	at 
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
	at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
 [Todays Threads] 
 [This Message] 
 [Sub

RE: Problem with CFC

2003-12-13 Thread Raymond Camden
Just as an anal fyi, in mx 6.1 (only) you _can_ have one tag before the var
statements, but it has to be cfscript, ie:


	

	
	var x= 1;
	var z = 1;
	var a = 2;
	

	...



Enjoy. :)
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Problem with CFC

2003-12-13 Thread Rick Root
Raymond Camden wrote:

> Ack - you definetely do NOT want to remove the var scoping. 
> 
> All var scope lines MUST come after the cfargument tags and before any
> "real" code, so you CAN'T do this:
> 
> 

AH!  GotchyaAfter the cfarguments and before I trim and UCASE the 
arguments =)

That worked... thanks Raymond.  BTW, enjoyed your "Coding for Reuse" 
session at the conference.

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Problem with CFC

2003-12-13 Thread Raymond Camden
Ack - you definetely do NOT want to remove the var scoping. Please try again
to post your code. It should look something like this:


	
	

	
	



All var scope lines MUST come after the cfargument tags and before any
"real" code, so you CAN'T do this:




Instead, you must do




 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Problem with CFC

2003-12-13 Thread Rick Root
Rick Root wrote:

> Adam Wayne Lehman wrote:
>  > Looks like your original post got cut. what does the code look it?

Damn it my Cold Fusion code keeps getting munged!

Alright... I figured it out

I was doing this at the top of the function body:

[CFSET var retVal = ArrayNew(1)]

It didn't like that... when I moved it down below the cfarguments... it 
complained and said local variables had to be defined at the top of the 
function body.  So I removed the var scoping, leaving it down below the 
cfargument tags... and it works.

That sounds like a bug to me.

HEre's the source and examples

http://www.ads.duke.edu/tools/checkmailing/checkMagazineMailing.cfc?WSDL
http://www.ads.duke.edu/tools/checkmailing/checkMagazineMailing.txt

http://www.ads.duke.edu/tools/checkmailing/checkMagazineMailing1.cfc?WSDL
http://www.ads.duke.edu/tools/checkmailing/checkMagazineMailing1.txt
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Problem with CFC

2003-12-13 Thread Rick Root
Adam Wayne Lehman wrote:
> Looks like your original post got cut. what does the code look it?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Problem with CFC

2003-12-12 Thread Adam Wayne Lehman
Looks like your original post got cut. what does the code look it?

 
Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division

 
-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 2:04 PM
To: CF-Talk
Subject: Problem with CFC

 
Okay... I obviously need another set of eyes here... FYI I'm running
CFMX 6.1 on Win2k

I've written a CFC that I'm trying to debug and so I've taken it down to
the absolute simplest... it looks like this:
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Problem with CFC

2003-12-12 Thread Rick Root
ANd, for what it's worth... it works if I take the CFARGUMENT tags 
out... but... those are kinda necessary.  And they look valid to me too.

  - Rick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Problem with CFC

2003-06-15 Thread Cameron Childress
I believe you have misspelled "returnVariable" as "returnVarible" in your
CFINVOKE tag.

-Cameron

-
Cameron Childress
Sumo Consulting Inc.
---
cell:  678-637-5072
aim:   cameroncf
email: [EMAIL PROTECTED]


> -Original Message-
> From: Jake McKee [mailto:[EMAIL PROTECTED]
> Sent: Sunday, June 15, 2003 11:36 PM
> To: CF-Talk
> Subject: Problem with CFC
>
>
> Help!
>
> I am trying to write my first CFC, and am having quite a time with what
> has to be the most basic CFC possible.
>
>
>
> Every time I run the code below, I get this error:
>
>
>
>
>
> Attribute validation error for tag cfoutput.
>
>
>
> The value of the attribute query, which is currently "showResults", is
> invalid.
>
>
>
>
>
> Please help!
>
>
>
> 
>
>
>
> newestComp.cfc
>
>
>
> 
>
> 
>
>  required="yes">
>
>
>
>  datasource="Categories">
>
> SELECT siteName
>
> FROM links
>
> WHERE LinkID = #arguments.ArgSiteName#
>
> 
>
>
>
> 
>
> 
>
> 
>
>
>
>
>
> 
>
>
>
> newestCompTest.cfm
>
>
>
>  returnVarible="showResults">
>
> 
>
> 
>
>
>
> 
>
> #SiteName#
>
> 
>
>
>
>
>
>
>
> --
>
> My Blog -   www.countersinkdg.com
>
>
>
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4