Error with Flex 2.0 Beta 3,java.lang.NullPointerException

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. #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...
    5. #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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139