Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
WestSide #1
Error with Flex 2.0 Beta 3,java.lang.NullPointerException
Hi,
I am using Flex 2.0, Beta 3. I am trying to follow the CFC/Flex examples at
<a target=_blank class=ftalternatingbarlinklarge
href="http://adobechats.breezecentral.com/p41466198/
I">[url]http://adobechats.breezecentral.com/p41466198/[/url]
I</a> seem to get this error for some reason. I am not sure why. It does not
point to a line number or anything. The app should call a method getUsers()
which it does, but it seems to throw this error when this function is called.
<cffunction name="getUsers" access="remote" returntype="any" >
<cfset var q = "" />
<cfset var a = arrayNew(1) />
<cfset var u = "" />
<cfquery name="q" datasource="flexcf">
select *
FROM 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 a />
</cffunction>
RPC Fault faultString="java.lang.NullPointerException"
faultCode="Server.Processing" faultDetail="null"]
at mx.rpc::AbstractInvoker/<a target=_blank class=ftalternatingbarlinklarge
href="http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at">[url]http://www.adobe.com/2006/flex/mx/internal::faultHandler([/url])
at</a> mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at
::NetConnectionMessageResponder/NetConnectionChannel.as$42:NetConnectionMessageR
esponder::statusHandler()
at mx.messaging::MessageResponder/status()
I am not sure why....the table exists, CF has access to it. Any help highly
appreciated... it is quite frustrating...
-WestSide
WestSide Guest
-
java.lang.NullPointerException starting JNDI
any idea what to do about this? -Michael 01/16 11:09:41 Information - Starting client... 01/16 11:09:41 Information - The metrics service is... -
Server Crashes: java.lang.NullPointerException / coldfusion.mail.MailSpooler.run
Howdy all - I'm running Codfusion MX 6.1 (6,1,0,83762) Standard Edition on a Windows 2003 server with SP2. The Java VM version is: 1.4.2-b28. The... -
CFMX 7 - java.lang.NullPointerException occurred whenaccessing a Com object
I tested the CFMX 7 (developer edition) with an application running in CF MX 6.1. I found that CFMX 7 is thowing the below error while accessing few... -
#19327 [Fbk->NoF]: java.lang.UnsatisfiedLinkError: no php_java in java.library.path
ID: 19327 Updated by: sniper@php.net Reported By: chregu@php.net -Status: Feedback +Status: No... -
#19327 [Opn->Fbk]: java.lang.UnsatisfiedLinkError: no php_java in java.library.path
ID: 19327 Updated by: iliaa@php.net Reported By: chregu@php.net -Status: Open +Status: Feedback Bug... -
poonamsheth #2
Re: Error with Flex 2.0 Beta 3,java.lang.NullPointerException
its tuff to tell where is the mistake in coding..
y dont u try some otehr examples too related to coldfusion/flex integration
u will get to understand more,, and infact u would be able to reply with
solutions..
here are the links for u to refer..[am sure it will help u out
1> <a target=_blank class=ftalternatingbarlinklarge
href="http://www.richinternet.de/blog/download/FlexCFC/FlexCFC-part1.swf
2>[url]http://ray.camdenfamily.com/index.cfm/2006/5/22/Creating-a-Mailing-List-in-Col[/url]
dFusion-Part-1
3>[url]http://www.dcooper.org/blog/client/index.cfm?CFID=3105010&CFTOKEN=97847089[/url]
[this">[url]http://www.richinternet.de/blog/download/FlexCFC/FlexCFC-part1.swf[/url]
2>[url]http://ray.camdenfamily.com/index.cfm/2006/5/22/Creating-a-Mailing-List-in-Col[/url]
dFusion-Part-1
3>[url]http://www.dcooper.org/blog/client/index.cfm?CFID=3105010&CFTOKEN=97847089[/url]
[this</a> one is best i think ,,never worked on it ,, but still can make it
out ]--
4> <a target=_blank class=ftalternatingbarlinklarge
href="http://www.dcooper.org/gallery/ColdFusionFlexApplicationWizard.htm
5>">[url]http://www.dcooper.org/gallery/ColdFusionFlexApplicationWizard.htm[/url]
5></a> <a target=_blank class=ftalternatingbarlinklarge
href="http://www.halhelms.com/index.cfm?fuseaction=tutorials.detail
6>">[url]http://www.halhelms.com/index.cfm?fuseaction=tutorials.detail[/url]
6></a> <a target=_blank class=ftalternatingbarlinklarge
href="http://www.richinternet.de/blog/index.cfm?entry=831FE26E-0D70-9C2D-2549E1D
1978CF1B0
7>">[url]http://www.richinternet.de/blog/index.cfm?entry=831FE26E-0D70-9C2D-2549E1D19[/url]
78CF1B0
7></a> <a target=_blank class=ftalternatingbarlinklarge
href="http://labs.adobe.com/wiki/index.php/ColdFusion/Flex_Connectivity
8>">[url]http://labs.adobe.com/wiki/index.php/ColdFusion/Flex_Connectivity[/url]
8></a> <a target=_blank class=ftalternatingbarlinklarge
href="http://arindambiswas.com/blog/">http://arindambiswas.com/blog/</a>
]
poonamsheth Guest



Reply With Quote

