Error with Flex 2.0 Beta 3, java.lang.NullPointerException
hi,
i using flex 2.0, beta 3. trying follow cfc/flex examples @ http://adobechats.breezecentral.com/p41466198/
i seem error reason. not sure why. not point line number or anything. app should call method getusers() does, seems throw error when function called.
<cffunction name="getusers" access="remote" returntype="any" >
<cfset var q = "" />
<cfset var = arraynew(1) />
<cfset var u = "" />
<cfquery name="q" datasource="flexcf">
select *
splusers
</cfquery>
<cfoutput query="q">
<cfscript>
u = createobject("component","user");
u.setid(q.id);
u.setfname(q.fname);
u.setlname(q.lname);
u.setemail(q.email);
arrayappend(a,u);
</cfscript>
</cfoutput>
<cfreturn />
</cffunction>
rpc fault faultstring="java.lang.nullpointerexception" faultcode="server.processing" faultdetail="null"]
@ mx.rpc::abstractinvoker/ http://www.adobe.com/2006/flex/mx/internal::faulthandler()
@ mx.rpc::responder/fault()
@ mx.rpc::asyncrequest/fault()
@ ::netconnectionmessageresponder/netconnectionchannel.as$42:netconnectionmessageresponder: :statushandler()
@ mx.messaging::messageresponder/status()
i not sure why....the table exists, cf has access it. highly appreciated... quite frustrating...
-westside
i using flex 2.0, beta 3. trying follow cfc/flex examples @ http://adobechats.breezecentral.com/p41466198/
i seem error reason. not sure why. not point line number or anything. app should call method getusers() does, seems throw error when function called.
<cffunction name="getusers" access="remote" returntype="any" >
<cfset var q = "" />
<cfset var = arraynew(1) />
<cfset var u = "" />
<cfquery name="q" datasource="flexcf">
select *
splusers
</cfquery>
<cfoutput query="q">
<cfscript>
u = createobject("component","user");
u.setid(q.id);
u.setfname(q.fname);
u.setlname(q.lname);
u.setemail(q.email);
arrayappend(a,u);
</cfscript>
</cfoutput>
<cfreturn />
</cffunction>
rpc fault faultstring="java.lang.nullpointerexception" faultcode="server.processing" faultdetail="null"]
@ mx.rpc::abstractinvoker/ http://www.adobe.com/2006/flex/mx/internal::faulthandler()
@ mx.rpc::responder/fault()
@ mx.rpc::asyncrequest/fault()
@ ::netconnectionmessageresponder/netconnectionchannel.as$42:netconnectionmessageresponder: :statushandler()
@ mx.messaging::messageresponder/status()
i not sure why....the table exists, cf has access it. highly appreciated... quite frustrating...
-westside
its tuff tell mistake in coding..
y dont u try otehr examples related coldfusion/flex integration
u understand more,, , infact u able reply solutions..
here links u refer..[am sure u out
1> http://www.richinternet.de/blog/download/flexcfc/flexcfc-part1.swf
2> http://ray.camdenfamily.com/index.cfm/2006/5/22/creating-a-mailing-list-in-coldfusion-part -1
3> http://www.dcooper.org/blog/client/index.cfm?cfid=3105010&cftoken=97847089
[this 1 best think ,,never worked on ,, still can make out ]--
4> http://www.dcooper.org/gallery/coldfusionflexapplicationwizard.htm
5> http://www.halhelms.com/index.cfm?fuseaction=tutorials.detail
6> http://www.richinternet.de/blog/index.cfm?entry=831fe26e-0d70-9c2d-2549e1d1978cf1b0
7> http://labs.adobe.com/wiki/index.php/coldfusion/flex_connectivity
8> http://arindambiswas.com/blog/
]
y dont u try otehr examples related coldfusion/flex integration
u understand more,, , infact u able reply solutions..
here links u refer..[am sure u out
1> http://www.richinternet.de/blog/download/flexcfc/flexcfc-part1.swf
2> http://ray.camdenfamily.com/index.cfm/2006/5/22/creating-a-mailing-list-in-coldfusion-part -1
3> http://www.dcooper.org/blog/client/index.cfm?cfid=3105010&cftoken=97847089
[this 1 best think ,,never worked on ,, still can make out ]--
4> http://www.dcooper.org/gallery/coldfusionflexapplicationwizard.htm
5> http://www.halhelms.com/index.cfm?fuseaction=tutorials.detail
6> http://www.richinternet.de/blog/index.cfm?entry=831fe26e-0d70-9c2d-2549e1d1978cf1b0
7> http://labs.adobe.com/wiki/index.php/coldfusion/flex_connectivity
8> http://arindambiswas.com/blog/
]
More discussions in Archived Spaces
adobe
Comments
Post a Comment